|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.wagner_ibw.iow.lcd.LCDImpl
This is the implementation of the LCD special mode function. It supports only single controler LCD display.
Field Summary |
Fields inherited from interface de.wagner_ibw.iow.SpecialModeFunction |
SMF_CPS_ID, SMF_I2C_ID, SMF_LCD_ID, SMF_LED_ID, SMF_RC5_ID, SMF_SMX_ID, SMF_SPI_ID |
Constructor Summary | |
LCDImpl()
|
Method Summary | |
void |
check()
Prüft die korrekte Anzeige. |
java.lang.String |
checkCompatibility(int id,
int rev,
int specialModes)
Checks if it is possible to activate this special mode function. |
long |
clearLCD()
OK Clears entire dislplay and sets DDRAM address 0 in address counter. |
int |
getCols()
|
int[] |
getDisableReport()
Returns the report that disables the special mode function. |
int[] |
getEnableReport()
Returns the report that enables the special mode function. |
int[] |
getIowSpecialBits(int deviceIdentifier)
Returns an array of bitmask(s) for port 0...1 or 0...3 if this special mode function runs on this iow device. |
java.lang.String |
getName()
Returns the name of the special mode function. |
int[] |
getReportIds()
Returns the report id(s) which the implementation is interested in. |
int |
getRows()
|
int |
getSpecialModeFuncionId()
Returns the special mode function id for this implementation. |
boolean |
matchReportId(int reportId)
Checks if this implementation is interested in this report. |
void |
moveSprite(int row,
java.lang.String[] sprites,
int wait)
|
void |
reportReceived(int[] readBuffer)
Callback method is called when a matching report was received. |
long |
setCGRAMAddr(int address)
Set DDRAM address Parameters: Address - DDRAM address |
long |
setCursor(int row,
int col)
OK Moves cursor to new Position. |
long |
setCursorDispOn()
OK Convenient method: Turn LCD display on. |
long |
setCursorHome()
OK Sets DDRAM address 0 in address counter. |
long |
setCursorleft()
Move LCD cursor to the left |
long |
setCursorOff()
OK Convenient method: Turn LCD cursor off. |
long |
setCursorOn()
OK Convenient method: Turn LCD cursor on. |
long |
setCursorRight()
Move LCD cursor to the right |
long |
setDDRAMAddr(int address)
Set DDRAM address Parameters: Address - DDRAM address |
long |
setDisplayControl(boolean dispOn,
boolean cursorOn,
boolean charBlinking)
OK Sets ON/OFF of all display (dispOn), cursor ON/OFF (cursorOn), and blink of cursor position character (cursorBlink). |
long |
setDispOff()
OK Convenient method: Turn LCD display off. |
long |
setEntryMode(boolean moveForward,
boolean shiftDisp)
OK Sets cursor move direction and specifies display shift. |
void |
setIowDevice(AbstractIowDevice iow)
Sets the reference to the underlying iow device for write report operations. |
long |
setShiftControl(boolean shiftDisp,
boolean shiftDir)
OK Moves cursor and shifts display whitout changing DDRAM contents. |
void |
setSpecialChar(int code,
int[] pattern)
|
void |
writeLine(int row,
boolean clear,
java.lang.String str)
Write the given String in row specified by parm row. |
void |
writeLine(int row,
int col,
boolean clear,
java.lang.String str)
Write the given String in the specified row and column. |
void |
writeString(java.lang.String str)
OK Write the given string to LCD. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LCDImpl()
Method Detail |
public int getRows()
getRows
in interface LCD
public int getCols()
getCols
in interface LCD
public long clearLCD()
LCD
clearLCD
in interface LCD
public long setCursorHome()
LCD
setCursorHome
in interface LCD
public long setEntryMode(boolean moveForward, boolean shiftDisp)
LCD
setEntryMode
in interface LCD
moveForward
- true: increment, false: decrementshiftDisp
- true: display is shifted, false: display is not shifted
public long setDisplayControl(boolean dispOn, boolean cursorOn, boolean charBlinking)
LCD
setDisplayControl
in interface LCD
dispOn
- true: the display is on, false: display is offcursorOn
- true: cursor is displayed, false: cursor is not displayedcharBlinking
- true: the character indicated by the cursor blinks,
false: blinks not
public long setShiftControl(boolean shiftDisp, boolean shiftDir)
LCD
setShiftControl
in interface LCD
shiftDisp
- true: display shift, false: cursor move;shiftDir
- true: shift to the right, false: shift to the left
public void writeLine(int row, boolean clear, java.lang.String str) throws java.lang.IllegalArgumentException
LCD
writeLine
in interface LCD
row
- clear
- str
-
java.lang.IllegalArgumentException
public void writeLine(int row, int col, boolean clear, java.lang.String str) throws java.lang.IllegalArgumentException
LCD
writeLine
in interface LCD
row
- clear
- str
-
java.lang.IllegalArgumentException
public void writeString(java.lang.String str)
LCD
writeString
in interface LCD
str
- String to writepublic long setDDRAMAddr(int address)
setDDRAMAddr
in interface LCD
public long setCGRAMAddr(int address)
setCGRAMAddr
in interface LCD
public long setCursor(int row, int col) throws java.lang.IllegalArgumentException
setCursor
in interface LCD
row
- display line (1...4)col
- column in row (1...40)
java.lang.IllegalArgumentException
public long setCursorDispOn()
setCursorDispOn
in interface LCD
public long setDispOff()
setDispOff
in interface LCD
public long setCursorOn()
setCursorOn
in interface LCD
public long setCursorOff()
setCursorOff
in interface LCD
public long setCursorleft()
setCursorleft
in interface LCD
public long setCursorRight()
setCursorRight
in interface LCD
public void check()
LCD
check
in interface LCD
public void setSpecialChar(int code, int[] pattern) throws java.lang.IllegalArgumentException
setSpecialChar
in interface LCD
java.lang.IllegalArgumentException
public void moveSprite(int row, java.lang.String[] sprites, int wait) throws java.lang.IllegalArgumentException
moveSprite
in interface LCD
java.lang.IllegalArgumentException
public int[] getDisableReport()
SpecialModeFunction
getDisableReport
in interface SpecialModeFunction
public int[] getEnableReport()
SpecialModeFunction
getEnableReport
in interface SpecialModeFunction
public int[] getIowSpecialBits(int deviceIdentifier)
SpecialModeFunction
getIowSpecialBits
in interface SpecialModeFunction
deviceIdentifier
- Iow device identifier (AbstractIowDevice.IOW24ID or AbstractIowDevice.IOW40ID).
public int[] getReportIds()
SpecialModeFunction
getReportIds
in interface SpecialModeFunction
public int getSpecialModeFuncionId()
SpecialModeFunction
getSpecialModeFuncionId
in interface SpecialModeFunction
public boolean matchReportId(int reportId)
SpecialModeFunction
matchReportId
in interface SpecialModeFunction
reportId
- Report id of the received report.
public void reportReceived(int[] readBuffer)
SpecialModeFunction
reportReceived
in interface SpecialModeFunction
readBuffer
- Read buffer from a received report.public void setIowDevice(AbstractIowDevice iow)
SpecialModeFunction
setIowDevice
in interface SpecialModeFunction
iow
- Instance of an iow device.public java.lang.String checkCompatibility(int id, int rev, int specialModes)
SpecialModeFunction
checkCompatibility
in interface SpecialModeFunction
id
- Id of the current iow device.rev
- Rev of the current iow device.specialModes
- Special modes from the current iow device.
public java.lang.String getName()
SpecialModeFunction
getName
in interface SpecialModeFunction
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |