|
AM62Ax MCU+ SDK
10.01.00
|
|
Go to the documentation of this file.
43 #ifndef IO_EXP_TCA6424_H_
44 #define IO_EXP_TCA6424_H_
69 #define TCA6424_MODE_INPUT (0U)
71 #define TCA6424_MODE_OUTPUT (1U)
80 #define TCA6424_OUT_STATE_LOW (0U)
82 #define TCA6424_OUT_STATE_HIGH (1U)
92 typedef struct TCA6424_Params_s
104 typedef struct TCA6424_Attrs_s
114 typedef struct TCA6424_Config_s
TCA6424_Params params
Definition: ioexp_tca6424.h:116
uint32_t i2cAddress
Definition: ioexp_tca6424.h:97
uint8_t mode
Definition: tisci_lpm.h:1
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.
SemaphoreP_Object lockObj
Definition: ioexp_tca6424.h:124
TCA6424_Attrs attrs
Definition: ioexp_tca6424.h:118
void * lock
Definition: ioexp_tca6424.h:122
struct I2C_Config_s * I2C_Handle
A handle that is returned from a I2C_open() call.
Definition: i2c/v0/i2c.h:165
Parameters passed during TCA6424_open()
Definition: ioexp_tca6424.h:93
uint8_t state
Definition: tisci_lpm.h:1
uint32_t numIo
Definition: ioexp_tca6424.h:106
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.
uint32_t i2cInstance
Definition: ioexp_tca6424.h:94
IO Expander device attributes.
Definition: ioexp_tca6424.h:105
I2C_Handle i2cHandle
Definition: ioexp_tca6424.h:120
Opaque semaphore object used with the semaphore APIs.
Definition: SemaphoreP.h:59
IO Expander driver configuration. This is the driver object used to store state variables.
Definition: ioexp_tca6424.h:115
void TCA6424_close(TCA6424_Config *config)
Close TCA6424 driver.
int32_t TCA6424_open(TCA6424_Config *config, const TCA6424_Params *params)
Open TCA6424 driver.
void TCA6424_getAttrs(TCA6424_Config *config, TCA6424_Attrs *attrs)
Returns TCA6424 attributes.
void TCA6424_Params_init(TCA6424_Params *params)
Set default parameters in the TCA6424_Params structure.