Microchip® Advanced Software Framework

twim_package Struct Reference

Information concerning the data transmission.

#include <twim.h>

Data Fields

uint8_t addr [3]
 TWI address/commands to issue to the other chip (node). More...
 
uint8_t addr_length
 Length of the TWI data address segment (1-3 bytes). More...
 
void * buffer
 Where to find the data to be written. More...
 
uint32_t chip
 TWI chip address to communicate with. More...
 
bool high_speed
 Indicate if it is a high-speed transfer. More...
 
uint8_t high_speed_code
 High speed mode master code, valid if high_speed is true. More...
 
uint32_t length
 How many bytes do we want to write. More...
 
bool ten_bit
 Indicate if it is 10-bit addressing. More...
 

uint8_t twim_package::addr[3]

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

Referenced by twi_master_read(), and twi_master_write().

uint8_t twim_package::addr_length

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

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

void* twim_package::buffer

Where to find the data to be written.

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

uint32_t twim_package::chip

TWI chip address to communicate with.

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

bool twim_package::high_speed

Indicate if it is a high-speed transfer.

Referenced by twi_master_read(), and twi_master_write().

uint8_t twim_package::high_speed_code

High speed mode master code, valid if high_speed is true.

Referenced by twi_master_read(), and twi_master_write().

uint32_t twim_package::length

How many bytes do we want to write.

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

bool twim_package::ten_bit

Indicate if it is 10-bit addressing.

Referenced by twi_master_read(), and twi_master_write().