STM32H7xx_Nucleo_144 BSP User Manual
|
Functions | |
static void | SPIx_Init (void) |
Initializes SPI HAL. | |
static void | SPIx_MspInit (SPI_HandleTypeDef *hspi) |
Initializes SPI MSP. | |
static void | SPIx_Write (uint8_t Value) |
SPI Write a byte to device. | |
static void | SPIx_WriteReadData (const uint8_t *DataIn, uint8_t *DataOut, uint16_t DataLength) |
SPI Write and Read data. | |
static void | SPIx_Error (void) |
SPI error treatment function. | |
void | SD_IO_Init (void) |
Initializes 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) |
SD Write and Read data. | |
uint8_t | SD_IO_WriteByte (uint8_t Data) |
Writes a byte on the SD. | |
void | LCD_IO_Init (void) |
Initializes the LCD. | |
void | LCD_IO_WriteData (uint8_t Data) |
Writes data to select the LCD register. | |
void | LCD_IO_WriteMultipleData (uint8_t *pData, uint32_t Size) |
Write register value. | |
void | LCD_IO_WriteReg (uint8_t LCDReg) |
Writes command to select the LCD register. | |
void | LCD_Delay (uint32_t Delay) |
Wait for loop in ms. | |
static void | ADCx_Init (void) |
Initializes ADC HAL. | |
static void | ADCx_DeInit (void) |
Initializes ADC HAL. | |
static void | ADCx_MspInit (ADC_HandleTypeDef *hadc) |
Initializes ADC MSP. | |
static void | ADCx_MspDeInit (ADC_HandleTypeDef *hadc) |
DeInitializes ADC MSP. |
Function Documentation
static void ADCx_DeInit | ( | void | ) | [static] |
Initializes ADC HAL.
- Return values:
-
None
Definition at line 852 of file stm32h7xx_nucleo_144.c.
References ADCx_MspDeInit(), hnucleo_Adc, and NUCLEO_ADCx.
Referenced by BSP_JOY_DeInit().
static void ADCx_Init | ( | void | ) | [static] |
Initializes ADC HAL.
- Return values:
-
None
Definition at line 827 of file stm32h7xx_nucleo_144.c.
References ADCx_MspInit(), hnucleo_Adc, and NUCLEO_ADCx.
Referenced by BSP_JOY_Init().
static void ADCx_MspDeInit | ( | ADC_HandleTypeDef * | hadc | ) | [static] |
DeInitializes ADC MSP.
- Parameters:
-
hadc,: ADC handle
- Note:
- ADC DeInit does not disable the GPIO clock
- Return values:
-
None
Definition at line 807 of file stm32h7xx_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] |
Initializes ADC MSP.
- Parameters:
-
hadc,: ADC handle
- Return values:
-
None
Definition at line 769 of file stm32h7xx_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:
-
Delay in ms.
- Return values:
-
None
Definition at line 755 of file stm32h7xx_nucleo_144.c.
void LCD_IO_Init | ( | void | ) |
Initializes the LCD.
- Return values:
-
None
Definition at line 592 of file stm32h7xx_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 | ) |
Writes data to select the LCD register.
This function must be used after st7735_WriteReg() function
- Parameters:
-
Data,: data to write to the selected register.
- Return values:
-
None
Definition at line 644 of file stm32h7xx_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:
-
pData Pointer on the register value Size Size of byte to transmit to the register
- Return values:
-
None
Definition at line 665 of file stm32h7xx_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 | ) |
Writes command to select the LCD register.
- Parameters:
-
LCDReg,: Address of the selected register.
- Return values:
-
None
Definition at line 623 of file stm32h7xx_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:
-
val,: SD CS value.
- Return values:
-
None
Definition at line 549 of file stm32h7xx_nucleo_144.c.
References SD_CS_HIGH, and SD_CS_LOW.
void SD_IO_Init | ( | void | ) |
Initializes the SD Card and put it into StandBy State (Ready for data transfer).
- Return values:
-
None
Definition at line 501 of file stm32h7xx_nucleo_144.c.
References LCD_CS_GPIO_CLK_ENABLE, LCD_CS_GPIO_PORT, LCD_CS_HIGH, LCD_CS_PIN, 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 | ) |
Writes a byte on the SD.
- Parameters:
-
Data,: byte to send.
- Return values:
-
None
Definition at line 579 of file stm32h7xx_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 | ||
) |
SD Write and Read data.
- Parameters:
-
DataIn,: Data to write DataOut,: Data to read DataLength,: Data size
- Return values:
-
None
Definition at line 568 of file stm32h7xx_nucleo_144.c.
References SPIx_WriteReadData().
static void SPIx_Error | ( | void | ) | [static] |
SPI error treatment function.
- Return values:
-
None
Definition at line 482 of file stm32h7xx_nucleo_144.c.
References hnucleo_Spi, and SPIx_Init().
Referenced by SPIx_Write(), and SPIx_WriteReadData().
static void SPIx_Init | ( | void | ) | [static] |
Initializes SPI HAL.
- Return values:
-
None
Definition at line 397 of file stm32h7xx_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_MspInit | ( | SPI_HandleTypeDef * | hspi | ) | [static] |
Initializes SPI MSP.
- Return values:
-
None
Definition at line 355 of file stm32h7xx_nucleo_144.c.
References NUCLEO_SPIx_CLK_ENABLE, NUCLEO_SPIx_MISO_MOSI_AF, NUCLEO_SPIx_MISO_MOSI_GPIO_CLK_ENABLE, NUCLEO_SPIx_MISO_MOSI_GPIO_PORT, NUCLEO_SPIx_MISO_PIN, NUCLEO_SPIx_MOSI_PIN, NUCLEO_SPIx_SCK_AF, NUCLEO_SPIx_SCK_GPIO_CLK_ENABLE, NUCLEO_SPIx_SCK_GPIO_PORT, and NUCLEO_SPIx_SCK_PIN.
Referenced by SPIx_Init().
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 463 of file stm32h7xx_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 and Read data.
- Parameters:
-
DataIn,: Data to write DataOut,: Data to read DataLength,: Data size
- Return values:
-
None
Definition at line 444 of file stm32h7xx_nucleo_144.c.
References hnucleo_Spi, SPIx_Error(), and SpixTimeout.
Referenced by SD_IO_WriteByte(), and SD_IO_WriteReadData().
Generated on Fri Apr 21 2017 17:27:08 for STM32H7xx_Nucleo_144 BSP User Manual by
