dlcd.h File Reference

Interface: direct control of LCD display. More...

#include <sys/bitops.h>
Include dependency graph for dlcd.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define LCD_ARMS   0xef43,0x0
 
#define LCD_BODY   0xef43,0x1
 
#define LCD_1LEG   0xef43,0x2
 
#define LCD_2LEGS   0xef43,0x3
 
#define LCD_0_TOP   0xef44,0x4
 
#define LCD_0_MID   0xef44,0x5
 
#define LCD_0_BOT   0xef44,0x7
 
#define LCD_0_TOPR   0xef45,0x5
 
#define LCD_0_BOTR   0xef45,0x7
 
#define LCD_0_TOPL   0xef47,0x5
 
#define LCD_0_BOTL   0xef47,0x7
 
#define LCD_1_TOP   0xef43,0x4
 
#define LCD_1_MID   0xef43,0x5
 
#define LCD_1_BOT   0xef43,0x7
 
#define LCD_1_TOPR   0xef47,0x1
 
#define LCD_1_BOTR   0xef47,0x3
 
#define LCD_1_TOPL   0xef48,0x5
 
#define LCD_1_BOTL   0xef48,0x7
 
#define LCD_2_TOP   0xef44,0x0
 
#define LCD_2_MID   0xef44,0x1
 
#define LCD_2_BOT   0xef44,0x3
 
#define LCD_2_TOPR   0xef48,0x1
 
#define LCD_2_BOTR   0xef48,0x3
 
#define LCD_2_TOPL   0xef49,0x5
 
#define LCD_2_BOTL   0xef49,0x7
 
#define LCD_2_DOT   0xef48,0x6
 
#define LCD_3_TOP   0xef46,0x0
 
#define LCD_3_MID   0xef46,0x1
 
#define LCD_3_BOT   0xef46,0x3
 
#define LCD_3_TOPR   0xef4b,0x1
 
#define LCD_3_BOTR   0xef4b,0x3
 
#define LCD_3_TOPL   0xef4b,0x5
 
#define LCD_3_BOTL   0xef4b,0x7
 
#define LCD_3_DOT   0xef49,0x6
 
#define LCD_4_TOP   0xef46,0x4
 
#define LCD_4_MID   0xef46,0x5
 
#define LCD_4_BOT   0xef46,0x7
 
#define LCD_4_TOPR   0xef4a,0x1
 
#define LCD_4_BOTR   0xef4a,0x3
 
#define LCD_4_TOPL   0xef4a,0x5
 
#define LCD_4_BOTL   0xef4a,0x7
 
#define LCD_4_DOT   0xef4b,0x6
 
#define LCD_5_MID   0xef4a,0x6
 
#define LCD_A_SELECT   0xef4a,0x2
 
#define LCD_A_LEFT   0xef46,0x6
 
#define LCD_A_RIGHT   0xef46,0x2
 
#define LCD_B_SELECT   0xef43,0x6
 
#define LCD_B_LEFT   0xef44,0x2
 
#define LCD_B_RIGHT   0xef47,0x2
 
#define LCD_C_SELECT   0xef44,0x6
 
#define LCD_C_LEFT   0xef47,0x6
 
#define LCD_C_RIGHT   0xef45,0x6
 
#define LCD_S1_SELECT   0xef49,0x0
 
#define LCD_S1_ACTIVE   0xef49,0x1
 
#define LCD_S2_SELECT   0xef48,0x4
 
#define LCD_S2_ACTIVE   0xef48,0x0
 
#define LCD_S3_SELECT   0xef47,0x4
 
#define LCD_S3_ACTIVE   0xef45,0x4
 
#define LCD_CIRCLE_0   0xef45,0x0
 
#define LCD_CIRCLE_1   0xef45,0x1
 
#define LCD_CIRCLE_2   0xef45,0x3
 
#define LCD_CIRCLE_3   0xef45,0x2
 
#define LCD_DOT_0   0xef49,0x4
 
#define LCD_DOT_1   0xef4b,0x0
 
#define LCD_DOT_2   0xef4b,0x4
 
#define LCD_DOT_3   0xef4a,0x0
 
