SAM4SD32 (SAM4S-EK2)
Loading...
Searching...
No Matches
twi_packet Struct Reference

Information concerning the data transmission. More...

#include <twi.h>

Data Fields

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

Detailed Description

Information concerning the data transmission.

Definition at line 88 of file twi.h.

Field Documentation

◆ addr

uint8_t twi_packet::addr[3]

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

Definition at line 90 of file twi.h.

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

◆ addr_length

uint32_t twi_packet::addr_length

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

Definition at line 92 of file twi.h.

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

◆ buffer

void* twi_packet::buffer

Where to find the data to be transferred.

Definition at line 94 of file twi.h.

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

◆ chip

uint8_t twi_packet::chip

TWI chip address to communicate with.

Definition at line 98 of file twi.h.

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

◆ length

uint32_t twi_packet::length

How many bytes do we want to transfer.

Definition at line 96 of file twi.h.

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