Functions | |
cy_en_seglcd_status_t | Cy_SegLCD_WriteChar (LCD_Type *base, char_t character, uint32_t position, cy_stc_seglcd_disp_t const *display) |
Writes a specified character onto a specified display. More... | |
cy_en_seglcd_status_t | Cy_SegLCD_WriteString (LCD_Type *base, char_t const *string, uint32_t position, cy_stc_seglcd_disp_t const *display) |
Writes a specified zero-terminated char string onto a specified display. More... | |
cy_en_seglcd_status_t | Cy_SegLCD_WriteNumber (LCD_Type *base, uint32_t value, uint32_t position, cy_stc_seglcd_disp_t const *display, bool zeroes, bool hex) |
Displays an integer value onto a specified display. More... | |
cy_en_seglcd_status_t | Cy_SegLCD_BarGraph (LCD_Type *base, uint32_t value, uint32_t position, cy_stc_seglcd_disp_t const *display) |
Draws a bar onto a specified bar graph / dial display. More... | |
cy_en_seglcd_status_t Cy_SegLCD_WriteChar | ( | LCD_Type * | base, |
char_t | character, | ||
uint32_t | position, | ||
cy_stc_seglcd_disp_t const * | display | ||
) |
Writes a specified character onto a specified display.
Supports all display types except CY_SEGLCD_BAR.
base | The base pointer to the LCD instance registers. |
character | The code of the character to display. Should be within the font symbol codes range specified by cy_stc_seglcd_font_t::first and cy_stc_seglcd_font_t::last |
position | The position of the character/digit on display. Zero is the most left character/digit of the specified display cy_stc_seglcd_disp_t. |
display | The pointer to the display structure cy_stc_seglcd_disp_t. |
cy_en_seglcd_status_t Cy_SegLCD_WriteString | ( | LCD_Type * | base, |
char_t const * | string, | ||
uint32_t | position, | ||
cy_stc_seglcd_disp_t const * | display | ||
) |
Writes a specified zero-terminated char string onto a specified display.
Supports all display types except CY_SEGLCD_BAR.
base | The base pointer to the LCD instance registers. |
string | The pointer to the ASCII-coded null-terminated character string. |
position | The position of the first string character at the display as counted left to right starting at 0 - the first symbol on the left of the specified display. If the specified display contains fewer symbols than the string requires to be displayed, the extra character(s) is(are) not displayed and the CY_SEGLCD_EXCEED value is returned. |
display | The pointer to the display structure cy_stc_seglcd_disp_t. |
cy_en_seglcd_status_t Cy_SegLCD_WriteNumber | ( | LCD_Type * | base, |
uint32_t | value, | ||
uint32_t | position, | ||
cy_stc_seglcd_disp_t const * | display, | ||
bool | zeroes, | ||
bool | hex | ||
) |
Displays an integer value onto a specified display.
Supports all display types except CY_SEGLCD_BAR.
base | The base pointer to the LCD instance registers. |
value | The unsigned integer number to be displayed. |
position | The position of the least significant digit of the number as counted left to right starting at 0 - the first symbol on the left of the specified display. If the specified display contains fewer symbols than the number requires to be displayed, the extra (more significant) digit(s) is(are) not displayed and the CY_SEGLCD_EXCEED value is returned. |
display | The pointer to the display structure cy_stc_seglcd_disp_t. |
zeroes |
|
hex |
|
cy_en_seglcd_status_t Cy_SegLCD_BarGraph | ( | LCD_Type * | base, |
uint32_t | value, | ||
uint32_t | position, | ||
cy_stc_seglcd_disp_t const * | display | ||
) |
Draws a bar onto a specified bar graph / dial display.
Only the CY_SEGLCD_BAR display type is supported.
base | The base pointer to the LCD instance registers. |
value | The length of the bar in pixels. |
position | The position of the first bar pixel as counted from the beginning ('0' is the first pixel) of the specified display. If the specified display contains fewer pixels than the bar requires to be displayed, the extra pixel(s) is(are) not displayed and the CY_SEGLCD_EXCEED value is returned. |
display | The pointer to the display structure cy_stc_seglcd_disp_t. |