STM32F479xx HAL User Manual
|
Functions | |
ErrorStatus | LL_SPI_DeInit (SPI_TypeDef *SPIx) |
De-initialize the SPI registers to their default reset values. | |
ErrorStatus | LL_SPI_Init (SPI_TypeDef *SPIx, LL_SPI_InitTypeDef *SPI_InitStruct) |
Initialize the SPI registers according to the specified parameters in SPI_InitStruct. | |
void | LL_SPI_StructInit (LL_SPI_InitTypeDef *SPI_InitStruct) |
Set each LL_SPI_InitTypeDef field to default value. |
ErrorStatus LL_SPI_DeInit | ( | SPI_TypeDef * | SPIx | ) |
De-initialize the SPI registers to their default reset values.
SPIx | SPI Instance |
An | ErrorStatus enumeration value:
|
Definition at line 123 of file stm32f4xx_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, LL_APB2_GRP1_PERIPH_SPI5, LL_APB2_GRP1_PERIPH_SPI6, and LL_APB2_GRP1_ReleaseReset().
Referenced by LL_I2S_DeInit().
ErrorStatus LL_SPI_Init | ( | SPI_TypeDef * | SPIx, |
LL_SPI_InitTypeDef * | SPI_InitStruct | ||
) |
Initialize the SPI registers according to the specified parameters in SPI_InitStruct.
SPIx | SPI Instance |
SPI_InitStruct | pointer to a LL_SPI_InitTypeDef structure |
An | ErrorStatus enumeration value. (Return always SUCCESS) |
Definition at line 214 of file stm32f4xx_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_IsEnabled(), LL_SPI_SetCRCPolynomial(), 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 | ) |
Set each LL_SPI_InitTypeDef field to default value.
SPI_InitStruct | pointer to a LL_SPI_InitTypeDef structure whose fields will be set to default values. |
None |
Definition at line 282 of file stm32f4xx_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.