Microchip® Advanced Software Framework

twi_package_t 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...
 
int addr_length
 Length of the TWI data address segment (1-3 bytes). More...
 
void * buffer
 Where to find the data to be written. More...
 
char chip
 TWI chip address to communicate with. More...
 
unsigned int length
 How many bytes do we want to write. More...
 

uint8_t twi_package_t::addr[3]

TWI address/commands to issue to the other chip (node).

Referenced by cs2200_read(), cs2200_write(), cs2200_write_ex(), twi_master_read(), twi_master_write(), twi_master_write_ex(), and twi_probe().

int twi_package_t::addr_length

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

Referenced by cs2200_read(), cs2200_write(), cs2200_write_ex(), twi_master_read(), twi_master_write(), twi_master_write_ex(), and twi_probe().

void* twi_package_t::buffer
unsigned int twi_package_t::length