Hi friends, is a pleasure to be here. I am working with the protocol I2C using the microcontroller S32K118. I am working with a device calls KTS1622EUAA-TR that is a extenser of inputs and outputs. The good news that I2c fuction of the program lpi2c_master_s32k118 it is working because it reconigzed the device to write and read, but I want to work the registers of the device so the problem that I have here which the fuction that I can write to the registers of the device, the fuctions for it are this:
status_t LPI2C_DRV_MasterSendData(uint32_t instance,
const uint8_t * txBuff,
uint32_t txSize,
bool sendStop)
status_t LPI2C_DRV_MasterSendDataBlocking(uint32_t instance,
const uint8_t * txBuff,
uint32_t txSize,
bool sendStop,
uint32_t timeout)
Another thing that I want to use for this is to read the state of the inputs and outputs of the device
status_t LPI2C_DRV_MasterReceiveData(uint32_t instance,
uint8_t * rxBuff,
uint32_t rxSize,
bool sendStop)
status_t LPI2C_DRV_MasterReceiveDataBlocking(uint32_t instance,
uint8_t * rxBuff,
uint32_t rxSize,
bool sendStop,
uint32_t timeout)
please let me know about it,