|
STM32G474xx HAL用户手册
|
函数 | |
| ErrorStatus | LL_SPI_DeInit (const SPI_TypeDef *SPIx) |
| 将SPI寄存器反初始化为其默认复位值。 | |
| ErrorStatus | LL_SPI_Init (SPI_TypeDef *SPIx, LL_SPI_InitTypeDef *SPI_InitStruct) |
| 根据SPI_InitStruct中的指定参数初始化SPI寄存器。 | |
| void | LL_SPI_StructInit (LL_SPI_InitTypeDef *SPI_InitStruct) |
| 将每个LL_SPI_InitTypeDef字段设置为默认值。 | |
| ErrorStatus LL_SPI_DeInit | ( | const SPI_TypeDef * | SPIx | ) |
将SPI寄存器反初始化为其默认复位值。
| SPIx | SPI实例 |
| 一个 | ErrorStatus枚举值:
|
Definition at line 133 of file stm32g4xx_ll_spi.c.
References assert_param, LL_APB1_GRP1_ForceReset(), LL_APB1_GRP1_PERIPH_SPI2, LL_APB1_GRP1_PERIPH_SPI3, LL_APB1_GRP1_ReleaseReset(), LL_APB2_GRP1_ForceReset(), LL_APB2_GRP1_PERIPH_SPI1, LL_APB2_GRP1_PERIPH_SPI4, and LL_APB2_GRP1_ReleaseReset().
Referenced by LL_I2S_DeInit().
| ErrorStatus LL_SPI_Init | ( | SPI_TypeDef * | SPIx, |
| LL_SPI_InitTypeDef * | SPI_InitStruct | ||
| ) |
根据SPI_InitStruct中的指定参数初始化SPI寄存器。
| SPIx | SPI实例 |
| SPI_InitStruct | 指向LL_SPI_InitTypeDef结构的指针 |
| 一个 | ErrorStatus枚举值。(始终返回SUCCESS) |
Definition at line 201 of file stm32g4xx_ll_spi.c.
References assert_param, LL_SPI_InitTypeDef::BaudRate, LL_SPI_InitTypeDef::BitOrder, LL_SPI_InitTypeDef::ClockPhase, LL_SPI_InitTypeDef::ClockPolarity, LL_SPI_InitTypeDef::CRCCalculation, LL_SPI_InitTypeDef::CRCPoly, LL_SPI_InitTypeDef::DataWidth, IS_LL_SPI_BAUDRATE, IS_LL_SPI_BITORDER, IS_LL_SPI_CRC_POLYNOMIAL, IS_LL_SPI_CRCCALCULATION, IS_LL_SPI_DATAWIDTH, IS_LL_SPI_MODE, IS_LL_SPI_NSS, IS_LL_SPI_PHASE, IS_LL_SPI_POLARITY, IS_LL_SPI_TRANSFER_DIRECTION, LL_SPI_CRCCALCULATION_ENABLE, LL_SPI_DATAWIDTH_9BIT, LL_SPI_IsEnabled(), LL_SPI_RX_FIFO_TH_QUARTER, LL_SPI_SetCRCPolynomial(), LL_SPI_SetRxFIFOThreshold(), LL_SPI_InitTypeDef::Mode, LL_SPI_InitTypeDef::NSS, SPI_CR1_CLEAR_MASK, and LL_SPI_InitTypeDef::TransferDirection.
| void LL_SPI_StructInit | ( | LL_SPI_InitTypeDef * | SPI_InitStruct | ) |
将每个LL_SPI_InitTypeDef字段设置为默认值。
| SPI_InitStruct | 指向LL_SPI_InitTypeDef结构的指针,其字段将被设置为默认值。 |
| 无 |
Definition at line 279 of file stm32g4xx_ll_spi.c.
References LL_SPI_InitTypeDef::BaudRate, LL_SPI_InitTypeDef::BitOrder, LL_SPI_InitTypeDef::ClockPhase, LL_SPI_InitTypeDef::ClockPolarity, LL_SPI_InitTypeDef::CRCCalculation, LL_SPI_InitTypeDef::CRCPoly, LL_SPI_InitTypeDef::DataWidth, LL_SPI_BAUDRATEPRESCALER_DIV2, LL_SPI_CRCCALCULATION_DISABLE, LL_SPI_DATAWIDTH_8BIT, LL_SPI_FULL_DUPLEX, LL_SPI_MODE_SLAVE, LL_SPI_MSB_FIRST, LL_SPI_NSS_HARD_INPUT, LL_SPI_PHASE_1EDGE, LL_SPI_POLARITY_LOW, LL_SPI_InitTypeDef::Mode, LL_SPI_InitTypeDef::NSS, and LL_SPI_InitTypeDef::TransferDirection.
1.7.6.1