STM32L4xx_Nucleo_144 BSP User Manual: Private Functions

STM32L4xx_Nucleo_144 BSP

STM32L4xx_Nucleo_144 BSP User Manual
Private Functions

Functions

static void SPIx_MspInit (SPI_HandleTypeDef *hspi)
 Initialize SPI MSP.
static void SPIx_Init (void)
 Initialize SPI HAL.
static void SPIx_WriteReadData (const uint8_t *DataIn, uint8_t *DataOut, uint16_t DataLength)
 SPI Write byte(s) to device.
static void SPIx_Write (uint8_t Value)
 SPI Write a byte to device.
static void SPIx_Error (void)
 SPI error treatment function.
void SD_IO_Init (void)
 Initialize the SD Card and put it into StandBy State (Ready for data transfer).
void SD_IO_CSState (uint8_t val)
 Set the SD_CS pin.
void SD_IO_WriteReadData (const uint8_t *DataIn, uint8_t *DataOut, uint16_t DataLength)
 Write bytes on the SD.
uint8_t SD_IO_WriteByte (uint8_t Data)
 Write a byte on the SD.
void LCD_IO_Init (void)
 Initialize the LCD.
void LCD_IO_WriteReg (uint8_t LCDReg)
 Write command to select the LCD register.
void LCD_IO_WriteData (uint8_t Data)
 Write data to select the LCD register.
void LCD_IO_WriteMultipleData (uint8_t *pData, uint32_t Size)
 Write register value.
void LCD_Delay (uint32_t Delay)
 Wait for loop in ms.
static void ADCx_MspInit (ADC_HandleTypeDef *hadc)
 Initialize ADC MSP.
static void ADCx_MspDeInit (ADC_HandleTypeDef *hadc)
 DeInitialize ADC MSP.
static void ADCx_Init (void)
 Initialize ADC HAL.
static void ADCx_DeInit (void)
 DeInitialize ADC HAL.

Function Documentation

static void ADCx_DeInit ( void  ) [static]

DeInitialize ADC HAL.

Return values:
None

Definition at line 1168 of file stm32l4xx_nucleo_144.c.

References ADCx_MspDeInit(), hnucleo_Adc, and NUCLEO_ADCx.

Referenced by BSP_JOY_DeInit().

static void ADCx_Init ( void  ) [static]

Initialize ADC HAL.

Return values:
None

Definition at line 1130 of file stm32l4xx_nucleo_144.c.

References ADCx_MspInit(), hnucleo_Adc, and NUCLEO_ADCx.

Referenced by BSP_JOY_Init().

static void ADCx_MspDeInit ( ADC_HandleTypeDef *  hadc) [static]

DeInitialize ADC MSP.

Parameters:
hadcADC handle
Note:
ADCx_MspDeInit does not disable the GPIO clock
Return values:
None

Definition at line 1110 of file stm32l4xx_nucleo_144.c.

References NUCLEO_ADCx_CLK_DISABLE, NUCLEO_ADCx_GPIO_PIN, and NUCLEO_ADCx_GPIO_PORT.

Referenced by ADCx_DeInit().

static void ADCx_MspInit ( ADC_HandleTypeDef *  hadc) [static]

Initialize ADC MSP.

Parameters:
hadcADC handle
Return values:
None

Definition at line 1085 of file stm32l4xx_nucleo_144.c.

References NUCLEO_ADCx_CLK_ENABLE, NUCLEO_ADCx_GPIO_CLK_ENABLE, NUCLEO_ADCx_GPIO_PIN, and NUCLEO_ADCx_GPIO_PORT.

Referenced by ADCx_Init().

void LCD_Delay ( uint32_t  Delay)

Wait for loop in ms.

Parameters:
Delayin ms.
Return values:
None

Definition at line 1072 of file stm32l4xx_nucleo_144.c.

void LCD_IO_Init ( void  )

Initialize the LCD.

Return values:
None

Definition at line 943 of file stm32l4xx_nucleo_144.c.

