EDF - OnePIC MCU  v1.1.0
trb Struct Reference

Contains I2C attributes such as: More...

#include <OnePIC_i2c.h>

Collaboration diagram for trb:

Data Fields

unsigned char addr
unsigned char txLen
unsigned char rxLen
const unsigned char * txBuf
unsigned char * rxBuf
unsigned char retries
volatile unsigned char status
struct trbnext

Detailed Description

Contains I2C attributes such as:

  • address
  • # of bits per byte in rx/tx
  • tx/rx buffer
  • # of retries
  • status of i2c

Field Documentation

slave address

Definition at line 83 of file OnePIC_i2c.h.

pointer to next byte

Note:
talk to larry

Definition at line 90 of file OnePIC_i2c.h.

num of allowed retries

Definition at line 88 of file OnePIC_i2c.h.

pointer to the received byte

Definition at line 87 of file OnePIC_i2c.h.

num of bits in reception

Definition at line 85 of file OnePIC_i2c.h.

bit 7 - done, bit 0 - NAK

Definition at line 89 of file OnePIC_i2c.h.

pointer to the transmitted byte

Definition at line 86 of file OnePIC_i2c.h.

num of bits in transmission

Definition at line 84 of file OnePIC_i2c.h.


The documentation for this struct was generated from the following file: