Programmable Clock with RTOS 0.0.1
Implementaiton of a programmable clock using RTOS with STM32GO microcontroller.
Loading...
Searching...
No Matches
hel_lcd.c File Reference

Board Support LCD for microcontroller STM32. More...

#include "bsp.h"
#include "hel_lcd.h"

Functions

uint8_t HEL_LCD_Init (LCD_HandleTypeDef *hlcd)
 Function to initialize the LCD.
 
__weak void HEL_LCD_MspInit (LCD_HandleTypeDef *hlcd)
 Sub-initialization interface for the pins used by the LCD.
 
uint8_t HEL_LCD_Command (LCD_HandleTypeDef *hlcd, uint8_t cmd)
 Function to send a command to the LCD.
 
uint8_t HEL_LCD_Data (LCD_HandleTypeDef *hlcd, uint8_t data)
 Function to send a character to be displayed on the LCD using the SPI.
 
uint8_t HEL_LCD_String (LCD_HandleTypeDef *hlcd, char *str)
 Function to send a string of characters to the LCD.
 
uint8_t HEL_LCD_SetCursor (LCD_HandleTypeDef *hlcd, uint8_t row, uint8_t col)
 Function to locate the LCD cursor.
 
void HEL_LCD_Backlight (LCD_HandleTypeDef *hlcd, uint8_t state)
 Function to control the LCD backlight.
 
uint8_t HEL_LCD_Contrast (LCD_HandleTypeDef *hlcd, uint8_t contrast)
 Function to control the contrast level of the LCD.
 

Detailed Description

Board Support LCD for microcontroller STM32.

File provides the neccesary drivers, libraries, and configurations for the LCD.

Function Documentation

◆ HEL_LCD_Backlight()

void HEL_LCD_Backlight ( LCD_HandleTypeDef * hlcd,
uint8_t state )

Function to control the LCD backlight.

Parameters
[out]hlcdLCD Handler.
[in]stateDescribe the intensity.

< Brief description

< Brief description

< Brief description

◆ HEL_LCD_Command()

uint8_t HEL_LCD_Command ( LCD_HandleTypeDef * hlcd,
uint8_t cmd )

Function to send a command to the LCD.

The function must wait as long as necessary for the command to be accepted by the LCD .

Parameters
[out]hlcdLCD Handler.
[in]cmd8-bit Command.
Return values
valueReturns an indication of a successful operation or not.

< Brief description

◆ HEL_LCD_Contrast()

uint8_t HEL_LCD_Contrast ( LCD_HandleTypeDef * hlcd,
uint8_t contrast )

Function to control the contrast level of the LCD.

Parameters
[out]hlcdLCD Handler.
[in]contrastDescribe the contrast, 0 to 63.
Return values
valueReturns an indication of a successful operation or not.

◆ HEL_LCD_Data()

uint8_t HEL_LCD_Data ( LCD_HandleTypeDef * hlcd,
uint8_t data )

Function to send a character to be displayed on the LCD using the SPI.

Parameters
[out]hlcdLCD Handler.
[in]data8-bit Command.
Return values
valueReturns an indication of a successful operation or not.

< Brief description

◆ HEL_LCD_Init()

uint8_t HEL_LCD_Init ( LCD_HandleTypeDef * hlcd)

Function to initialize the LCD.

Commands to sent for SPI communication between the LCD and the microcontroller.

Parameters
[in]hlcdPointer to Lcd handler.
Return values
valueReturns an indication of a successful operation or not.

< Brief description

< Brief description

< Brief description

< Brief description

< Brief description

< Brief description

< Brief description

< Brief description

< Brief description

< Brief description

< Brief description

◆ HEL_LCD_MspInit()

__weak void HEL_LCD_MspInit ( LCD_HandleTypeDef * hlcd)

Sub-initialization interface for the pins used by the LCD.

Parameters
[out]hlcdLCD Handler.

◆ HEL_LCD_SetCursor()

uint8_t HEL_LCD_SetCursor ( LCD_HandleTypeDef * hlcd,
uint8_t row,
uint8_t col )

Function to locate the LCD cursor.

Parameters
[out]hlcdLCD Handler.
[in]rowValue 0 to 1.
[in]colValue 0 to 15.
Return values
valueReturns an indication of a successful operation or not.

◆ HEL_LCD_String()

uint8_t HEL_LCD_String ( LCD_HandleTypeDef * hlcd,
char * str )

Function to send a string of characters to the LCD.

Parameters
[out]hlcdLCD Handler.
[out]strString.
Return values
valueReturns an indication of a successful operation or not.