This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Defines | |
#define | lcd_int(i) lcd_number(i,sign,e0) |
display an integer in decimal | |
#define | lcd_unsigned(u) lcd_number(u,unsign,e0) |
display an unsigned value in decimal | |
#define | lcd_clock(t) lcd_number(t,unsign,e_2) |
display a clock. | |
#define | lcd_digit(d) lcd_number(d,digit,digit_comma) |
display a single digit right of the man symbol | |
#define | ASMVOLATILE __volatile__ |
Enumerations | |
enum | lcd_segment { man_stand = 0x3006, man_run = 0x3007, s1_select = 0x3008, s1_active = 0x3009, s2_select = 0x300A, s2_active = 0x300B, s3_select = 0x300C, s3_active = 0x300D, a_select = 0x300E, a_left = 0x300F, a_right = 0x3010, b_select = 0x3011, b_left = 0x3012, b_right = 0x3013, c_select = 0x3014, c_left = 0x3015, c_right = 0x3016, unknown_1 = 0x3017, circle = 0x3018, dot = 0x3019, dot_inv = 0x301A, battery_x = 0x301B, ir_half = 0x301C, ir_full = 0x301D, everything = 0x3020 } |
LCD segment codes. More... | |
enum | lcd_number_style { digit = 0x3017, sign = 0x3001, unsign = 0x301F } |
LCD number display styles. More... | |
enum | lcd_comma_style { digit_comma = 0x0000, e0 = 0x3002, e_1 = 0x3003, e_2 = 0x3004, e_3 = 0x3005 } |
LCD comma display styles. More... | |
Functions | |
void | lcd_show (lcd_segment segment) |
show LCD segment | |
void | lcd_hide (lcd_segment segment) |
hide LCD segment | |
void | lcd_number (int i, lcd_number_style n, lcd_comma_style c) |
show number on LCD display | |
void | lcd_clear (void) |
clear LCD display |
Definition in file lcd.h.
#define ASMVOLATILE __volatile__ |
g++ warns about __asm__ __volatile__. we define the problem away. the CXX symbol is predefined in the Makefile
Definition at line 150 of file lcd.h.
Referenced by lcd_clear(), lcd_hide(), and lcd_show().
#define lcd_clock | ( | t | ) | lcd_number(t,unsign,e_2) |
#define lcd_digit | ( | d | ) | lcd_number(d,digit,digit_comma) |
display a single digit right of the man symbol
Definition at line 134 of file lcd.h.
Referenced by show_off(), and show_on().
#define lcd_int | ( | i | ) | lcd_number(i,sign,e0) |
#define lcd_unsigned | ( | u | ) | lcd_number(u,unsign,e0) |
enum lcd_comma_style |
enum lcd_number_style |
enum lcd_segment |
LCD segment codes.
these are not to be confused with the codes defined in direct-lcd.h
circle and dot codes cycle. cycle state is preserved on powerdown.
each dot code should be invoked six times before using the other. mixing them will result in strange behaviour.
void lcd_clear | ( | void | ) | [inline] |
clear LCD display
Definition at line 191 of file lcd.h.
References __asm__(), and ASMVOLATILE.
Referenced by kmain().
void lcd_hide | ( | lcd_segment | segment | ) | [inline] |
hide LCD segment
segment | segment to hide |
Definition at line 171 of file lcd.h.
References __asm__(), and ASMVOLATILE.
void lcd_number | ( | int | i, | |
lcd_number_style | n, | |||
lcd_comma_style | c | |||
) |
show number on LCD display
i | the number | |
n | a number style | |
c | a comma style |
void lcd_show | ( | lcd_segment | segment | ) | [inline] |
show LCD segment
segment | segment to show |
Definition at line 156 of file lcd.h.
References __asm__(), and ASMVOLATILE.
Referenced by kmain().
brickOS is released under the
Mozilla Public License.
Original code copyright 1998-2005 by the authors. |