Microchip® Advanced Software Framework

i2c_slave_packet Struct Reference

I2C slave packet for read/write.

Structure to be used when transferring I2C slave packets.

#include <i2c_slave.h>

Data Fields

uint8_t * data
 Data array containing all data to be transferred. More...
 
uint16_t data_length
 Length of data array. More...
 

uint8_t* i2c_slave_packet::data

Data array containing all data to be transferred.

Referenced by fetch_data(), get_length(), i2c_slave_read_packet_wait(), i2c_slave_write_packet_wait(), and send_ack().

uint16_t i2c_slave_packet::data_length