如何设定I2C 相关flag的说明
时间:10-02
整理:3721RD
点击:
[DESCRIPTION]
关于I2C 传输时相关flag的说明
[PLATFORM]
MT6575 MT6577 MT6589
[SOLUTION]
i2c传输前需要对CLIent->ext_flag 做设定,或上相关标志,各个flag解释如下:
I2C_DMA_FLAG
–开启DMA传输,default 为fifo mode传输
I2C_WR_FLAG
–Enable write and read tranfer mode, Must set I2C_RS_FLAG ,Don’t support
in DMA mode
I2C_RS_FLAG
–Enable REPEATED-START
I2C_HS_FLAG
–Enable high speed mode,default 为低速和快速
I2C_PUSHPULL_FLAG
–使能pushpull mode,default 为open drain
I2C_ENEXT_FLAG
–Allows slaves to hold the SCL line low if it is not yet ready for
further processing ,Open open-drain mode of the SCL line
关于I2C 传输时相关flag的说明
[PLATFORM]
MT6575 MT6577 MT6589
[SOLUTION]
i2c传输前需要对CLIent->ext_flag 做设定,或上相关标志,各个flag解释如下:
I2C_DMA_FLAG
–开启DMA传输,default 为fifo mode传输
I2C_WR_FLAG
–Enable write and read tranfer mode, Must set I2C_RS_FLAG ,Don’t support
in DMA mode
I2C_RS_FLAG
–Enable REPEATED-START
I2C_HS_FLAG
–Enable high speed mode,default 为低速和快速
I2C_PUSHPULL_FLAG
–使能pushpull mode,default 为open drain
I2C_ENEXT_FLAG
–Allows slaves to hold the SCL line low if it is not yet ready for
further processing ,Open open-drain mode of the SCL line