TM STM32Fxxx HAL Libraries  v1.0.0
Libraries for STM32Fxxx (F0, F4 and F7 series) devices based on HAL drivers from ST from Tilen Majerle

Library Functions. More...

Modules

 TM_LCD_String_Functions
 String functions.
 
 TM_LCD_GRAPHIC_Functions
 Library Functions.
 
 TM_LCD_LAYER_Functions
 Library Functions.
 

Functions

TM_LCD_Result_t TM_LCD_Init (void)
 Initializes LCD. More...
 
TM_LCD_Result_t TM_LCD_Fill (uint32_t color)
 Fills currently active layer with desired color. More...
 
TM_LCD_Result_t TM_LCD_DisplayOn (void)
 Sets display ON. More...
 
TM_LCD_Result_t TM_LCD_DisplayOff (void)
 Sets display OFF. More...
 
uint16_t TM_LCD_GetWidth (void)
 Gets LCD width in unit of pixels. More...
 
uint16_t TM_LCD_GetHeight (void)
 Gets LCD height in unit of pixels. More...
 
uint32_t TM_LCD_GetFrameBuffer (void)
 Gets location where LCD buffer is located. More...
 
TM_LCD_Result_t TM_LCD_SetOrientation (uint8_t orientation)
 Sets LCD orientation. More...
 
uint8_t TM_LCD_GetOrientation (void)
 Gets LCD orientation. More...
 

Detailed Description

Library Functions.

Function Documentation

TM_LCD_Result_t TM_LCD_DisplayOff ( void  )

Sets display OFF.

Parameters
None
Return values
Memberof TM_LCD_Result_t enumeration
TM_LCD_Result_t TM_LCD_DisplayOn ( void  )

Sets display ON.

Note
This function is already called inside TM_LCD_Init() function
Parameters
None
Return values
Memberof TM_LCD_Result_t enumeration
TM_LCD_Result_t TM_LCD_Fill ( uint32_t  color)

Fills currently active layer with desired color.

Note
To select active layer, use TM_LCD_SetLayer1() or TM_LCD_SetLayer2() functions
Parameters
colorColor index in RGB565 format
Return values
Memberof TM_LCD_Result_t enumeration
uint32_t TM_LCD_GetFrameBuffer ( void  )

Gets location where LCD buffer is located.

Parameters
None
Return values
Locationin memory where LCD buffer is located
uint16_t TM_LCD_GetHeight ( void  )

Gets LCD height in unit of pixels.

Parameters
None
Return values
LCDwidth in unit of pixels
uint8_t TM_LCD_GetOrientation ( void  )

Gets LCD orientation.

Return values
LCDorientation
uint16_t TM_LCD_GetWidth ( void  )

Gets LCD width in unit of pixels.

Parameters
None
Return values
LCDwidth in unit of pixels
TM_LCD_Result_t TM_LCD_Init ( void  )

Initializes LCD.

Note
This function must be called at the beginning of LCD operations
Parameters
None
Return values
Memberof TM_LCD_Result_t enumeration
TM_LCD_Result_t TM_LCD_SetOrientation ( uint8_t  orientation)

Sets LCD orientation.

Parameters
orientationLCD orientation you wanna use, values 0 to 3 are available
Return values
Memberof TM_LCD_Result_t enumeration