![]() |
LibDriver PCF8575
|
pcf8575 base driver modules More...
Data Structures | |
| struct | pcf8575_handle_s |
| pcf8575 handle structure definition More... | |
| struct | pcf8575_info_s |
| pcf8575 information structure definition More... | |
Typedefs | |
| typedef struct pcf8575_handle_s | pcf8575_handle_t |
| pcf8575 handle structure definition | |
| typedef struct pcf8575_info_s | pcf8575_info_t |
| pcf8575 information structure definition | |
Enumerations | |
| enum | pcf8575_address_t { PCF8575_ADDRESS_A000 = 0 , PCF8575_ADDRESS_A001 = 1 , PCF8575_ADDRESS_A010 = 2 , PCF8575_ADDRESS_A011 = 3 , PCF8575_ADDRESS_A100 = 4 , PCF8575_ADDRESS_A101 = 5 , PCF8575_ADDRESS_A110 = 6 , PCF8575_ADDRESS_A111 = 7 } |
| pcf8575 address enumeration definition More... | |
| enum | pcf8575_pin_t { PCF8575_PIN_00 = 0x08 , PCF8575_PIN_01 = 0x09 , PCF8575_PIN_02 = 0x0A , PCF8575_PIN_03 = 0x0B , PCF8575_PIN_04 = 0x0C , PCF8575_PIN_05 = 0x0D , PCF8575_PIN_06 = 0x0E , PCF8575_PIN_07 = 0x0F , PCF8575_PIN_10 = 0x00 , PCF8575_PIN_11 = 0x01 , PCF8575_PIN_12 = 0x02 , PCF8575_PIN_13 = 0x03 , PCF8575_PIN_14 = 0x04 , PCF8575_PIN_15 = 0x05 , PCF8575_PIN_16 = 0x06 , PCF8575_PIN_17 = 0x07 } |
| pcf8575 pin enumeration definition More... | |
| enum | pcf8575_pin_level_t { PCF8575_PIN_LEVEL_LOW = 0x00 , PCF8575_PIN_LEVEL_HIGH = 0x01 } |
| pcf8575 pin enumeration definition More... | |
Functions | |
| uint8_t | pcf8575_info (pcf8575_info_t *info) |
| get chip's information | |
| uint8_t | pcf8575_set_addr_pin (pcf8575_handle_t *handle, pcf8575_address_t addr_pin) |
| set the address pin | |
| uint8_t | pcf8575_get_addr_pin (pcf8575_handle_t *handle, pcf8575_address_t *addr_pin) |
| get the address pin | |
| uint8_t | pcf8575_init (pcf8575_handle_t *handle) |
| initialize the chip | |
| uint8_t | pcf8575_deinit (pcf8575_handle_t *handle) |
| close the chip | |
| uint8_t | pcf8575_read (pcf8575_handle_t *handle, pcf8575_pin_t pin, pcf8575_pin_level_t *level) |
| read the pin | |
| uint8_t | pcf8575_write (pcf8575_handle_t *handle, pcf8575_pin_t pin, pcf8575_pin_level_t level) |
| write the pin | |
pcf8575 base driver modules
| typedef struct pcf8575_handle_s pcf8575_handle_t |
pcf8575 handle structure definition
| typedef struct pcf8575_info_s pcf8575_info_t |
pcf8575 information structure definition
| enum pcf8575_address_t |
pcf8575 address enumeration definition
Definition at line 62 of file driver_pcf8575.h.
| enum pcf8575_pin_level_t |
pcf8575 pin enumeration definition
| Enumerator | |
|---|---|
| PCF8575_PIN_LEVEL_LOW | low level |
| PCF8575_PIN_LEVEL_HIGH | high level |
Definition at line 100 of file driver_pcf8575.h.
| enum pcf8575_pin_t |
pcf8575 pin enumeration definition
Definition at line 77 of file driver_pcf8575.h.
| uint8_t pcf8575_deinit | ( | pcf8575_handle_t * | handle | ) |
close the chip
| [in] | *handle | pointer to a pcf8575 handle structure |
Definition at line 179 of file driver_pcf8575.c.
| uint8_t pcf8575_get_addr_pin | ( | pcf8575_handle_t * | handle, |
| pcf8575_address_t * | addr_pin ) |
get the address pin
| [in] | *handle | pointer to a pcf8575 handle structure |
| [out] | *addr_pin | pointer to a chip address pins buffer |
Definition at line 82 of file driver_pcf8575.c.
| uint8_t pcf8575_info | ( | pcf8575_info_t * | info | ) |
get chip's information
| [out] | *info | pointer to a pcf8575 info structure |
Definition at line 368 of file driver_pcf8575.c.
| uint8_t pcf8575_init | ( | pcf8575_handle_t * | handle | ) |
initialize the chip
| [in] | *handle | pointer to a pcf8575 handle structure |
Definition at line 105 of file driver_pcf8575.c.
| uint8_t pcf8575_read | ( | pcf8575_handle_t * | handle, |
| pcf8575_pin_t | pin, | ||
| pcf8575_pin_level_t * | level ) |
read the pin
| [in] | *handle | pointer to a pcf8575 handle structure |
| [in] | pin | read pin |
| [out] | *level | pointer to a level buffer |
Definition at line 216 of file driver_pcf8575.c.
| uint8_t pcf8575_set_addr_pin | ( | pcf8575_handle_t * | handle, |
| pcf8575_address_t | addr_pin ) |
set the address pin
| [in] | *handle | pointer to a pcf8575 handle structure |
| [in] | addr_pin | chip address pins |
Definition at line 60 of file driver_pcf8575.c.
| uint8_t pcf8575_write | ( | pcf8575_handle_t * | handle, |
| pcf8575_pin_t | pin, | ||
| pcf8575_pin_level_t | level ) |
write the pin
| [in] | *handle | pointer to a pcf8575 handle structure |
| [in] | pin | written pin |
| [in] | level | pin level |
Definition at line 256 of file driver_pcf8575.c.