SegLCDLib
Loading...
Searching...
No Matches
SegDriver_3Wire.h File Reference
#include <SegLCDLib.h>

Go to the source code of this file.

Data Structures

class  SegDriver_3Wire
 Base class for 3-wire serial LCD segment display drivers. More...
 

Macros

#define OP_CMD   0b100
 
#define OP_READ   0b110
 
#define OP_WRITE   0b101
 
#define OP_RD_MOD_WR   0b101
 
#define CMD_SYS_DIS   0b00000000
 System disable command (default)
 
#define CMD_SYS_EN   0b00000001
 System enable command.
 
#define CMD_LCD_OFF   0b00000010
 LCD off command (default)
 
#define CMD_LCD_ON   0b00000011
 LCD on command.
 
#define CMD_TMR_DIS   0b00000100
 Timer disable command.
 
#define CMD_WDT_DIS   0b00000101
 Watchdog timer disable command.
 
#define CMD_TMR_EN   0b00000110
 Timer enable command.
 
#define CMD_WDT_EN   0b00000111
 Watchdog timer enable command.
 
#define CMD_CLR_TMR   0b00001100
 Clear timer command.
 
#define CMD_CLR_WDT   0b00001110
 Clear watchdog timer command.
 
#define CMD_IRQ_DIS   0b10000000
 Disable IRQ (default)
 
#define CMD_IRQ_EN   0b10001000
 Enable IRQ.
 
#define CMD_F1   0b10100000
 Time base/WDT clock output: 1Hz, WDT flag 4sec.
 
#define CMD_F2   0b10100001
 Time base/WDT clock output: 2Hz, WDT flag 2sec.
 
#define CMD_F4   0b10100010
 Time base/WDT clock output: 4Hz, WDT flag 1sec.
 
#define CMD_F8   0b10100011
 Time base/WDT clock output: 8Hz, WDT flag 0.5sec.
 
#define CMD_F16   0b10100100
 Time base/WDT clock output: 16Hz, WDT flag 0.25sec.
 
#define CMD_F32   0b10100101
 Time base/WDT clock output: 32Hz, WDT flag 0.125sec.
 
#define CMD_F64   0b10100110
 Time base/WDT clock output: 64Hz, WDT flag 0.0625sec.
 
#define CMD_F128   0b10100111
 Time base/WDT clock output: 128Hz, WDT flag 0.03125sec (default)
 
#define CMD_TEST   0b11100000
 Test command, user don't use.
 
#define CMD_NORMAL   0b11100011
 Normal operation (default)
 

Macro Definition Documentation

◆ CMD_CLR_TMR

#define CMD_CLR_TMR   0b00001100

Clear timer command.

◆ CMD_CLR_WDT

#define CMD_CLR_WDT   0b00001110

Clear watchdog timer command.

◆ CMD_F1

#define CMD_F1   0b10100000

Time base/WDT clock output: 1Hz, WDT flag 4sec.

◆ CMD_F128

#define CMD_F128   0b10100111

Time base/WDT clock output: 128Hz, WDT flag 0.03125sec (default)

◆ CMD_F16

#define CMD_F16   0b10100100

Time base/WDT clock output: 16Hz, WDT flag 0.25sec.

◆ CMD_F2

#define CMD_F2   0b10100001

Time base/WDT clock output: 2Hz, WDT flag 2sec.

◆ CMD_F32

#define CMD_F32   0b10100101

Time base/WDT clock output: 32Hz, WDT flag 0.125sec.

◆ CMD_F4

#define CMD_F4   0b10100010

Time base/WDT clock output: 4Hz, WDT flag 1sec.

◆ CMD_F64

#define CMD_F64   0b10100110

Time base/WDT clock output: 64Hz, WDT flag 0.0625sec.

◆ CMD_F8

#define CMD_F8   0b10100011

Time base/WDT clock output: 8Hz, WDT flag 0.5sec.

◆ CMD_IRQ_DIS

#define CMD_IRQ_DIS   0b10000000

Disable IRQ (default)

◆ CMD_IRQ_EN

#define CMD_IRQ_EN   0b10001000

Enable IRQ.

◆ CMD_LCD_OFF

#define CMD_LCD_OFF   0b00000010

LCD off command (default)

◆ CMD_LCD_ON

#define CMD_LCD_ON   0b00000011

LCD on command.

◆ CMD_NORMAL

#define CMD_NORMAL   0b11100011

Normal operation (default)

◆ CMD_SYS_DIS

#define CMD_SYS_DIS   0b00000000

System disable command (default)

◆ CMD_SYS_EN

#define CMD_SYS_EN   0b00000001

System enable command.

◆ CMD_TEST

#define CMD_TEST   0b11100000

Test command, user don't use.

◆ CMD_TMR_DIS

#define CMD_TMR_DIS   0b00000100

Timer disable command.

◆ CMD_TMR_EN

#define CMD_TMR_EN   0b00000110

Timer enable command.

◆ CMD_WDT_DIS

#define CMD_WDT_DIS   0b00000101

Watchdog timer disable command.

◆ CMD_WDT_EN

#define CMD_WDT_EN   0b00000111

Watchdog timer enable command.

◆ OP_CMD

#define OP_CMD   0b100

◆ OP_RD_MOD_WR

#define OP_RD_MOD_WR   0b101

◆ OP_READ

#define OP_READ   0b110

◆ OP_WRITE

#define OP_WRITE   0b101