Lines Matching refs:I2C_InitStruct
149 void I2C_Init(I2C_TypeDef* I2Cx, I2C_InitTypeDef* I2C_InitStruct) in I2C_Init() argument
160 assert_param(IS_I2C_MODE(I2C_InitStruct->I2C_Mode)); in I2C_Init()
161 assert_param(IS_I2C_CLOCK_SPEED(I2C_InitStruct->I2C_ClockSpeed)); in I2C_Init()
173 i2cPeriod = 1000000000/I2C_InitStruct->I2C_ClockSpeed; //ns unit in I2C_Init()
182 if (I2C_InitStruct->I2C_ClockSpeed <= 100000) in I2C_Init()
187 I2C_InitStruct->I2C_Speed = I2C_Speed_STANDARD; in I2C_Init()
194 I2C_InitStruct->I2C_Speed = I2C_Speed_FAST; in I2C_Init()
199 …IC_SLAVE_DISABLE | IC_RESTART_EN |IC_7BITADDR_MASTER | I2C_InitStruct->I2C_Speed | I2C_InitStruct-… in I2C_Init()
224 void I2C_StructInit(I2C_InitTypeDef* I2C_InitStruct) in I2C_StructInit() argument
228 I2C_InitStruct->I2C_Mode = I2C_Mode_MASTER; in I2C_StructInit()
230 I2C_InitStruct->I2C_OwnAddress = 0xA8; in I2C_StructInit()
232 I2C_InitStruct->I2C_Speed = I2C_Speed_STANDARD; in I2C_StructInit()
234 I2C_InitStruct->I2C_ClockSpeed = 100000; in I2C_StructInit()