我是看了固件库函数
这是函数、参数介绍
/**
* @brief Initializes the I2C according to the specified parameters in standard or fast mode.
* @param[in] OutputClockFrequencyHz : Specifies the output clock frequency in Hz.
* @param[in] OwnAddress : Specifies the own address.
* @param[in] DutyCycle : Specifies the duty cycle to apply.
* This parameter can be any of the @ref I2C_DutyCycle_TypeDef enumeration.
* @param[in] Ack : Specifies the acknowledge mode to apply.
* This parameter can be any of the @ref I2C_Ack_TypeDef enumeration.
* @param[in] AddMode : Specifies the addressing mode to apply.
* This parameter can be any of the @ref I2C_AddMode_TypeDef enumeration.
* @param[in] InputClockFrequencyMHz : Specifies the input clock frequency in MHz.
* @retval None
*/
这是函数名
void I2C_Init(u32 OutputClockFrequencyHz, u16 OwnAddress, I2C_DutyCycle_TypeDef DutyCycle, I2C_Ack_TypeDef Ack, I2C_AddMode_TypeDef AddMode, u8 InputClockFrequencyMHz )
|