STM32F3xx-Nucleo BSP User Manual: Bus Operation functions

STM32F3xx-Nucleo BSP Drivers

STM32F3xx-Nucleo BSP User Manual
Bus Operation functions

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 472 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 371 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 335 of file stm32f3xx_nucleo.c.

Referenced by SPIx_Init().

static uint32_t SPIx_Read ( void  ) [static]

SPI Read 4 bytes from device.

Return values:
Readdata

Definition at line 430 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:
Valuevalue to be written
Return values:
None

Definition at line 453 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:
DataInvalue to be written
DataOutread value
DataLegnthlength of data value
Return values:
None

Definition at line 412 of file stm32f3xx_nucleo.c.

References hnucleo_Spi, SPIx_Error(), and SpixTimeout.

Referenced by SD_IO_WriteByte(), and SD_IO_WriteReadData().

Generated on Wed May 31 2017 10:59:20 for STM32F3xx-Nucleo BSP User Manual by   doxygen 1.7.6.1