Go to the source code of this file.
Data Structures | |
struct | TCA6416_Params |
Parameters passed during TCA6416_open() More... | |
struct | TCA6416_Attrs |
IO Expander device attributes. More... | |
struct | TCA6416_Config |
IO Expander driver configuration. This is the driver object used to store state variables. More... | |
Macros | |
IO pin mode - Input or Output | |
#define | TCA6416_MODE_INPUT (0U) |
Configure IO pin as input. More... | |
#define | TCA6416_MODE_OUTPUT (1U) |
Configure IO pin as output. More... | |
IO pin output state - HIGH or LOW | |
#define | TCA6416_OUT_STATE_LOW (0U) |
Configure IO pin output as LOW. More... | |
#define | TCA6416_OUT_STATE_HIGH (1U) |
Configure IO pin output as HIGH. More... | |
Functions | |
int32_t | TCA6416_open (TCA6416_Config *config, const TCA6416_Params *params) |
Open TCA6416 driver. More... | |
void | TCA6416_close (TCA6416_Config *config) |
Close TCA6416 driver. More... | |
int32_t | TCA6416_config (TCA6416_Config *config, uint32_t ioIndex, uint32_t mode) |
API to set a IO pin of TCA6416 as input or output. More... | |
int32_t | TCA6416_setOutput (TCA6416_Config *config, uint32_t ioIndex, uint32_t state) |
API to set a IO pin of TCA6416 to either HIGH or LOW. More... | |
void | TCA6416_getAttrs (TCA6416_Config *config, TCA6416_Attrs *attrs) |
Returns TCA6416 attributes. More... | |
void | TCA6416_Params_init (TCA6416_Params *params) |
Set default parameters in the TCA6416_Params structure. More... | |