|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.dalsemi.system.DataPort
This class allows byte wide reads and writes to memory mapped IO.
| Field Summary | |
static byte |
CE0
|
static byte |
CE1
|
static byte |
CE2
|
static byte |
CE3
|
int |
latchValue
|
int |
offset
|
static byte |
PCE0
|
static byte |
PCE1
|
static byte |
PCE2
|
static byte |
PCE3
|
static byte |
STRETCH10
|
static byte |
STRETCH11
|
static byte |
STRETCH12
|
static byte |
STRETCH2
|
static byte |
STRETCH3
|
static byte |
STRETCH4
|
static byte |
STRETCH5
|
static byte |
STRETCH9
|
byte |
stretchCycles
|
| Constructor Summary | |
DataPort(byte chipSelect)
Create a DataPort object using the chip select specified. |
|
| Method Summary | |
int |
getOffset()
Get the offset for read/write. |
int |
getStretchCycles()
Get the MOVX stretch cycles for read/write. |
int |
read()
Read a single byte |
int |
read(byte[] arr,
int off,
int len)
Read bytes into an array. |
int |
readLatch()
Read the current latch value. |
void |
setOffset(int off)
Set the offset for read/write. |
void |
setStretchCycles(byte stretch)
Set the MOVX stretch cycles for read/write. |
void |
write(byte[] arr,
int off,
int len)
Write an array of bytes. |
void |
write(int value)
Write a single byte. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
public static final byte CE0
public static final byte CE1
public static final byte CE2
public static final byte CE3
public static final byte PCE0
public static final byte PCE1
public static final byte PCE2
public static final byte PCE3
public static final byte STRETCH2
public static final byte STRETCH3
public static final byte STRETCH4
public static final byte STRETCH5
public static final byte STRETCH9
public static final byte STRETCH10
public static final byte STRETCH11
public static final byte STRETCH12
public int offset
public int latchValue
public byte stretchCycles
| Constructor Detail |
public DataPort(byte chipSelect)
chipSelect - Descriptor of chip select to use.| Method Detail |
public int readLatch()
public int read()
public int read(byte[] arr,
int off,
int len)
arr - Array of bytesoff - Starting offset to read intolen - Length to readpublic void write(int value)
value - Single byte to write
public void write(byte[] arr,
int off,
int len)
arr - Array of bytesoff - Starting offset to sendlen - Length to sendpublic void setOffset(int off)
off - Offsetpublic int getOffset()
public void setStretchCycles(byte stretch)
throws java.io.IOException
stretch - Stretch cycle value.public int getStretchCycles()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||