|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.wagner_ibw.iow.lcd.AbstractLCD
This is the interface for using alpha numerical LCD.
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 | |
AbstractLCD()
|
Method Summary | |
abstract void |
check()
Shows a test pattern on display. |
abstract java.lang.String |
checkCompatibility(int id,
int rev,
int specialModes)
Checks if it is possible to activate this special mode function. |
abstract void |
clearLCD()
Clears entire dislplay and sets DDRAM address 0 in address counter. |
int |
getCols()
|
abstract int[] |
getDisableReport()
Returns the report that disables the special mode function. |
abstract int[] |
getEnableReport()
Returns the report that enables the special mode function. |
abstract int[] |
getIowSpecialBits(int deviceIdentifier)
Returns an array of bitmask(s) for port 0...1, 0...3 or 0...6 if this special mode function runs on this iow device. |
abstract java.lang.String |
getName()
Returns the name of the special mode function. |
abstract int[] |
getReportIds()
Returns the report id(s) which the implementation is interested in. |
int |
getRows()
|
abstract int |
getSpecialModeFuncionId()
Returns the special mode function id for this implementation. |
abstract boolean |
matchReportId(int reportId)
Checks if this implementation is interested in this report. |
abstract void |
moveSprite(int row,
java.lang.String[] sprites,
int wait)
|
abstract void |
reportReceived(int[] readBuffer)
Callback method is called when a matching report was received. |
abstract void |
setCursor(int row,
int col)
Moves cursor to new Position. |
abstract void |
setCursorDispOn()
Convenient method: Turn LCD display on. |
abstract void |
setCursorHome()
Sets DDRAM address 0 in address counter. |
abstract void |
setCursorleft()
Move LCD cursor to the left |
abstract void |
setCursorOff()
Convenient method: Turn LCD cursor off. |
abstract void |
setCursorOn()
Convenient method: Turn LCD cursor on. |
abstract void |
setCursorRight()
Move LCD cursor to the right |
abstract void |
setDisplayControl(boolean dispOn,
boolean cursorOn,
boolean charBlinking)
Sets ON/OFF of all display (dispOn), cursor ON/OFF (cursorOn), and blink of cursor position character (cursorBlink). |
abstract void |
setDispOff()
Convenient method: Turn LCD display off. |
abstract void |
setEntryMode(boolean moveForward,
boolean shiftDisp)
Sets cursor move direction and specifies display shift. |
abstract void |
setIowDevice(AbstractIowDevice iow)
Sets the reference to the underlying iow device for write report operations. |
abstract void |
setShiftControl(boolean shiftDisp,
boolean shiftDir)
Moves cursor and shifts display whitout changing DDRAM contents. |
abstract void |
setSpecialChar(int code,
int[] pattern)
Sets a special char in CGRAM. |
abstract void |
writeLine(int row,
boolean clear,
java.lang.String str)
Write the given String in row specified by parm row. |
abstract void |
writeLine(int row,
int col,
boolean clear,
java.lang.String str)
Write the given String in the specified row and column. |
abstract void |
writeString(java.lang.String str)
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 AbstractLCD()
Method Detail |
public int getRows()
public int getCols()
public abstract void clearLCD()
public abstract void setCursorHome()
public abstract void setEntryMode(boolean moveForward, boolean shiftDisp)
moveForward
- true: increment, false: decrementshiftDisp
- true: display is shifted, false: display is not shiftedpublic abstract void setDisplayControl(boolean dispOn, boolean cursorOn, boolean charBlinking)
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 notpublic abstract void setShiftControl(boolean shiftDisp, boolean shiftDir)
shiftDisp
- true: display shift, false: cursor move;shiftDir
- true: shift to the right, false: shift to the leftpublic abstract void writeLine(int row, boolean clear, java.lang.String str) throws java.lang.IllegalArgumentException
row
- clear
- str
-
java.lang.IllegalArgumentException
public abstract void writeLine(int row, int col, boolean clear, java.lang.String str) throws java.lang.IllegalArgumentException
row
- clear
- str
-
java.lang.IllegalArgumentException
public abstract void writeString(java.lang.String str)
str
- String to writepublic abstract void setCursor(int row, int col) throws java.lang.IllegalArgumentException
row
- display line (1...4)col
- column in row (1...40)
java.lang.IllegalArgumentException
public abstract void setCursorDispOn()
public abstract void setDispOff()
public abstract void setCursorOn()
public abstract void setCursorOff()
public abstract void setCursorleft()
public abstract void setCursorRight()
public abstract void check()
public abstract void setSpecialChar(int code, int[] pattern) throws java.lang.IllegalArgumentException
code
- pattern
-
java.lang.IllegalArgumentException
public abstract void moveSprite(int row, java.lang.String[] sprites, int wait) throws java.lang.IllegalArgumentException
row
- sprites
- wait
-
java.lang.IllegalArgumentException
public abstract java.lang.String checkCompatibility(int id, int rev, int specialModes)
SpecialModeFunction
checkCompatibility
in interface SpecialModeFunction
id
- Id of the current IO-Warrior device.rev
- Rev of the current IO-Warrior device.specialModes
- Special modes from the current IO-Warrior device.
public abstract int[] getDisableReport()
SpecialModeFunction
getDisableReport
in interface SpecialModeFunction
public abstract int[] getEnableReport()
SpecialModeFunction
getEnableReport
in interface SpecialModeFunction
public abstract int[] getIowSpecialBits(int deviceIdentifier)
SpecialModeFunction
getIowSpecialBits
in interface SpecialModeFunction
deviceIdentifier
- Iow device identifier (AbstractIowDevice.IOW24ID<(code>,
AbstractIowDevice.IOW24ID
or AbstractIowDevice.IOW56ID
).
- Returns:
- Array of int that contains bitmask(s) for special mode function bits.
public abstract java.lang.String getName()
SpecialModeFunction
getName
in interface SpecialModeFunction
public abstract int[] getReportIds()
SpecialModeFunction
getReportIds
in interface SpecialModeFunction
public abstract int getSpecialModeFuncionId()
SpecialModeFunction
getSpecialModeFuncionId
in interface SpecialModeFunction
public abstract boolean matchReportId(int reportId)
SpecialModeFunction
matchReportId
in interface SpecialModeFunction
reportId
- Report id of the received report.
public abstract void reportReceived(int[] readBuffer)
SpecialModeFunction
reportReceived
in interface SpecialModeFunction
readBuffer
- Read buffer from a received report.public abstract void setIowDevice(AbstractIowDevice iow)
SpecialModeFunction
setIowDevice
in interface SpecialModeFunction
iow
- Instance of an iow device.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |