Module command

Source
Expand description

Command to control LCD

Structs§

Command
A sender should parse a Command and send the data to hardware to write/read data to/from hardware.

Enums§

Bits
Bits defines current command’s data width.
Most of the command should be 8 bit long, but fisrt command in DataWidth::Bit4 mode is special, it requires 4 bit data.
CommandSet
It contain all commands from LCD1602 datasheet
DataWidth
DataWidth defines data width of a Command
Should match current Sender’s pin config
Font
Font is current display font
LineMode
LineMode is current LCD display line count
MoveDirection
MoveDirection defines the cursor and display window move direction
RAMType
RAMType is the type of memory to access
ReadWriteOp
ReadWriteOp defines read/write operation that driver interact with.
A sender should change its “RW” pin state based on this variant.
RegisterSelection
RegisterSelection defines LCD1602’s register type that driver interact with.
A sender should change its “RS” pin state based on this variant.
ShiftType
ShiftType defines the movement is cursor only or both cursor and display window
State
State defines a On/Off state