EDF - OnePIC MCU  v1.1.0
source/base/OnePIC_i2c.c File Reference

Performs all I2C Master related tasks such as: More...

#include "Compiler.h"
#include "bsp.h"
#include "TimeDelay.h"
#include "OnePIC_i2c.h"
Include dependency graph for OnePIC_i2c.c:

Go to the source code of this file.

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

Detailed Description

Performs all I2C Master related tasks such as:

Author:
Larry Gass
Date:
2010-10-11
  • init
  • tx
  • rx

Definition in file OnePIC_i2c.c.