![]() |
STM32Cube
Version 2.0
Create Projects for STM32U5 Series with STM32Cube HAL and STM32CubeMX
|
#include "SPI_STM32U5xx.h"Macros | |
| #define | ARM_SPI_DRV_VERSION ARM_DRIVER_VERSION_MAJOR_MINOR(1,0) |
Functions | |
| static ARM_SPI_CAPABILITIES | SPIX_GetCapabilities (void) |
| static int32_t | SPI_Initialize (ARM_SPI_SignalEvent_t cb_event, const SPI_RESOURCES *spi) |
| Initialize SPI Interface. More... | |
| static int32_t | SPI_Uninitialize (const SPI_RESOURCES *spi) |
| De-initialize SPI Interface. More... | |
| static int32_t | SPI_PowerControl (ARM_POWER_STATE state, const SPI_RESOURCES *spi) |
| Control SPI Interface Power. More... | |
| static int32_t | SPI_Send (const void *data, uint32_t num, const SPI_RESOURCES *spi) |
| Start sending data to SPI transmitter. More... | |
| static int32_t | SPI_Receive (void *data, uint32_t num, const SPI_RESOURCES *spi) |
| Start receiving data from SPI receiver. More... | |
| static int32_t | SPI_Transfer (const void *data_out, void *data_in, uint32_t num, const SPI_RESOURCES *spi) |
| Start sending/receiving data to/from SPI transmitter/receiver. More... | |
| static uint32_t | SPI_GetDataCount (const SPI_RESOURCES *spi) |
| Get transferred data count. More... | |
| static int32_t | SPI_Control (uint32_t control, uint32_t arg, const SPI_RESOURCES *spi) |
| Control SPI Interface. More... | |
| static ARM_SPI_STATUS | SPI_GetStatus (const SPI_RESOURCES *spi) |
| Get SPI status. More... | |
| static const SPI_RESOURCES * | SPI_Resources (SPI_HandleTypeDef *hspi) |
| Get SPI_RESOURCES strusture from SPI_HandleTypeDef. More... | |
| static uint32_t | SPI_GetClk (const SPI_RESOURCES *spi) |
| Get SPI peripheral clock. More... | |
| static void | SPI_PeripheralReset (const SPI_TypeDef *spi) |
| SPI Reset. More... | |
| static ARM_DRIVER_VERSION | SPIX_GetVersion (void) |
| Get SPI driver version. More... | |
| static void | SPI_TransferComplete (SPI_HandleTypeDef *hspi) |
| Transfer Complete Callback. More... | |
| void | HAL_SPI_TxCpltCallback (SPI_HandleTypeDef *hspi) |
| Tx Transfer completed callback. More... | |
| void | HAL_SPI_RxCpltCallback (SPI_HandleTypeDef *hspi) |
| Rx Transfer completed callback. More... | |
| void | HAL_SPI_TxRxCpltCallback (SPI_HandleTypeDef *hspi) |
| Tx and Rx Transfer completed callback. More... | |
| void | HAL_SPI_ErrorCallback (SPI_HandleTypeDef *hspi) |
| SPI error callback. More... | |
Variables | |
| static const ARM_DRIVER_VERSION | DriverVersion = { ARM_SPI_API_VERSION, ARM_SPI_DRV_VERSION } |
| static const ARM_SPI_CAPABILITIES | DriverCapabilities |
| #define ARM_SPI_DRV_VERSION ARM_DRIVER_VERSION_MAJOR_MINOR(1,0) |
| void HAL_SPI_ErrorCallback | ( | SPI_HandleTypeDef * | hspi | ) |
| hspi | pointer to a SPI_HandleTypeDef structure that contains the configuration information for SPI module. |
| None |
| void HAL_SPI_RxCpltCallback | ( | SPI_HandleTypeDef * | hspi | ) |
| hspi | pointer to a SPI_HandleTypeDef structure that contains the configuration information for SPI module. |
| None |
| void HAL_SPI_TxCpltCallback | ( | SPI_HandleTypeDef * | hspi | ) |
| hspi | pointer to a SPI_HandleTypeDef structure that contains the configuration information for SPI module. |
| None |
| void HAL_SPI_TxRxCpltCallback | ( | SPI_HandleTypeDef * | hspi | ) |
| hspi | pointer to a SPI_HandleTypeDef structure that contains the configuration information for SPI module. |
| None |
|
static |
| [in] | control | operation |
| [in] | arg | argument of operation (optional) |
| [in] | spi | Pointer to SPI resources |
|
static |
|
static |
| [in] | spi | Pointer to SPI resources |
|
static |
| [in] | spi | Pointer to SPI resources |
|
static |
| [in] | cb_event | Pointer to ARM_SPI_SignalEvent |
| [in] | spi | Pointer to SPI resources |
|
static |
|
static |
| [in] | state | Power state |
| [in] | spi | Pointer to SPI resources |
|
static |
| [out] | data | Pointer to buffer for data to receive from SPI receiver |
| [in] | num | Number of data items to receive |
| [in] | spi | Pointer to SPI resources |
|
static |
|
static |
| [in] | data | Pointer to buffer with data to send to SPI transmitter |
| [in] | num | Number of data items to send |
| [in] | spi | Pointer to SPI resources |
|
static |
| [in] | data_out | Pointer to buffer with data to send to SPI transmitter |
| [out] | data_in | Pointer to buffer for data to receive from SPI receiver |
| [in] | num | Number of data items to transfer |
| [in] | spi | Pointer to SPI resources |
|
static |
|
static |
| [in] | spi | Pointer to SPI resources |
|
static |
|
static |
|
static |
|
static |