#define LCD_DOT_4   0xef4a,0x4
 
#define LCD_IR_LOWER   0xef49,0x2
 
#define LCD_IR_UPPER   0xef49,0x3
 
#define LCD_BATTERY_X   0xef47,0x0
 
#define LCD_EMPTY_1   0xef48,0x2
 
#define LCD_EMPTY_2   0xef4b,0x2
 
#define dlcd_show(a)   bit_set(BYTE_OF(a),BIT_OF(a))
 set a segment directly in the LCD buffer More...
 
#define dlcd_hide(a)   bit_clear(BYTE_OF(a),BIT_OF(a))
 clear a segment directly in the LCD buffer More...
 
#define dlcd_store(a)   bit_store(BYTE_OF(a),BIT_OF(a))
 store the carry flag to a segment directly in the LCD buffer More...
 
#define BYTE_OF(a, b)   a
 helper macros More...
 
#define BIT_OF(a, b)   b
 

Detailed Description

Interface: direct control of LCD display.

Author
Markus L. Noga marku.nosp@m.s@no.nosp@m.ga.de
Warning
If CONF_LCD_REFRESH is set in config.h, the kernel will refresh the display automatically every 100ms. Otherwise, display updates are realized exclusively by lcd_refresh().

Definition in file dlcd.h.

Macro Definition Documentation

◆ BIT_OF

#define BIT_OF (   a,
 
)    b

Definition at line 192 of file dlcd.h.

◆ BYTE_OF

#define BYTE_OF (   a,
 
)    a

helper macros

Definition at line 191 of file dlcd.h.

◆ dlcd_hide

#define dlcd_hide (   a)    bit_clear(BYTE_OF(a),BIT_OF(a))

clear a segment directly in the LCD buffer

Parameters
athe segment to clear

Definition at line 180 of file dlcd.h.

◆ dlcd_show

#define dlcd_show (   a)    bit_set(BYTE_OF(a),BIT_OF(a))

set a segment directly in the LCD buffer

Parameters
athe segment to set

Definition at line 175 of file dlcd.h.

◆ dlcd_store

#define dlcd_store (   a)    bit_store(BYTE_OF(a),BIT_OF(a))

store the carry flag to a segment directly in the LCD buffer

Parameters
athe segment to store to

this is highly useful in combination with bit_load(mask,bit)

Definition at line 187 of file dlcd.h.

◆ LCD_0_BOT

#define LCD_0_BOT   0xef44,0x7

Definition at line 66 of file dlcd.h.

◆ LCD_0_BOTL

#define LCD_0_BOTL   0xef47,0x7

Definition at line 70 of file dlcd.h.

◆ LCD_0_BOTR

#define LCD_0_BOTR   0xef45,0x7

Definition at line 68 of file dlcd.h.

◆ LCD_0_MID

#define LCD_0_MID   0xef44,0x5

Definition at line 65 of file dlcd.h.

◆ LCD_0_TOP

#define LCD_0_TOP   0xef44,0x4

Definition at line 64 of file dlcd.h.

◆ LCD_0_TOPL

#define LCD_0_TOPL   0xef47,0x5

Definition at line 69 of file dlcd.h.

◆ LCD_0_TOPR

#define LCD_0_TOPR   0xef45,0x5

Definition at line 67 of file dlcd.h.

◆ LCD_1_BOT

#define LCD_1_BOT   0xef43,0x7

Definition at line 74 of file dlcd.h.

◆ LCD_1_BOTL

#define LCD_1_BOTL   0xef48,0x7

Definition at line 78 of file dlcd.h.

◆ LCD_1_BOTR

#define LCD_1_BOTR   0xef47,0x3

Definition at line 76 of file dlcd.h.

◆ LCD_1_MID

#define LCD_1_MID   0xef43,0x5

Definition at line 73 of file dlcd.h.

◆ LCD_1_TOP

#define LCD_1_TOP   0xef43,0x4

Definition at line 72 of file dlcd.h.

◆ LCD_1_TOPL

#define LCD_1_TOPL   0xef48,0x5

Definition at line 77 of file dlcd.h.

