Defines | Functions
i2c.h File Reference

Go to the source code of this file.

Defines

#define BUFSIZE   0x20
#define DATA_ACK   4
#define DATA_NACK   5
#define GET_DEVICE_ID   0x01
#define GET_TEMPERATURE   0x02
#define I2ADR_I2C   0x00000000 /* I2C Slave Address Reg */
#define I2C_IDLE   0
#define I2C_REPEATED_START   3
#define I2C_RESTARTED   2
#define I2C_STARTED   1
#define I2CMASTER   0x01
#define I2CONCLR_AAC   0x00000004 /* I2C Control clear Register */
#define I2CONCLR_I2ENC   0x00000040
#define I2CONCLR_SIC   0x00000008
#define I2CONCLR_STAC   0x00000020
#define I2CONSET_AA   0x00000004
#define I2CONSET_I2EN   0x00000040 /* I2C Control Set Register */
#define I2CONSET_SI   0x00000008
#define I2CONSET_STA   0x00000020
#define I2CONSET_STO   0x00000010
#define I2CSLAVE   0x02
#define I2DAT_I2C   0x00000000 /* I2C Data Reg */
#define I2SCLH_SCLH   0x00000080 /* I2C SCL Duty Cycle High Reg */
#define I2SCLL_SCLL   0x00000080 /* I2C SCL Duty Cycle Low Reg */
#define MAX_TIMEOUT   0x00FFFFFF
#define RD_BIT   0x01
#define SE95_ADDR   0x9E
#define SE95_CONFIG   0x01
#define SE95_ID   0x05
#define SE95_TEMP   0x00
#define SET_CONFIGURATION   0x03

Functions

void I2C0_send_motordata (void)
void I2C0MasterHandler (void)
unsigned int I2CEngine (void)
void I2CInit (unsigned int I2cMode)
unsigned int I2CStart (void)
unsigned int I2CStop (void)

Define Documentation

#define BUFSIZE   0x20

Definition at line 14 of file i2c.h.

#define DATA_ACK   4

Definition at line 35 of file i2c.h.

#define DATA_NACK   5

Definition at line 36 of file i2c.h.

#define GET_DEVICE_ID   0x01

Definition at line 27 of file i2c.h.

#define GET_TEMPERATURE   0x02

Definition at line 28 of file i2c.h.

#define I2ADR_I2C   0x00000000 /* I2C Slave Address Reg */

Definition at line 50 of file i2c.h.

#define I2C_IDLE   0

Definition at line 31 of file i2c.h.

#define I2C_REPEATED_START   3

Definition at line 34 of file i2c.h.

#define I2C_RESTARTED   2

Definition at line 33 of file i2c.h.

#define I2C_STARTED   1

Definition at line 32 of file i2c.h.

#define I2CMASTER   0x01

Definition at line 17 of file i2c.h.

#define I2CONCLR_AAC   0x00000004 /* I2C Control clear Register */

Definition at line 44 of file i2c.h.

#define I2CONCLR_I2ENC   0x00000040

Definition at line 47 of file i2c.h.

#define I2CONCLR_SIC   0x00000008

Definition at line 45 of file i2c.h.

#define I2CONCLR_STAC   0x00000020

Definition at line 46 of file i2c.h.

#define I2CONSET_AA   0x00000004

Definition at line 39 of file i2c.h.

#define I2CONSET_I2EN   0x00000040 /* I2C Control Set Register */

Definition at line 38 of file i2c.h.

#define I2CONSET_SI   0x00000008

Definition at line 40 of file i2c.h.

#define I2CONSET_STA   0x00000020

Definition at line 42 of file i2c.h.

#define I2CONSET_STO   0x00000010

Definition at line 41 of file i2c.h.

#define I2CSLAVE   0x02

Definition at line 18 of file i2c.h.

#define I2DAT_I2C   0x00000000 /* I2C Data Reg */

Definition at line 49 of file i2c.h.

#define I2SCLH_SCLH   0x00000080 /* I2C SCL Duty Cycle High Reg */

Definition at line 51 of file i2c.h.

#define I2SCLL_SCLL   0x00000080 /* I2C SCL Duty Cycle Low Reg */

Definition at line 52 of file i2c.h.

#define MAX_TIMEOUT   0x00FFFFFF

Definition at line 15 of file i2c.h.

#define RD_BIT   0x01

Definition at line 25 of file i2c.h.

#define SE95_ADDR   0x9E

Definition at line 21 of file i2c.h.

#define SE95_CONFIG   0x01

Definition at line 23 of file i2c.h.

#define SE95_ID   0x05

Definition at line 22 of file i2c.h.

#define SE95_TEMP   0x00

Definition at line 24 of file i2c.h.

#define SET_CONFIGURATION   0x03

Definition at line 29 of file i2c.h.


Function Documentation

void I2C0_send_motordata ( void  )

Definition at line 161 of file i2c.c.

void I2C0MasterHandler ( void  )

Definition at line 51 of file i2c.c.

unsigned int I2CEngine ( void  )

Definition at line 276 of file i2c.c.

void I2CInit ( unsigned int  I2cMode)

Definition at line 246 of file i2c.c.

unsigned int I2CStart ( void  )

Definition at line 190 of file i2c.c.

unsigned int I2CStop ( void  )

Definition at line 226 of file i2c.c.



ccny_asctec_firmware
Author(s): Ivan Dryanovski, Roberto G. Valenti
autogenerated on Tue Jan 7 2014 11:04:32