GaIA BIOS Library
Loading...
Searching...
No Matches
gwa_display.h File Reference

GWA Display functions. More...

#include <stdint.h>

Data Structures

struct  disp_val_t

Macros

#define NO_COLS   (0xFF)
#define TOP_7SEG_DISPLAY   (0x7F)
#define BOTTOM_7SEG_DISPLAY   (0xBF)
#define LEDS_COLS_DISPLAY   (0xEF)
#define MAX_COLS_COUNT   (3)
 Maximum number of columns.
#define GWA_DISP_DIGIT_0   (0)
 Least significant digit of the display.
#define GWA_DISP_DIGIT_1   (1)
 Most significant digit of the display.
#define GWA_DISP_LEDS   (2)
 LEDs on the display.
#define COL_LED_OFF   ((uint8_t)0x00)
 Columns Off.
#define COL_LED_0   ((uint8_t)0x01)
 Column 0.
#define COL_LED_1   ((uint8_t)0x02)
 Column 1.
#define COL_LED_2   ((uint8_t)0x04)
 Column 2.
#define COL_LED_3   ((uint8_t)0x08)
 Column 3.
#define DISP_OFF   ((uint8_t)~0x00)
 Display Off.
#define DISP_A_SEG   ((uint8_t)~0x01)
 A-Segment.
#define DISP_B_SEG   ((uint8_t)~0x02)
 B-Segment.
#define DISP_C_SEG   ((uint8_t)~0x04)
 C-Segment.
#define DISP_D_SEG   ((uint8_t)~0x10)
 D-Segment.
#define DISP_E_SEG   ((uint8_t)~0x20)
 E-Segment.
#define DISP_F_SEG   ((uint8_t)~0x40)
 F-Segment.
#define DISP_G_SEG   ((uint8_t)~0x80)
 G-Segment.
#define DISP_DP_SEG   ((uint8_t)~0x08)
 DP-Point.
#define LED_G_1   0
 GaIA Display Indicator LEDs.
#define LED_R_1   1
#define LED_G_2   2
#define LED_R_2   3

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

GWA Display functions.

Author
Tecnologix, 2014