Microchip® Advanced Software Framework

twi_package_t Struct Reference

Information concerning the data transmission.

#include <twi_common.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...
 
bool no_wait
 Whether to wait if bus is busy (false) or return immediately (true) More...
 

uint8_t twi_package_t::addr[3]

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

Referenced by twim_write_handler().

int twi_package_t::addr_length

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

Referenced by twi_master_transfer(), and twim_write_handler().

void* twi_package_t::buffer

Where to find the data to be written.

Referenced by twim_read_handler(), and twim_write_handler().

char twi_package_t::chip

TWI chip address to communicate with.

Referenced by twi_bus_read(), twi_bus_write(), and twi_master_transfer().

unsigned int twi_package_t::length

How many bytes do we want to write.

Referenced by twim_read_handler(), and twim_write_handler().

bool twi_package_t::no_wait

Whether to wait if bus is busy (false) or return immediately (true)

Referenced by twi_master_transfer().