Home
last modified time | relevance | path

Searched refs:I2C_InitStruct (Results 1 – 25 of 41) sorted by relevance

12

/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/Src/
A Dfm33lc0xx_fl_i2c.c117 FL_RCC_SetI2CClockSource(I2C_InitStruct->clockSource); in FL_I2C_MasterMode_Init()
119 switch(I2C_InitStruct->clockSource) in FL_I2C_MasterMode_Init()
155 I2C_InitStruct->baudRate = 40000; in FL_I2C_MasterMode_StructInit()
170 assert_param(IS_FL_I2C_SLAVE_ACK(I2C_InitStruct->ACK)); in FL_I2C_SlaveMode_Init()
180 if(I2C_InitStruct->ACK == FL_ENABLE) in FL_I2C_SlaveMode_Init()
189 if(I2C_InitStruct->ownAddrSize10bit == FL_ENABLE) in FL_I2C_SlaveMode_Init()
200 if(I2C_InitStruct->SCLSEN == FL_ENABLE) in FL_I2C_SlaveMode_Init()
222 I2C_InitStruct->ACK = FL_ENABLE; in FL_I2C_SlaveMode_StructInit()
223 I2C_InitStruct->ownAddr = 0x55; in FL_I2C_SlaveMode_StructInit()
224 I2C_InitStruct->ownAddrSize10bit = FL_DISABLE; in FL_I2C_SlaveMode_StructInit()
[all …]
/bsp/stm32/libraries/STM32L1xx_HAL/STM32L1xx_HAL_Driver/Src/
A Dstm32l1xx_ll_i2c.c138 assert_param(IS_LL_I2C_DUTY_CYCLE(I2C_InitStruct->DutyCycle)); in LL_I2C_Init()
155 …LL_I2C_ConfigSpeed(I2Cx, rcc_clocks.PCLK1_Frequency, I2C_InitStruct->ClockSpeed, I2C_InitStruct->D… in LL_I2C_Init()
162 LL_I2C_SetOwnAddress1(I2Cx, I2C_InitStruct->OwnAddress1, I2C_InitStruct->OwnAddrSize); in LL_I2C_Init()
168 LL_I2C_SetMode(I2Cx, I2C_InitStruct->PeripheralMode); in LL_I2C_Init()
188 void LL_I2C_StructInit(LL_I2C_InitTypeDef *I2C_InitStruct) in LL_I2C_StructInit() argument
191 I2C_InitStruct->PeripheralMode = LL_I2C_MODE_I2C; in LL_I2C_StructInit()
192 I2C_InitStruct->ClockSpeed = 5000U; in LL_I2C_StructInit()
193 I2C_InitStruct->DutyCycle = LL_I2C_DUTYCYCLE_2; in LL_I2C_StructInit()
194 I2C_InitStruct->OwnAddress1 = 0U; in LL_I2C_StructInit()
195 I2C_InitStruct->TypeAcknowledge = LL_I2C_NACK; in LL_I2C_StructInit()
[all …]
/bsp/ht32/libraries/HT32_STD_5xxxx_FWLib/library/HT32F5xxxx_Driver/src/
A Dht32f5xxxx_i2c.c134 Assert_Param(IS_I2C_SPEED(I2C_InitStruct->I2C_Speed)); in I2C_Init()
137 …I2Cx->CR = (I2Cx->CR & 0xFFFFFFFA) | I2C_InitStruct->I2C_GeneralCall | I2C_InitStruct->I2C_Acknowl… in I2C_Init()
140 I2C_InitStruct->I2C_AddressingMode | I2C_InitStruct->I2C_Acknowledge; in I2C_Init()
146 I2Cx->ADDR = I2C_InitStruct->I2C_OwnAddress; in I2C_Init()
179 SHPGR = (PCLK_Freq * 9)/(I2C_InitStruct->I2C_Speed * 20) - sTmp - I2C_InitStruct->I2C_SpeedOffset; in I2C_Init()
180 …SLPGR = (PCLK_Freq * 11)/(I2C_InitStruct->I2C_Speed * 20) - sTmp - I2C_InitStruct->I2C_SpeedOffset; in I2C_Init()
194 void I2C_StructInit(I2C_InitTypeDef* I2C_InitStruct) in I2C_StructInit() argument
198 I2C_InitStruct->I2C_Acknowledge = I2C_ACK_DISABLE; in I2C_StructInit()
199 I2C_InitStruct->I2C_OwnAddress = 0; in I2C_StructInit()
200 I2C_InitStruct->I2C_Speed = 1000000; in I2C_StructInit()
[all …]
/bsp/ht32/libraries/HT32_STD_1xxxx_FWLib/library/HT32F1xxxx_Driver/src/
A Dht32f1xxxx_i2c.c119 Assert_Param(IS_I2C_SPEED(I2C_InitStruct->I2C_Speed)); in I2C_Init()
122 I2C_InitStruct->I2C_AddressingMode | I2C_InitStruct->I2C_Acknowledge; in I2C_Init()
124 I2Cx->ADDR = I2C_InitStruct->I2C_OwnAddress; in I2C_Init()
150 SHPGR = (PCLK_Freq * 9)/(I2C_InitStruct->I2C_Speed * 20) - sTmp - I2C_InitStruct->I2C_SpeedOffset; in I2C_Init()
151 …SLPGR = (PCLK_Freq * 11)/(I2C_InitStruct->I2C_Speed * 20) - sTmp - I2C_InitStruct->I2C_SpeedOffset; in I2C_Init()
165 void I2C_StructInit(I2C_InitTypeDef* I2C_InitStruct) in I2C_StructInit() argument
168 I2C_InitStruct->I2C_AddressingMode = I2C_ADDRESSING_7BIT; in I2C_StructInit()
169 I2C_InitStruct->I2C_Acknowledge = I2C_ACK_DISABLE; in I2C_StructInit()
170 I2C_InitStruct->I2C_OwnAddress = 0; in I2C_StructInit()
171 I2C_InitStruct->I2C_Speed = 1000000; in I2C_StructInit()
[all …]
/bsp/n32/libraries/N32L43x_Firmware_Library/n32l43x_std_periph_driver/src/
A Dn32l43x_i2c.c209 assert_param(IS_I2C_BUS_MODE(I2C_InitStruct->BusMode)); in I2C_Init()
237 if (I2C_InitStruct->ClkSpeed <= 100000) in I2C_Init()
301 tmpregister |= (uint16_t)((uint32_t)I2C_InitStruct->BusMode | I2C_InitStruct->AckEnable); in I2C_Init()
307 I2Cx->OADDR1 = (I2C_InitStruct->AddrMode | I2C_InitStruct->OwnAddr1); in I2C_Init()
314 void I2C_InitStruct(I2C_InitType* I2C_InitStruct) in I2C_InitStruct() argument
318 I2C_InitStruct->ClkSpeed = 5000; in I2C_InitStruct()
320 I2C_InitStruct->BusMode = I2C_BUSMODE_I2C; in I2C_InitStruct()
322 I2C_InitStruct->FmDutyCycle = I2C_FMDUTYCYCLE_2; in I2C_InitStruct()
324 I2C_InitStruct->OwnAddr1 = 0; in I2C_InitStruct()
326 I2C_InitStruct->AckEnable = I2C_ACKDIS; in I2C_InitStruct()
[all …]
/bsp/n32/libraries/N32G4FR_Firmware_Library/n32g4fr_std_periph_driver/src/
A Dn32g4fr_i2c.c227 assert_param(IS_I2C_BUS_MODE(I2C_InitStruct->BusMode)); in I2C_Init()
268 if (I2C_InitStruct->ClkSpeed <= 100000) in I2C_Init()
324 tmpregister |= (uint16_t)((uint32_t)I2C_InitStruct->BusMode | I2C_InitStruct->AckEnable); in I2C_Init()
330 I2Cx->OADDR1 = (I2C_InitStruct->AddrMode | I2C_InitStruct->OwnAddr1); in I2C_Init()
337 void I2C_InitStruct(I2C_InitType* I2C_InitStruct) in I2C_InitStruct() function
341 I2C_InitStruct->ClkSpeed = 5000; in I2C_InitStruct()
343 I2C_InitStruct->BusMode = I2C_BUSMODE_I2C; in I2C_InitStruct()
345 I2C_InitStruct->FmDutyCycle = I2C_FMDUTYCYCLE_2; in I2C_InitStruct()
347 I2C_InitStruct->OwnAddr1 = 0; in I2C_InitStruct()
349 I2C_InitStruct->AckEnable = I2C_ACKDIS; in I2C_InitStruct()
[all …]
/bsp/n32/libraries/N32L40x_Firmware_Library/n32l40x_std_periph_driver/src/
A Dn32l40x_i2c.c209 assert_param(IS_I2C_BUS_MODE(I2C_InitStruct->BusMode)); in I2C_Init()
237 if (I2C_InitStruct->ClkSpeed <= 100000) in I2C_Init()
301 tmpregister |= (uint16_t)((uint32_t)I2C_InitStruct->BusMode | I2C_InitStruct->AckEnable); in I2C_Init()
307 I2Cx->OADDR1 = (I2C_InitStruct->AddrMode | I2C_InitStruct->OwnAddr1); in I2C_Init()
314 void I2C_InitStruct(I2C_InitType* I2C_InitStruct) in I2C_InitStruct() function
318 I2C_InitStruct->ClkSpeed = 5000; in I2C_InitStruct()
320 I2C_InitStruct->BusMode = I2C_BUSMODE_I2C; in I2C_InitStruct()
322 I2C_InitStruct->FmDutyCycle = I2C_FMDUTYCYCLE_2; in I2C_InitStruct()
324 I2C_InitStruct->OwnAddr1 = 0; in I2C_InitStruct()
326 I2C_InitStruct->AckEnable = I2C_ACKDIS; in I2C_InitStruct()
[all …]
/bsp/n32/libraries/N32WB452_Firmware_Library/n32wb452_std_periph_driver/src/
A Dn32wb452_i2c.c227 assert_param(IS_I2C_BUS_MODE(I2C_InitStruct->BusMode)); in I2C_Init()
268 if (I2C_InitStruct->ClkSpeed <= 100000) in I2C_Init()
324 tmpregister |= (uint16_t)((uint32_t)I2C_InitStruct->BusMode | I2C_InitStruct->AckEnable); in I2C_Init()
330 I2Cx->OADDR1 = (I2C_InitStruct->AddrMode | I2C_InitStruct->OwnAddr1); in I2C_Init()
337 void I2C_InitStruct(I2C_InitType* I2C_InitStruct) in I2C_InitStruct() function
341 I2C_InitStruct->ClkSpeed = 5000; in I2C_InitStruct()
343 I2C_InitStruct->BusMode = I2C_BUSMODE_I2C; in I2C_InitStruct()
345 I2C_InitStruct->FmDutyCycle = I2C_FMDUTYCYCLE_2; in I2C_InitStruct()
347 I2C_InitStruct->OwnAddr1 = 0; in I2C_InitStruct()
349 I2C_InitStruct->AckEnable = I2C_ACKDIS; in I2C_InitStruct()
[all …]
/bsp/n32/libraries/N32G43x_Firmware_Library/n32g43x_std_periph_driver/src/
A Dn32g43x_i2c.c209 assert_param(IS_I2C_BUS_MODE(I2C_InitStruct->BusMode)); in I2C_Init()
237 if (I2C_InitStruct->ClkSpeed <= 100000) in I2C_Init()
301 tmpregister |= (uint16_t)((uint32_t)I2C_InitStruct->BusMode | I2C_InitStruct->AckEnable); in I2C_Init()
307 I2Cx->OADDR1 = (I2C_InitStruct->AddrMode | I2C_InitStruct->OwnAddr1); in I2C_Init()
314 void I2C_InitStruct(I2C_InitType* I2C_InitStruct) in I2C_InitStruct() argument
318 I2C_InitStruct->ClkSpeed = 5000; in I2C_InitStruct()
320 I2C_InitStruct->BusMode = I2C_BUSMODE_I2C; in I2C_InitStruct()
322 I2C_InitStruct->FmDutyCycle = I2C_FMDUTYCYCLE_2; in I2C_InitStruct()
324 I2C_InitStruct->OwnAddr1 = 0; in I2C_InitStruct()
326 I2C_InitStruct->AckEnable = I2C_ACKDIS; in I2C_InitStruct()
[all …]
/bsp/n32/libraries/N32G45x_Firmware_Library/n32g45x_std_periph_driver/src/
A Dn32g45x_i2c.c227 assert_param(IS_I2C_BUS_MODE(I2C_InitStruct->BusMode)); in I2C_Init()
268 if (I2C_InitStruct->ClkSpeed <= 100000) in I2C_Init()
324 tmpregister |= (uint16_t)((uint32_t)I2C_InitStruct->BusMode | I2C_InitStruct->AckEnable); in I2C_Init()
330 I2Cx->OADDR1 = (I2C_InitStruct->AddrMode | I2C_InitStruct->OwnAddr1); in I2C_Init()
337 void I2C_InitStruct(I2C_InitType* I2C_InitStruct) in I2C_InitStruct() argument
341 I2C_InitStruct->ClkSpeed = 5000; in I2C_InitStruct()
343 I2C_InitStruct->BusMode = I2C_BUSMODE_I2C; in I2C_InitStruct()
345 I2C_InitStruct->FmDutyCycle = I2C_FMDUTYCYCLE_2; in I2C_InitStruct()
347 I2C_InitStruct->OwnAddr1 = 0; in I2C_InitStruct()
349 I2C_InitStruct->AckEnable = I2C_ACKDIS; in I2C_InitStruct()
[all …]
/bsp/n32g452xx/Libraries/N32_Std_Driver/n32g45x_std_periph_driver/src/
A Dn32g45x_i2c.c209 assert_param(IS_I2C_BUS_MODE(I2C_InitStruct->BusMode)); in I2C_Init()
237 if (I2C_InitStruct->ClkSpeed <= 100000) in I2C_Init()
301 tmpregister |= (uint16_t)((uint32_t)I2C_InitStruct->BusMode | I2C_InitStruct->AckEnable); in I2C_Init()
307 I2Cx->OADDR1 = (I2C_InitStruct->AddrMode | I2C_InitStruct->OwnAddr1); in I2C_Init()
314 void I2C_InitStruct(I2C_InitType* I2C_InitStruct) in I2C_InitStruct() argument
318 I2C_InitStruct->ClkSpeed = 5000; in I2C_InitStruct()
320 I2C_InitStruct->BusMode = I2C_BUSMODE_I2C; in I2C_InitStruct()
322 I2C_InitStruct->FmDutyCycle = I2C_FMDUTYCYCLE_2; in I2C_InitStruct()
324 I2C_InitStruct->OwnAddr1 = 0; in I2C_InitStruct()
326 I2C_InitStruct->AckEnable = I2C_ACKDIS; in I2C_InitStruct()
[all …]
/bsp/airm2m/air32f103/libraries/AIR32F10xLib/src/
A Dair32f10x_i2c.c175 assert_param(IS_I2C_MODE(I2C_InitStruct->I2C_Mode)); in I2C_Init()
203 if (I2C_InitStruct->I2C_ClockSpeed <= 100000) in I2C_Init()
221 if (I2C_InitStruct->I2C_DutyCycle == I2C_DutyCycle_2) in I2C_Init()
259 tmpreg |= (uint16_t)((uint32_t)I2C_InitStruct->I2C_Mode | I2C_InitStruct->I2C_Ack); in I2C_Init()
265 I2Cx->OAR1 = (I2C_InitStruct->I2C_AcknowledgedAddress | I2C_InitStruct->I2C_OwnAddress1); in I2C_Init()
273 void I2C_StructInit(I2C_InitTypeDef* I2C_InitStruct) in I2C_StructInit() argument
277 I2C_InitStruct->I2C_ClockSpeed = 5000; in I2C_StructInit()
279 I2C_InitStruct->I2C_Mode = I2C_Mode_I2C; in I2C_StructInit()
281 I2C_InitStruct->I2C_DutyCycle = I2C_DutyCycle_2; in I2C_StructInit()
283 I2C_InitStruct->I2C_OwnAddress1 = 0; in I2C_StructInit()
[all …]
/bsp/wch/arm/Libraries/CH32F20x_StdPeriph_Driver/StdPeriph_Driver/src/
A Dch32f20x_i2c.c118 void I2C_Init(I2C_TypeDef* I2Cx, I2C_InitTypeDef* I2C_InitStruct) in I2C_Init() argument
137 if (I2C_InitStruct->I2C_ClockSpeed <= 100000) in I2C_Init()
151 if (I2C_InitStruct->I2C_DutyCycle == I2C_DutyCycle_2) in I2C_Init()
176 tmpreg |= (uint16_t)((uint32_t)I2C_InitStruct->I2C_Mode | I2C_InitStruct->I2C_Ack); in I2C_Init()
179 I2Cx->OADDR1 = (I2C_InitStruct->I2C_AcknowledgedAddress | I2C_InitStruct->I2C_OwnAddress1); in I2C_Init()
189 void I2C_StructInit(I2C_InitTypeDef* I2C_InitStruct) in I2C_StructInit() argument
191 I2C_InitStruct->I2C_ClockSpeed = 5000; in I2C_StructInit()
192 I2C_InitStruct->I2C_Mode = I2C_Mode_I2C; in I2C_StructInit()
193 I2C_InitStruct->I2C_DutyCycle = I2C_DutyCycle_2; in I2C_StructInit()
194 I2C_InitStruct->I2C_OwnAddress1 = 0; in I2C_StructInit()
[all …]
/bsp/wch/risc-v/Libraries/CH32V10x_StdPeriph_Driver/StdPeriph_Driver/src/
A Dch32v10x_i2c.c125 void I2C_Init(I2C_TypeDef *I2Cx, I2C_InitTypeDef *I2C_InitStruct) in I2C_Init() argument
144 if(I2C_InitStruct->I2C_ClockSpeed <= 100000) in I2C_Init()
158 if(I2C_InitStruct->I2C_DutyCycle == I2C_DutyCycle_2) in I2C_Init()
182 tmpreg |= (uint16_t)((uint32_t)I2C_InitStruct->I2C_Mode | I2C_InitStruct->I2C_Ack); in I2C_Init()
185 I2Cx->OADDR1 = (I2C_InitStruct->I2C_AcknowledgedAddress | I2C_InitStruct->I2C_OwnAddress1); in I2C_Init()
198 void I2C_StructInit(I2C_InitTypeDef *I2C_InitStruct) in I2C_StructInit() argument
200 I2C_InitStruct->I2C_ClockSpeed = 5000; in I2C_StructInit()
201 I2C_InitStruct->I2C_Mode = I2C_Mode_I2C; in I2C_StructInit()
202 I2C_InitStruct->I2C_DutyCycle = I2C_DutyCycle_2; in I2C_StructInit()
203 I2C_InitStruct->I2C_OwnAddress1 = 0; in I2C_StructInit()
[all …]
/bsp/wch/arm/Libraries/CH32F10x_StdPeriph_Driver/StdPeriph_Driver/src/
A Dch32f10x_i2c.c120 void I2C_Init(I2C_TypeDef* I2Cx, I2C_InitTypeDef* I2C_InitStruct) in I2C_Init() argument
141 if (I2C_InitStruct->I2C_ClockSpeed <= 100000) in I2C_Init()
155 if (I2C_InitStruct->I2C_DutyCycle == I2C_DutyCycle_2) in I2C_Init()
180 tmpreg |= (uint16_t)((uint32_t)I2C_InitStruct->I2C_Mode | I2C_InitStruct->I2C_Ack); in I2C_Init()
184 I2Cx->OADDR1 = (I2C_InitStruct->I2C_AcknowledgedAddress | I2C_InitStruct->I2C_OwnAddress1); in I2C_Init()
194 void I2C_StructInit(I2C_InitTypeDef* I2C_InitStruct) in I2C_StructInit() argument
197 I2C_InitStruct->I2C_ClockSpeed = 5000; in I2C_StructInit()
198 I2C_InitStruct->I2C_Mode = I2C_Mode_I2C; in I2C_StructInit()
199 I2C_InitStruct->I2C_DutyCycle = I2C_DutyCycle_2; in I2C_StructInit()
200 I2C_InitStruct->I2C_OwnAddress1 = 0; in I2C_StructInit()
[all …]
/bsp/ft32/libraries/FT32F0xx/FT32F0xx_Driver/Src/
A Dft32f0xx_i2c.c75 assert_param(IS_I2C_MODE(I2C_InitStruct->I2C_Mode)); in I2C_Init()
77 assert_param(IS_I2C_ACK(I2C_InitStruct->I2C_Ack)); in I2C_Init()
91 tmpreg |= (uint32_t)I2C_InitStruct->I2C_AnalogFilter |(I2C_InitStruct->I2C_DigitalFilter << 8); in I2C_Init()
125 tmpreg = I2C_InitStruct->I2C_Mode; in I2C_Init()
136 tmpreg |= I2C_InitStruct->I2C_Ack; in I2C_Init()
146 void I2C_StructInit(I2C_InitTypeDef* I2C_InitStruct) in I2C_StructInit() argument
150 I2C_InitStruct->I2C_Timing = 0; in I2C_StructInit()
154 I2C_InitStruct->I2C_DigitalFilter = 0; in I2C_StructInit()
156 I2C_InitStruct->I2C_Mode = I2C_Mode_I2C; in I2C_StructInit()
158 I2C_InitStruct->I2C_OwnAddress1 = 0; in I2C_StructInit()
[all …]
/bsp/hk32/libraries/HK32F0xx_StdPeriph_Driver/src/
A Dhk32f0xx_i2c.c153 assert_param(IS_I2C_MODE(I2C_InitStruct->I2C_Mode)); in I2C_Init()
155 assert_param(IS_I2C_ACK(I2C_InitStruct->I2C_Ack)); in I2C_Init()
169 tmpreg |= (uint32_t)I2C_InitStruct->I2C_AnalogFilter | (I2C_InitStruct->I2C_DigitalFilter << 8); in I2C_Init()
203 tmpreg = I2C_InitStruct->I2C_Mode; in I2C_Init()
214 tmpreg |= I2C_InitStruct->I2C_Ack; in I2C_Init()
224 void I2C_StructInit(I2C_InitTypeDef *I2C_InitStruct) in I2C_StructInit() argument
228 I2C_InitStruct->I2C_Timing = 0; in I2C_StructInit()
232 I2C_InitStruct->I2C_DigitalFilter = 0; in I2C_StructInit()
234 I2C_InitStruct->I2C_Mode = I2C_Mode_I2C; in I2C_StructInit()
236 I2C_InitStruct->I2C_OwnAddress1 = 0; in I2C_StructInit()
[all …]
/bsp/tkm32F499/Libraries/Hal_lib/src/
A DHAL_i2c.c149 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()
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()
[all …]
/bsp/mm32l3xx/Libraries/MM32L3xx/HAL_lib/src/
A DHAL_i2c.c154 void I2C_Init(I2C_TypeDef* I2Cx, I2C_InitTypeDef* I2C_InitStruct) in I2C_Init() argument
165 assert_param(IS_I2C_MODE(I2C_InitStruct->I2C_Mode)); in I2C_Init()
166 assert_param(IS_I2C_CLOCK_SPEED(I2C_InitStruct->I2C_ClockSpeed)); in I2C_Init()
178 i2cPeriod = 1000000000/I2C_InitStruct->I2C_ClockSpeed; //ns unit in I2C_Init()
181 if (I2C_InitStruct->I2C_ClockSpeed <= 100000) in I2C_Init()
211 …IC_SLAVE_DISABLE | IC_RESTART_EN |IC_7BITADDR_MASTER | I2C_InitStruct->I2C_Speed | I2C_InitStruct-… in I2C_Init()
236 void I2C_StructInit(I2C_InitTypeDef* I2C_InitStruct) in I2C_StructInit() argument
240 I2C_InitStruct->I2C_Mode = I2C_Mode_MASTER; in I2C_StructInit()
242 I2C_InitStruct->I2C_OwnAddress = 0xA8; in I2C_StructInit()
244 I2C_InitStruct->I2C_Speed = I2C_Speed_STANDARD; in I2C_StructInit()
[all …]
/bsp/mm32l07x/Libraries/MM32L0xx/HAL_lib/src/
A DHAL_i2c.c148 void I2C_Init(I2C_TypeDef* I2Cx, I2C_InitTypeDef* I2C_InitStruct) in I2C_Init() argument
159 assert_param(IS_I2C_MODE(I2C_InitStruct->I2C_Mode)); in I2C_Init()
160 assert_param(IS_I2C_CLOCK_SPEED(I2C_InitStruct->I2C_ClockSpeed)); in I2C_Init()
172 i2cPeriod = 1000000000/I2C_InitStruct->I2C_ClockSpeed; /*ns unit*/ in I2C_Init()
175 if (I2C_InitStruct->I2C_ClockSpeed <= 100000) 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()
[all …]
/bsp/mm32f103x/Libraries/MM32F103/HAL_lib/src/
A DHAL_i2c.c154 void I2C_Init(I2C_TypeDef* I2Cx, I2C_InitTypeDef* I2C_InitStruct) in I2C_Init() argument
165 assert_param(IS_I2C_MODE(I2C_InitStruct->I2C_Mode)); in I2C_Init()
166 assert_param(IS_I2C_CLOCK_SPEED(I2C_InitStruct->I2C_ClockSpeed)); in I2C_Init()
178 i2cPeriod = 1000000000 / I2C_InitStruct->I2C_ClockSpeed; //ns unit in I2C_Init()
181 if (I2C_InitStruct->I2C_ClockSpeed <= 100000) in I2C_Init()
211 …C_SLAVE_DISABLE | IC_RESTART_EN | IC_7BITADDR_MASTER | I2C_InitStruct->I2C_Speed | I2C_InitStruct-… in I2C_Init()
236 void I2C_StructInit(I2C_InitTypeDef* I2C_InitStruct) in I2C_StructInit() argument
240 I2C_InitStruct->I2C_Mode = I2C_Mode_MASTER; in I2C_StructInit()
242 I2C_InitStruct->I2C_OwnAddress = 0xA8; in I2C_StructInit()
244 I2C_InitStruct->I2C_Speed = I2C_Speed_STANDARD; in I2C_StructInit()
[all …]
/bsp/n32/libraries/N32WB452_Firmware_Library/n32wb452_std_periph_driver/inc/
A Dn32wb452_i2c.h524 void I2C_Init(I2C_Module* I2Cx, I2C_InitType* I2C_InitStruct);
525 void I2C_InitStruct(I2C_InitType* I2C_InitStruct);
/bsp/n32/libraries/N32L40x_Firmware_Library/n32l40x_std_periph_driver/inc/
A Dn32l40x_i2c.h524 void I2C_Init(I2C_Module* I2Cx, I2C_InitType* I2C_InitStruct);
525 void I2C_InitStruct(I2C_InitType* I2C_InitStruct);
/bsp/n32/libraries/N32L43x_Firmware_Library/n32l43x_std_periph_driver/inc/
A Dn32l43x_i2c.h524 void I2C_Init(I2C_Module* I2Cx, I2C_InitType* I2C_InitStruct);
525 void I2C_InitStruct(I2C_InitType* I2C_InitStruct);
/bsp/n32/libraries/N32G4FR_Firmware_Library/n32g4fr_std_periph_driver/inc/
A Dn32g4fr_i2c.h524 void I2C_Init(I2C_Module* I2Cx, I2C_InitType* I2C_InitStruct);
525 void I2C_InitStruct(I2C_InitType* I2C_InitStruct);

Completed in 65 milliseconds

12