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

String functions. More...

Functions

TM_LCD_Result_t TM_LCD_SetXY (uint16_t X, uint16_t Y)
 Sets X and Y location for character drawings. More...
 
uint16_t TM_LCD_GetCurrentX (void)
 Gets current X location for LCD strings. More...
 
uint16_t TM_LCD_GetCurrentY (void)
 Gets current Y location for LCD strings. More...
 
TM_LCD_Result_t TM_LCD_SetFont (TM_FONT_t *Font)
 Sets active font for character drawings. More...
 
TM_FONT_tTM_LCD_GetFont (void)
 Gets active font for character drawings. More...
 
TM_LCD_Result_t TM_LCD_SetColors (uint32_t Foreground, uint32_t Background)
 Sets foreground and background colors for character drawings. More...
 
TM_LCD_Result_t TM_LCD_Putc (char c)
 Puts single character to LCD. More...
 
TM_LCD_Result_t TM_LCD_Puts (char *str)
 Puts string to LCD. More...
 

Detailed Description

String functions.

Function Documentation

uint16_t TM_LCD_GetCurrentX ( void  )

Gets current X location for LCD strings.

Parameters
None
Return values
CurrentX location for string operations
uint16_t TM_LCD_GetCurrentY ( void  )

Gets current Y location for LCD strings.

Parameters
None
Return values
CurrentY location for string operations
TM_FONT_t* TM_LCD_GetFont ( void  )

Gets active font for character drawings.

Parameters
None
Return values
Pointerto TM_FONT_t structure with font
TM_LCD_Result_t TM_LCD_Putc ( char  c)

Puts single character to LCD.

Note
To set X and Y coordinate, use TM_LCD_SetXY function
Parameters
cCharacter to be written on LCD
Return values
Memberof TM_LCD_Result_t enumeration
TM_LCD_Result_t TM_LCD_Puts ( char *  str)

Puts string to LCD.

Note
To set X and Y coordinate, use TM_LCD_SetXY function
Parameters
*strString to be written on LCD
Return values
Memberof TM_LCD_Result_t enumeration
TM_LCD_Result_t TM_LCD_SetColors ( uint32_t  Foreground,
uint32_t  Background 
)

Sets foreground and background colors for character drawings.

Parameters
ForegroundForeground color for characters
BackgroundBackground color for characters
Return values
Memberof TM_LCD_Result_t enumeration
TM_LCD_Result_t TM_LCD_SetFont ( TM_FONT_t Font)

Sets active font for character drawings.

Parameters
*FontPointer to TM_FONT_t structure with font
Return values
Memberof TM_LCD_Result_t enumeration
TM_LCD_Result_t TM_LCD_SetXY ( uint16_t  X,
uint16_t  Y 
)

Sets X and Y location for character drawings.

Parameters
XX coordinate for character drawings
YY coordinate for character drawings
Return values
Memberof TM_LCD_Result_t enumeration