GaIA BIOS Library
Loading...
Searching...
No Matches
GaIA Display Handling functions

Functions to handle the on board two digits display. More...

Functions

void gwa_disp_set (uint8_t element, uint8_t val)
 Sets a value for a particular display element.
uint8_t gwa_disp_get (uint8_t element)
 Gets the value of a particular display element.
void gwa_disp_set_char (uint8_t element, char c)
 Sets a character for a particular display element.
uint32_t gwa_disp_get_char (uint8_t element)
 Gets the character string of a particular display element.
void gwa_disp_set_str (const char *str)
 Sets a string for the display.
int gwa_disp_get_str (char *str)
 Gets a string representation of the value display.

Detailed Description

Functions to handle the on board two digits display.

Function Documentation

◆ gwa_disp_get()

uint8_t gwa_disp_get ( uint8_t element)

Gets the value of a particular display element.

Parameters
elementelement to set. The value can be one of the following:
  • GWA_DISP_DIGIT_0
  • GWA_DISP_DIGIT_1
  • GWA_DISP_LEDS
Returns
the value to set.

◆ gwa_disp_get_char()

uint32_t gwa_disp_get_char ( uint8_t element)

Gets the character string of a particular display element.

Parameters
elementelement to set. The value can be one of the following:
  • GWA_DISP_DIGIT_0
  • GWA_DISP_DIGIT_1
Returns
a 32-bit unsigned integer representing the NULL terminated string. If the value is 0xFFFFFFFF, the value of the display element was not set as an ASCII character.

◆ gwa_disp_get_str()

int gwa_disp_get_str ( char * str)

Gets a string representation of the value display.

Parameters
strstring shown on the display. The buffer should be at least 5-character long.
Returns
the number of characters written. If any of the digits was not set as an ASCII character -1 is returned.

◆ gwa_disp_set()

void gwa_disp_set ( uint8_t element,
uint8_t val )

Sets a value for a particular display element.

Parameters
elementelement to set. The value can be one of the following:
  • GWA_DISP_DIGIT_0
  • GWA_DISP_DIGIT_1
  • GWA_DISP_LEDS
valvalue to set.

◆ gwa_disp_set_char()

void gwa_disp_set_char ( uint8_t element,
char c )

Sets a character for a particular display element.

Parameters
elementelement to set. The value can be one of the following:
  • GWA_DISP_DIGIT_0
  • GWA_DISP_DIGIT_1
ccharacter to set.

◆ gwa_disp_set_str()

void gwa_disp_set_str ( const char * str)

Sets a string for the display.

Parameters
strstring to show on the display.