 |
J722S MCU+ SDK
09.02.00
|
|
Go to the documentation of this file.
43 #ifndef IO_EXP_TCA6416_H_
44 #define IO_EXP_TCA6416_H_
69 #define TCA6416_MODE_INPUT (0U)
71 #define TCA6416_MODE_OUTPUT (1U)
80 #define TCA6416_OUT_STATE_LOW (0U)
82 #define TCA6416_OUT_STATE_HIGH (1U)
92 typedef struct TCA6416_Params_s
104 typedef struct TCA6416_Attrs_s
114 typedef struct TCA6416_Config_s
void * lock
Definition: ioexp_tca6416.h:122
uint32_t i2cInstance
Definition: ioexp_tca6416.h:94
SemaphoreP_Object lockObj
Definition: ioexp_tca6416.h:124
uint8_t state
Definition: tisci_pm_clock.h:3
int32_t TCA6416_open(TCA6416_Config *config, const TCA6416_Params *params)
Open TCA6416 driver.
Parameters passed during TCA6416_open()
Definition: ioexp_tca6416.h:93
TCA6416_Params params
Definition: ioexp_tca6416.h:116
struct I2C_Config_s * I2C_Handle
A handle that is returned from a I2C_open() call.
Definition: i2c/v0/i2c.h:175
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.
IO Expander device attributes.
Definition: ioexp_tca6416.h:105
char mode[32]
Definition: tisci_pm_core.h:1
TCA6416_Attrs attrs
Definition: ioexp_tca6416.h:118
void TCA6416_Params_init(TCA6416_Params *params)
Set default parameters in the TCA6416_Params structure.
void TCA6416_close(TCA6416_Config *config)
Close TCA6416 driver.
uint32_t i2cAddress
Definition: ioexp_tca6416.h:97
Opaque semaphore object used with the semaphore APIs.
Definition: SemaphoreP.h:59
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.
I2C_Handle i2cHandle
Definition: ioexp_tca6416.h:120
uint32_t numIo
Definition: ioexp_tca6416.h:106
void TCA6416_getAttrs(TCA6416_Config *config, TCA6416_Attrs *attrs)
Returns TCA6416 attributes.
IO Expander driver configuration. This is the driver object used to store state variables.
Definition: ioexp_tca6416.h:115