EDF - OnePIC MCU  v1.1.0
I2C
Collaboration diagram for I2C:

Defines

#define __I2C1_ISR   __attribute__((interrupt, shadow, auto_psv))

Functions

int i2cIdle (struct i2cBus *bus)
void __I2C1_ISR _MI2C1Interrupt (void)
 service i2c interrupt for PIC24
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

Variables

struct i2cBus bus1
 global variables that are used to init the i2c bus

Function Documentation

int i2cIdle ( struct i2cBus bus)
Parameters:
busi2c statemachine
Returns:
the state of the I2C of Idle

Definition at line 38 of file OnePIC_i2c.c.

void trbEnQ ( struct i2cBus bus,
struct trb req 
)

Initializes the I2C hardware and data structures.

Parameters:
busi2c bus status
reqi2c bus properties

Definition at line 195 of file OnePIC_i2c.c.

Here is the caller graph for this function:


Variable Documentation

Initial value:
 {
        I2C_IDLE,
        0,
        0,
        (void *)0,
        &bus1.req
}

global variables that are used to init the i2c bus

Definition at line 25 of file OnePIC_i2c.c.