STM32F3xx_Nucleo BSP User Manual
|
Functions | |
static void | SPIx_Init (void) |
Initializes SPI HAL. | |
static void | SPIx_Write (uint8_t Value) |
SPI Write a byte to device. | |
static uint32_t | SPIx_Read (void) |
SPI Read 4 bytes from device. | |
static void | SPIx_Error (void) |
SPI error treatment function. | |
static void | SPIx_MspInit (SPI_HandleTypeDef *hspi) |
Initializes SPI MSP. | |
static void | SPIx_WriteReadData (const uint8_t *DataIn, uint8_t *DataOut, uint16_t DataLegnth) |
SPI Write a byte to device. |
Function Documentation
static void SPIx_Error | ( | void | ) | [static] |
SPI error treatment function.
- Return values:
-
None
Definition at line 474 of file stm32f3xx_nucleo.c.
References hnucleo_Spi, and SPIx_Init().
Referenced by SPIx_Read(), SPIx_Write(), and SPIx_WriteReadData().
static void SPIx_Init | ( | void | ) | [static] |
Initializes SPI HAL.
- Return values:
-
None
Definition at line 373 of file stm32f3xx_nucleo.c.
References hnucleo_Spi, and SPIx_MspInit().
Referenced by LCD_IO_Init(), SD_IO_Init(), and SPIx_Error().
static void SPIx_MspInit | ( | SPI_HandleTypeDef * | hspi | ) | [static] |
Initializes SPI MSP.
- Return values:
-
None
Definition at line 337 of file stm32f3xx_nucleo.c.
Referenced by SPIx_Init().
static uint32_t SPIx_Read | ( | void | ) | [static] |
SPI Read 4 bytes from device.
- Return values:
-
Read data
Definition at line 432 of file stm32f3xx_nucleo.c.
References hnucleo_Spi, SPIx_Error(), and SpixTimeout.
Referenced by SD_IO_ReadByte().
static void SPIx_Write | ( | uint8_t | Value | ) | [static] |
SPI Write a byte to device.
- Parameters:
-
Value,: value to be written
- Return values:
-
None
Definition at line 455 of file stm32f3xx_nucleo.c.
References hnucleo_Spi, SPIx_Error(), and SpixTimeout.
Referenced by LCD_IO_WriteData(), LCD_IO_WriteMultipleData(), and LCD_IO_WriteReg().
static void SPIx_WriteReadData | ( | const uint8_t * | DataIn, |
uint8_t * | DataOut, | ||
uint16_t | DataLegnth | ||
) | [static] |
SPI Write a byte to device.
- Parameters:
-
DataIn,: value to be written DataOut,: read value DataLegnth,: length of data value
- Return values:
-
None
Definition at line 414 of file stm32f3xx_nucleo.c.
References hnucleo_Spi, SPIx_Error(), and SpixTimeout.
Referenced by SD_IO_WriteByte(), and SD_IO_WriteReadData().
Generated on Fri Dec 9 2016 14:04:41 for STM32F3xx_Nucleo BSP User Manual by 1.7.6.1