Microchip® Advanced Software Framework

twihs_packet Struct Reference

Information concerning the data transmission.

#include <twihs.h>

Data Fields

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

uint8_t twihs_packet::addr[3]

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

Referenced by nm_i2c_read(), nm_i2c_write(), twihs_master_read(), twihs_master_write(), and twihs_probe().

uint32_t twihs_packet::addr_length

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

Referenced by nm_i2c_read(), nm_i2c_write(), twihs_master_read(), twihs_master_write(), and twihs_probe().

void* twihs_packet::buffer

Where to find the data to be transferred.

Referenced by nm_i2c_read(), nm_i2c_write(), twihs_master_read(), twihs_master_write(), and twihs_probe().

uint8_t twihs_packet::chip

TWIHS chip address to communicate with.

Referenced by nm_i2c_read(), nm_i2c_write(), twihs_master_read(), twihs_master_write(), and twihs_probe().

uint32_t twihs_packet::length

How many bytes do we want to transfer.

Referenced by nm_i2c_read(), nm_i2c_write(), twihs_master_read(), twihs_master_write(), and twihs_probe().