53 #define SPIn_BLOCKING_TIMEOUT 0xffffuL // (0xFFFFFFFFuL) 56 #define SPInEN_Disable (SPIn_CR_SPInEN_Disable << SPIn_CR_SPInEN_Pos) 57 #define SPInEN_Enable (SPIn_CR_SPInEN_Enable << SPIn_CR_SPInEN_Pos) 60 #define FLSBn_msbFirst (SPIn_CR_FLSBn_msbFirst << SPIn_CR_FLSBn_Pos) 61 #define FLSBn_lsbFirst (SPIn_CR_FLSBn_lsbFirst << SPIn_CR_FLSBn_Pos) 64 #define SPInMS_Slave (SPIn_CR_SPInMS_Slave << SPIn_CR_SPInMS_Pos) 65 #define SPInMS_Master (SPIn_CR_SPInMS_Master << SPIn_CR_SPInMS_Pos) 68 #define CPOLn_IdleLow (SPIn_CR_CPOLn_IdleLow << SPIn_CR_CPOLn_Pos) 69 #define CPOLn_IdleHigh (SPIn_CR_CPOLn_IdleHigh << SPIn_CR_CPOLn_Pos) 72 #define CPHAn_StartIdle (SPIn_CR_CPHAn_StartIdle << SPIn_CR_CPHAn_Pos) 73 #define CPHAn_StartInverted (SPIn_CR_CPHAn_StartInverted << SPIn_CR_CPHAn_Pos) HAL_Status_Type SPIn_ClearStatus(SPIn_Type *SPIx, SPIn_STATUS_Type Status)
This function clears the flag bit of Status Register.
HAL_Status_Type SPIn_ConfigInterrupt(SPIn_Type *SPIx, SPIn_INT_Type SPIn_IntCfg, FunctionalState NewState)
Configure the interrupt source of selected SPIn peripheral.
uint8_t SPIn_GetStatus(SPIn_Type *SPIx)
This function returns the current value of Status Register.
Contains the ABOV typedefs for C standard types. It is intended to be used in ISO C conforming develo...
uint8_t SPIn_ReceiveByte(SPIn_Type *SPIx)
Receive a single data from SPIn peripheral.
HAL_Status_Type SPIn_Enable(SPIn_Type *SPIx, FunctionalState state)
SPIn enable control.
HAL_Status_Type SPIn_ConfigStructInit(SPIn_CFG_Type *SPIn_Config)
Fills each SPIn_CFG_Type structure member with its default value:
uint32_t SPIn_Receive(SPIn_Type *SPIx, uint8_t *rxbuf, uint32_t buflen, TRANSFER_BLOCK_Type flag)
Receive a block of data via SPIn peripheral.
HAL_Status_Type SPIn_DataControlConfig(SPIn_Type *SPIx, SPIn_CONTROL_Type Mode, FunctionalState NewState)
Configure Data Control mode for SPIn peripheral.
HAL_Status_Type SPIn_SendByte(SPIn_Type *SPIx, uint8_t Data)
Transmit a single data through SPIn peripheral.
uint32_t SPIn_Send(SPIn_Type *SPIx, uint8_t *txbuf, uint32_t buflen, TRANSFER_BLOCK_Type flag)
Send a block of data via SPIn peripheral.
HAL_Status_Type HAL_SPIn_Init(SPIn_Type *SPIx, SPIn_CFG_Type *SPIn_Config)
Initialize the SPIn peripheral with the specified parameters.
SPIn_SPI_ORDER_Type Order
HAL_Status_Type SPIn_DeInit(SPIn_Type *SPIx)
Deinitialize the SPIn peripheral registers to their default reset values.