# twi_package_t Struct Reference

`#include <twi.h>`

## Detailed Description

Information concerning the data transmission.

Definition at line 82 of file twi.h.

## Data Fields
unsigned int | addr
| TWI address/commands to issue to the other chip (node).
int | addr_length
| Length of the TWI data address segment (1-3 bytes).
void * | buffer
| Where to find the data to be written.
char | chip
| TWI chip address to communicate with.
unsigned int | length
| How many bytes do we want to write.

## Field Documentation

unsigned int twi_package_t::addr

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

Definition at line 87 of file twi.h.

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

int twi_package_t::addr_length

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

Definition at line 89 of file twi.h.

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

void* twi_package_t::buffer

Where to find the data to be written.

Definition at line 91 of file twi.h.

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

char twi_package_t::chip

TWI chip address to communicate with.

Definition at line 85 of file twi.h.

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

unsigned int twi_package_t::length

How many bytes do we want to write.

Definition at line 93 of file twi.h.

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