RT-AICHIP-sample
i2c.h ファイル
被依存関係図:

[ソースコード]

マクロ定義

#define FAST_MODE_PLUS   0
 
#define BUFSIZE   0x80
 
#define MAX_TIMEOUT   0x00FFFFFF
 
#define I2CMASTER   0x01
 
#define I2CSLAVE   0x02
 
#define MPU6050_W   0xd0
 
#define MPU6050_R   0xd1
 
#define AK8975_W   0x18
 
#define AK8975_R   0x19
 
#define PCF8594_ADDR   0xA0
 
#define READ_WRITE   0x01
 
#define RD_BIT   0x01
 
#define I2C_IDLE   0
 
#define I2C_STARTED   1
 
#define I2C_RESTARTED   2
 
#define I2C_REPEATED_START   3
 
#define DATA_ACK   4
 
#define DATA_NACK   5
 
#define I2CONSET_I2EN   0x00000040 /* I2C Control Set Register */
 
#define I2CONSET_AA   0x00000004
 
#define I2CONSET_SI   0x00000008
 
#define I2CONSET_STO   0x00000010
 
#define I2CONSET_STA   0x00000020
 
#define I2CONCLR_AAC   0x00000004 /* I2C Control clear Register */
 
#define I2CONCLR_SIC   0x00000008
 
#define I2CONCLR_STAC   0x00000020
 
#define I2CONCLR_I2ENC   0x00000040
 
#define I2DAT_I2C   0x00000000 /* I2C Data Reg */
 
#define I2ADR_I2C   0x00000000 /* I2C Slave Address Reg */
 
#define I2SCLH_SCLH   0x00000180 /* I2C SCL Duty Cycle High Reg */
 
#define I2SCLL_SCLL   0x00000180 /* I2C SCL Duty Cycle Low Reg */
 
#define I2SCLH_HS_SCLH   0x00000020 /* Fast Plus I2C SCL Duty Cycle High Reg */
 
#define I2SCLL_HS_SCLL   0x00000020 /* Fast Plus I2C SCL Duty Cycle Low Reg */
 

関数

void I2C_IRQHandler (void)
 
uint32_t I2CInit (uint32_t I2cMode)
 
uint32_t I2CStart (void)
 
uint32_t I2CStop (void)
 
uint32_t I2CEngine (void)
 

マクロ定義詳解

#define AK8975_R   0x19

i2c.h25 行目に定義があります。

#define AK8975_W   0x18

i2c.h24 行目に定義があります。

#define BUFSIZE   0x80

i2c.h16 行目に定義があります。

#define DATA_ACK   4

i2c.h36 行目に定義があります。

#define DATA_NACK   5

i2c.h37 行目に定義があります。

#define FAST_MODE_PLUS   0

i2c.h14 行目に定義があります。

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

i2c.h51 行目に定義があります。

#define I2C_IDLE   0

i2c.h32 行目に定義があります。

#define I2C_REPEATED_START   3

i2c.h35 行目に定義があります。

#define I2C_RESTARTED   2

i2c.h34 行目に定義があります。

#define I2C_STARTED   1

i2c.h33 行目に定義があります。

#define I2CMASTER   0x01

i2c.h19 行目に定義があります。

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

i2c.h45 行目に定義があります。

#define I2CONCLR_I2ENC   0x00000040

i2c.h48 行目に定義があります。

#define I2CONCLR_SIC   0x00000008

i2c.h46 行目に定義があります。

#define I2CONCLR_STAC   0x00000020

i2c.h47 行目に定義があります。

#define I2CONSET_AA   0x00000004

i2c.h40 行目に定義があります。

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

i2c.h39 行目に定義があります。

#define I2CONSET_SI   0x00000008

i2c.h41 行目に定義があります。

#define I2CONSET_STA   0x00000020

i2c.h43 行目に定義があります。

#define I2CONSET_STO   0x00000010

i2c.h42 行目に定義があります。

#define I2CSLAVE   0x02

i2c.h20 行目に定義があります。

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

i2c.h50 行目に定義があります。

#define I2SCLH_HS_SCLH   0x00000020 /* Fast Plus I2C SCL Duty Cycle High Reg */

i2c.h54 行目に定義があります。

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

i2c.h52 行目に定義があります。

#define I2SCLL_HS_SCLL   0x00000020 /* Fast Plus I2C SCL Duty Cycle Low Reg */

i2c.h55 行目に定義があります。

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

i2c.h53 行目に定義があります。

#define MAX_TIMEOUT   0x00FFFFFF

i2c.h17 行目に定義があります。

#define MPU6050_R   0xd1

i2c.h23 行目に定義があります。

#define MPU6050_W   0xd0

i2c.h22 行目に定義があります。

#define PCF8594_ADDR   0xA0

i2c.h26 行目に定義があります。

#define RD_BIT   0x01

i2c.h30 行目に定義があります。

#define READ_WRITE   0x01

i2c.h28 行目に定義があります。

関数詳解

void I2C_IRQHandler ( void  )

i2c.c48 行目に定義があります。

uint32_t I2CEngine ( void  )

i2c.c282 行目に定義があります。

呼び出し関係図:

被呼び出し関係図:

uint32_t I2CInit ( uint32_t  I2cMode)

i2c.c221 行目に定義があります。

被呼び出し関係図:

uint32_t I2CStart ( void  )

i2c.c165 行目に定義があります。

被呼び出し関係図:

uint32_t I2CStop ( void  )

i2c.c201 行目に定義があります。

被呼び出し関係図: