EDF - OnePIC MCU  v1.1.0
source/base/include/OnePIC_i2c.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  trb
 Contains I2C attributes such as: More...
struct  i2cBus
 Holds the statemachine properties. More...
enum  i2cState {
  I2C_IDLE, I2C_STARTING, I2C_XMITING, I2C_RECEIVEADDR,
  I2C_RESTARTING, I2C_RECEIVING, I2C_ACKING, I2C_STOPPING,
  I2C_STOP_IN_ENQ, I2C_ERRORS
}
 Contains all I2C states that the state machine can be in. More...
struct i2cBus bus1
 global variables that are used to init the i2c bus
int i2cIdle (struct i2cBus *bus)
void trbEnQ (struct i2cBus *bus, struct trb *req)
 Initializes the I2C hardware and data structures.
void I2CInit (void)
 init the I2C according to each architecture
void ISR_i2c (void)

Detailed Description

Author:
Larry Gass
Date:
2010-10-11

Definition in file OnePIC_i2c.h.


Enumeration Type Documentation

enum i2cState

Contains all I2C states that the state machine can be in.

Enumerator:
I2C_IDLE 

i2c no activity

I2C_STARTING 

sent start bit

I2C_XMITING 

transmitting

I2C_RESTARTING 

restarting comms

I2C_RECEIVING 

receiving a byte

I2C_ACKING 

acknowledging to other devices

I2C_STOPPING 

stopping communicatin

I2C_STOP_IN_ENQ 

stop in progress

I2C_ERRORS 

error flag (did slave device ack?)

Definition at line 40 of file OnePIC_i2c.h.