Functions to handle the on board two digits display.
More...
|
| 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.
|
Functions to handle the on board two digits display.
◆ gwa_disp_get()
| uint8_t gwa_disp_get |
( |
uint8_t | element | ) |
|
Gets the value of a particular display element.
- Parameters
-
| element | element 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
-
| element | element 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
-
| str | string 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
-
| element | element to set. The value can be one of the following:
-
GWA_DISP_DIGIT_0
-
GWA_DISP_DIGIT_1
-
GWA_DISP_LEDS
|
| val | value 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
-
| element | element to set. The value can be one of the following:
-
GWA_DISP_DIGIT_0
-
GWA_DISP_DIGIT_1
|
| c | character to set. |
◆ gwa_disp_set_str()
| void gwa_disp_set_str |
( |
const char * | str | ) |
|
Sets a string for the display.
- Parameters
-
| str | string to show on the display. |