◆ LCD_1_TOPR

#define LCD_1_TOPR   0xef47,0x1

Definition at line 75 of file dlcd.h.

◆ LCD_1LEG

#define LCD_1LEG   0xef43,0x2

Definition at line 55 of file dlcd.h.

◆ LCD_2_BOT

#define LCD_2_BOT   0xef44,0x3

Definition at line 82 of file dlcd.h.

◆ LCD_2_BOTL

#define LCD_2_BOTL   0xef49,0x7

Definition at line 86 of file dlcd.h.

◆ LCD_2_BOTR

#define LCD_2_BOTR   0xef48,0x3

Definition at line 84 of file dlcd.h.

◆ LCD_2_DOT

#define LCD_2_DOT   0xef48,0x6

Definition at line 87 of file dlcd.h.

◆ LCD_2_MID

#define LCD_2_MID   0xef44,0x1

Definition at line 81 of file dlcd.h.

◆ LCD_2_TOP

#define LCD_2_TOP   0xef44,0x0

Definition at line 80 of file dlcd.h.

◆ LCD_2_TOPL

#define LCD_2_TOPL   0xef49,0x5

Definition at line 85 of file dlcd.h.

◆ LCD_2_TOPR

#define LCD_2_TOPR   0xef48,0x1

Definition at line 83 of file dlcd.h.

◆ LCD_2LEGS

#define LCD_2LEGS   0xef43,0x3

Definition at line 56 of file dlcd.h.

◆ LCD_3_BOT

#define LCD_3_BOT   0xef46,0x3

Definition at line 91 of file dlcd.h.

◆ LCD_3_BOTL

#define LCD_3_BOTL   0xef4b,0x7

Definition at line 95 of file dlcd.h.

◆ LCD_3_BOTR

#define LCD_3_BOTR   0xef4b,0x3

Definition at line 93 of file dlcd.h.

◆ LCD_3_DOT

#define LCD_3_DOT   0xef49,0x6

Definition at line 96 of file dlcd.h.

◆ LCD_3_MID

#define LCD_3_MID   0xef46,0x1

Definition at line 90 of file dlcd.h.

◆ LCD_3_TOP

#define LCD_3_TOP   0xef46,0x0

Definition at line 89 of file dlcd.h.

◆ LCD_3_TOPL

#define LCD_3_TOPL   0xef4b,0x5

Definition at line 94 of file dlcd.h.

◆ LCD_3_TOPR

#define LCD_3_TOPR   0xef4b,0x1

Definition at line 92 of file dlcd.h.

◆ LCD_4_BOT

#define LCD_4_BOT   0xef46,0x7

Definition at line 100 of file dlcd.h.

◆ LCD_4_BOTL

#define LCD_4_BOTL   0xef4a,0x7

Definition at line 104 of file dlcd.h.

◆ LCD_4_BOTR

#define LCD_4_BOTR   0xef4a,0x3

Definition at line 102 of file dlcd.h.

◆ LCD_4_DOT

#define LCD_4_DOT   0xef4b,0x6

Definition at line 105 of file dlcd.h.

◆ LCD_4_MID

#define LCD_4_MID   0xef46,0x5

Definition at line 99 of file dlcd.h.

◆ LCD_4_TOP

#define LCD_4_TOP   0xef46,0x4

Definition at line 98 of file dlcd.h.

◆ LCD_4_TOPL

#define LCD_4_TOPL   0xef4a,0x5

Definition at line 103 of file dlcd.h.

◆ LCD_4_TOPR

#define LCD_4_TOPR   0xef4a,0x1

Definition at line 101 of file dlcd.h.

◆ LCD_5_MID

#define LCD_5_MID   0xef4a,0x6

Definition at line 107 of file dlcd.h.

◆ LCD_A_LEFT

#define LCD_A_LEFT   0xef46,0x6

Definition at line 112 of file dlcd.h.

◆ LCD_A_RIGHT

#define LCD_A_RIGHT   0xef46,0x2

Definition at line 113 of file dlcd.h.

◆ LCD_A_SELECT

#define LCD_A_SELECT   0xef4a,0x2

Definition at line 111 of file dlcd.h.

◆ LCD_ARMS

#define LCD_ARMS   0xef43,0x0

Definition at line 53 of file dlcd.h.

◆ LCD_B_LEFT

#define LCD_B_LEFT   0xef44,0x2

Definition at line 116 of file dlcd.h.

◆ LCD_B_RIGHT

#define LCD_B_RIGHT   0xef47,0x2

Definition at line 117 of file dlcd.h.

◆ LCD_B_SELECT

#define LCD_B_SELECT   0xef43,0x6

Definition at line 115 of file dlcd.h.

◆ LCD_BATTERY_X

#define LCD_BATTERY_X   0xef47,0x0

Definition at line 159 of file dlcd.h.

◆ LCD_BODY

#define LCD_BODY   0xef43,0x1

Definition at line 54 of file dlcd.h.

◆ LCD_C_LEFT

#define LCD_C_LEFT   0xef47,0x6

Definition at line 120 of file dlcd.h.

◆ LCD_C_RIGHT

#define LCD_C_RIGHT   0xef45,0x6

Definition at line 121 of file dlcd.h.

◆ LCD_C_SELECT

#define LCD_C_SELECT   0xef44,0x6

Definition at line 119 of file dlcd.h.

◆ LCD_CIRCLE_0

#define LCD_CIRCLE_0   0xef45,0x0

Definition at line 138 of file dlcd.h.

◆ LCD_CIRCLE_1

#define LCD_CIRCLE_1   0xef45,0x1

Definition at line 139 of file dlcd.h.

◆ LCD_CIRCLE_2

#define LCD_CIRCLE_2   0xef45,0x3

Definition at line 140 of file dlcd.h.

◆ LCD_CIRCLE_3

#define LCD_CIRCLE_3   0xef45,0x2

Definition at line 141 of file dlcd.h.

◆ LCD_DOT_0

#define LCD_DOT_0   0xef49,0x4

Definition at line 146 of file dlcd.h.

◆ LCD_DOT_1

#define LCD_DOT_1   0xef4b,0x0

Definition at line 147 of file dlcd.h.

◆ LCD_DOT_2

#define LCD_DOT_2   0xef4b,0x4

Definition at line 148 of file dlcd.h.

◆ LCD_DOT_3

#define LCD_DOT_3   0xef4a,0x0

Definition at line 149 of file dlcd.h.

◆ LCD_DOT_4

#define LCD_DOT_4   0xef4a,0x4

Definition at line 150 of file dlcd.h.

◆ LCD_EMPTY_1

#define LCD_EMPTY_1   0xef48,0x2

Definition at line 163 of file dlcd.h.

◆ LCD_EMPTY_2

#define LCD_EMPTY_2   0xef4b,0x2

Definition at line 164 of file dlcd.h.

◆ LCD_IR_LOWER

#define LCD_IR_LOWER   0xef49,0x2

Definition at line 154 of file dlcd.h.

◆ LCD_IR_UPPER

#define LCD_IR_UPPER   0xef49,0x3

Definition at line 155 of file dlcd.h.

◆ LCD_S1_ACTIVE

#define LCD_S1_ACTIVE   0xef49,0x1

Definition at line 126 of file dlcd.h.

◆ LCD_S1_SELECT

#define LCD_S1_SELECT   0xef49,0x0

Definition at line 125 of file dlcd.h.

◆ LCD_S2_ACTIVE

#define LCD_S2_ACTIVE   0xef48,0x0

Definition at line 129 of file dlcd.h.

◆ LCD_S2_SELECT

#define LCD_S2_SELECT   0xef48,0x4

Definition at line 128 of file dlcd.h.

◆ LCD_S3_ACTIVE

#define LCD_S3_ACTIVE   0xef45,0x4

Definition at line 132 of file dlcd.h.

◆ LCD_S3_SELECT

#define LCD_S3_SELECT   0xef47,0x4

Definition at line 131 of file dlcd.h.


brickOS is released under the Mozilla Public License.
Original code copyright 1998-2005 by the authors.

Generated for brickOS C++ by doxygen 1.8.16