|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Memory bank interface class for basic memory communication with iButtons (or 1-Wire devices). This class should be implemented for each memory bank type.
Method Summary | |
java.lang.String |
getBankDescription()
Query to see get a string description of the current memory bank. |
int |
getSize()
Query to get the size of the memory bank in bytes. |
int |
getStartPhysicalAddress()
Query to get the starting physical address of this bank. |
boolean |
isGeneralPurposeMemory()
Query to see if the current memory bank is general purpose user memory. |
boolean |
isNonVolatile()
Query to see if current memory bank non-volatile. |
boolean |
isReadOnly()
Query to see if current memory bank is read only. |
boolean |
isReadWrite()
Query to see if current memory bank is read/write. |
boolean |
isWriteOnce()
Query to see if current memory bank is write write once such as with EPROM technology. |
boolean |
needsPowerDelivery()
Query to see if current memory bank pages need the adapter to have a 'PowerDelivery' feature in order to write to the memory. |
boolean |
needsProgramPulse()
Query to see if current memory bank pages need the adapter to have a 'ProgramPulse' in order to write to the memory. |
void |
read(int startAddr,
boolean readContinue,
byte[] readBuf,
int offset,
int len)
Read memory in the current bank with no CRC checking (device or data). |
void |
setWriteVerification(boolean doReadVerf)
Set the write verification for the 'write()' method. |
void |
write(int startAddr,
byte[] writeBuf,
int offset,
int len)
Write memory in the current bank. |
Method Detail |
public java.lang.String getBankDescription()
public boolean isGeneralPurposeMemory()
public int getSize()
public boolean isReadWrite()
public boolean isWriteOnce()
public boolean isReadOnly()
public boolean isNonVolatile()
public boolean needsProgramPulse()
public boolean needsPowerDelivery()
public int getStartPhysicalAddress()
public void setWriteVerification(boolean doReadVerf)
doReadVerf
- true (default) verify write in 'write'
false, don't verify write (used on
Write-Once bit manipulation)public void read(int startAddr, boolean readContinue, byte[] readBuf, int offset, int len) throws OneWireIOException, OneWireException
startAddr
- starting addressreadContinue
- if 'true' then device read is continued without
re-selecting. This can only be used if the new
read() continious where the last one led off
and it is inside a 'beginExclusive/endExclusive'
block.readBuf
- byte array to place read data intooffset
- offset into readBuf to place datalen
- length in bytes to readOneWireIOException
- OneWireException
- public void write(int startAddr, byte[] writeBuf, int offset, int len) throws OneWireIOException, OneWireException
startAddr
- starting addresswriteBuf
- byte array containing data to writeoffset
- offset into writeBuf to get datalen
- length in bytes to writeOneWireIOException
- OneWireException
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |