PSoC 6 Hardware Abstraction Layer (HAL)

General Description

Functions

cy_rslt_t cyhal_i2c_slave_config_write_buff (cyhal_i2c_t *obj, const uint8_t *data, uint16_t size)
 
cy_rslt_t cyhal_i2c_slave_config_read_buff (cyhal_i2c_t *obj, uint8_t *data, uint16_t size)
 

Function Documentation

◆ cyhal_i2c_slave_config_write_buff()

cy_rslt_t cyhal_i2c_slave_config_write_buff ( cyhal_i2c_t *  obj,
const uint8_t *  data,
uint16_t  size 
)

I2C slave config write buffer The user needs to setup a new buffer every time (i.e. call slave_send and slave_recv every time the buffer has been used up)

Parameters
[in]objThe I2C object
[in]datai2c slave send data
[in]sizei2c slave send data size
Returns
The status of the slave_config_write_buff request

◆ cyhal_i2c_slave_config_read_buff()

cy_rslt_t cyhal_i2c_slave_config_read_buff ( cyhal_i2c_t *  obj,
uint8_t *  data,
uint16_t  size 
)

I2C slave config read buffer The user needs to setup a new buffer every time (i.e. call slave_send and slave_recv every time the buffer has been used up)

Parameters
[in]objThe I2C object
[out]datai2c slave receive data
[in]sizei2c slave receive data size
Returns
The status of the slave_config_read_buff request