AM64x MCU+ SDK  08.02.00
ioexp_tca6424.h File Reference

Go to the source code of this file.

Data Structures

struct  TCA6424_Params
 Parameters passed during TCA6424_open() More...
 
struct  TCA6424_Attrs
 IO Expander device attributes. More...
 
struct  TCA6424_Config
 IO Expander driver configuration. This is the driver object used to store state variables. More...
 

Macros

IO pin mode - Input or Output

#define TCA6424_MODE_INPUT   (0U)
 Configure IO pin as input. More...
 
#define TCA6424_MODE_OUTPUT   (1U)
 Configure IO pin as output. More...
 
IO pin output state - HIGH or LOW

#define TCA6424_OUT_STATE_LOW   (0U)
 Configure IO pin output as LOW. More...
 
#define TCA6424_OUT_STATE_HIGH   (1U)
 Configure IO pin output as HIGH. More...
 

Functions

int32_t TCA6424_open (TCA6424_Config *config, const TCA6424_Params *params)
 Open TCA6424 driver. More...
 
void TCA6424_close (TCA6424_Config *config)
 Close TCA6424 driver. More...
 
int32_t TCA6424_config (TCA6424_Config *config, uint32_t ioIndex, uint32_t mode)
 API to set a IO pin of TCA6424 as input or output. More...
 
int32_t TCA6424_setOutput (TCA6424_Config *config, uint32_t ioIndex, uint32_t state)
 API to set a IO pin of TCA6424 to either HIGH or LOW. More...
 
void TCA6424_getAttrs (TCA6424_Config *config, TCA6424_Attrs *attrs)
 Returns TCA6424 attributes. More...
 
void TCA6424_Params_init (TCA6424_Params *params)
 Set default parameters in the TCA6424_Params structure. More...