References LCD_CS_GPIO_CLK_ENABLE, LCD_CS_GPIO_PORT, LCD_CS_HIGH, LCD_CS_PIN, LCD_DC_GPIO_CLK_ENABLE, LCD_DC_GPIO_PORT, LCD_DC_PIN, and SPIx_Init().

void LCD_IO_WriteData ( uint8_t  Data)

Write data to select the LCD register.

This function must be used after st7735_WriteReg() function

Parameters:
Datadata to write to the selected register.
Return values:
None

Definition at line 995 of file stm32l4xx_nucleo_144.c.

References LCD_CS_HIGH, LCD_CS_LOW, LCD_DC_HIGH, and SPIx_Write().

void LCD_IO_WriteMultipleData ( uint8_t *  pData,
uint32_t  Size 
)

Write register value.

Parameters:
pDataPointer on the register value
SizeSize of byte to transmit to the register
Return values:
None

Definition at line 1016 of file stm32l4xx_nucleo_144.c.

References hnucleo_Spi, LCD_CS_HIGH, LCD_CS_LOW, LCD_DC_HIGH, and SPIx_Write().

void LCD_IO_WriteReg ( uint8_t  LCDReg)

Write command to select the LCD register.

Parameters:
LCDRegAddress of the selected register.
Return values:
None

Definition at line 974 of file stm32l4xx_nucleo_144.c.

References LCD_CS_HIGH, LCD_CS_LOW, LCD_DC_LOW, and SPIx_Write().

void SD_IO_CSState ( uint8_t  val)

Set the SD_CS pin.

Parameters:
valpin value.
Return values:
None

Definition at line 898 of file stm32l4xx_nucleo_144.c.

References SD_CS_HIGH, and SD_CS_LOW.

void SD_IO_Init ( void  )

Initialize the SD Card and put it into StandBy State (Ready for data transfer).

Return values:
None

Definition at line 862 of file stm32l4xx_nucleo_144.c.

References SD_CS_GPIO_CLK_ENABLE, SD_CS_GPIO_PORT, SD_CS_HIGH, SD_CS_PIN, SD_DUMMY_BYTE, SD_IO_WriteByte(), and SPIx_Init().

uint8_t SD_IO_WriteByte ( uint8_t  Data)

Write a byte on the SD.

Parameters:
Databyte to send.
Return values:
None

Definition at line 930 of file stm32l4xx_nucleo_144.c.

References SPIx_WriteReadData().

Referenced by SD_IO_Init().

void SD_IO_WriteReadData ( const uint8_t *  DataIn,
uint8_t *  DataOut,
uint16_t  DataLength 
)

Write bytes on the SD.

Parameters:
DataInInput Data buffer pointer.
DataOutOutput Data buffer pointer.
DataLengthNumber of byte to send.
Return values:
None

Definition at line 917 of file stm32l4xx_nucleo_144.c.

References SPIx_WriteReadData().

static void SPIx_Error ( void  ) [static]

SPI error treatment function.

Return values:
None

Definition at line 843 of file stm32l4xx_nucleo_144.c.

References hnucleo_Spi, and SPIx_Init().

Referenced by SPIx_Write(), and SPIx_WriteReadData().

static void SPIx_Init ( void  ) [static]

Initialize SPI HAL.

Return values:
None

Definition at line 767 of file stm32l4xx_nucleo_144.c.

References hnucleo_Spi, NUCLEO_SPIx, and SPIx_MspInit().

Referenced by LCD_IO_Init(), SD_IO_Init(), and SPIx_Error().

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 824 of file stm32l4xx_nucleo_144.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  DataLength 
) [static]

SPI Write byte(s) to device.

Parameters:
DataIn,:Pointer to data buffer to write
DataOut,:Pointer to data buffer for read data
DataLength,:number of bytes to write
Return values:
None

Definition at line 805 of file stm32l4xx_nucleo_144.c.

References hnucleo_Spi, SPIx_Error(), and SpixTimeout.

Referenced by SD_IO_WriteByte(), and SD_IO_WriteReadData().

Generated on Mon Oct 9 2017 01:35:13 for STM32L4xx_Nucleo_144 BSP User Manual by   doxygen 1.7.6.1