Microchip® Advanced Software Framework

twi_packet Struct Reference

Information concerning the data transmission.

#include <twi.h>

Data Fields

uint8_t addr [3]
 TWI address/commands to issue to the other chip (node). More...
 
uint32_t addr_length
 Length of the TWI data address segment (1-3 bytes). More...
 
void * buffer
 Where to find the data to be transferred. More...
 
uint8_t chip
 TWI chip address to communicate with. More...
 
uint32_t length
 How many bytes do we want to transfer. More...
 

uint32_t twi_packet::addr_length

Length of the TWI data address segment (1-3 bytes).

Referenced by twi_master_read(), twi_master_write(), and twi_probe().

void* twi_packet::buffer

Where to find the data to be transferred.

Referenced by mxt_validate_message(), twi_master_read(), twi_master_write(), and twi_probe().

uint8_t twi_packet::chip

TWI chip address to communicate with.

Referenced by twi_master_read(), twi_master_write(), and twi_probe().

uint32_t twi_packet::length

How many bytes do we want to transfer.

Referenced by twi_master_read(), twi_master_write(), and twi_probe().