|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Memory bank interface for iButtons (or 1-Wire devices) that have one-time-programmable features. This class should be implemented for each applicable memory bank.
Method Summary | |
boolean |
canLockPage()
Query to see if current memory bank pages can be locked. |
boolean |
canLockRedirectPage()
Query to see if current memory bank pages can be locked from being redirected. |
boolean |
canRedirectPage()
Query to see if current memory bank pages can be redirected to another pages. |
boolean |
isPageLocked(int page)
Query to see if the specified page is locked. |
int |
isPageRedirected(int page)
Query to see if the specified page is redirected. |
boolean |
isRedirectPageLocked(int page)
Query to see if the specified page has redirection locked. |
void |
lockPage(int page)
Lock the specifed page in the current memory bank. |
void |
lockRedirectPage(int page)
Lock the redirection option for the specifed page in the current memory bank. |
void |
redirectPage(int page,
int newPage)
Redirect the specifed page in the current memory bank to a new page. |
Methods inherited from interface com.dalsemi.onewire.container.PagedMemoryBank |
getExtraInfoDescription, getExtraInfoLength, getMaxPacketDataLength, getNumberPages, getPageLength, hasPageAutoCRC, haveExtraInfo, readPage, readPage, readPageCRC, readPageCRC, readPagePacket, readPagePacket, writePagePacket |
Methods inherited from interface com.dalsemi.onewire.container.MemoryBank |
getBankDescription, getSize, getStartPhysicalAddress, isGeneralPurposeMemory, isNonVolatile, isReadOnly, isReadWrite, isWriteOnce, needsPowerDelivery, needsProgramPulse, read, setWriteVerification, write |
Method Detail |
public boolean canRedirectPage()
public boolean canLockPage()
public boolean canLockRedirectPage()
public void lockPage(int page) throws OneWireIOException, OneWireException
page
- number of page to lockOneWireIOException
- OneWireException
- public boolean isPageLocked(int page) throws OneWireIOException, OneWireException
page
- number of page to see if lockedOneWireIOException
- OneWireException
- public void redirectPage(int page, int newPage) throws OneWireIOException, OneWireException
page
- number of page to redirectnewPage
- new page number to redirect toOneWireIOException
- OneWireException
- public int isPageRedirected(int page) throws OneWireIOException, OneWireException
page
- number of page check for redirectionOneWireIOException
- OneWireException
- public void lockRedirectPage(int page) throws OneWireIOException, OneWireException
page
- number of page to redirectOneWireIOException
- OneWireException
- public boolean isRedirectPageLocked(int page) throws OneWireIOException, OneWireException
page
- number of page check for locked redirectionOneWireIOException
- OneWireException
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |