|
1-Wire API for .NET Version 4.00
|
Memory bank class for the Scratchpad section of NVRAM iButtons and 1-Wire devices. More...
Inherits com::dalsemi::onewire::container::MemoryBankScratchEx.
Inherited by MemoryBankScratchSHA.
Public Member Functions | |
| MemoryBankScratchCRC (OneWireContainer ibutton) | |
| Memory bank contstuctor. | |
| void | readPageCRC (int page, boolean readContinue, byte[] readBuf, int offset) throws OneWireIOException, OneWireException |
| Read a complete memory page with CRC verification provided by the device. | |
| void | readPageCRC (int page, boolean readContinue, byte[] readBuf, int offset, byte[] extraInfo) throws OneWireIOException, OneWireException |
| Read a complete memory page with CRC verification provided by the device with extra information. | |
| void | readScratchpad (byte[] readBuf, int offset, int len, byte[] extraInfo) throws OneWireIOException, OneWireException |
| Read the scratchpad page of memory from a NVRAM device This method reads and returns the entire scratchpad after the byte offset regardless of the actual ending offset. | |
Memory bank class for the Scratchpad section of NVRAM iButtons and 1-Wire devices.
| MemoryBankScratchCRC | ( | OneWireContainer | ibutton | ) |
Memory bank contstuctor.
Requires reference to the OneWireContainer this memory bank resides on.
| void readPageCRC | ( | int | page, |
| boolean | readContinue, | ||
| byte[] | readBuf, | ||
| int | offset | ||
| ) | throws OneWireIOException, OneWireException |
Read a complete memory page with CRC verification provided by the device.
Not supported by all devices. See the method 'hasPageAutoCRC()'.
| page | page number to read |
| readContinue | if 'true' then device read is continued without re-selecting. This can only be used if the new readPagePacket() continious where the last one stopped and it is inside a 'beginExclusive/endExclusive' block. |
| readBuf | byte array to put data read. Must have at least 'getMaxPacketDataLength()' elements. |
| offset | offset into readBuf to place data |
| OneWireIOException | |
| OneWireException |
Reimplemented from MemoryBankScratch.
| void readPageCRC | ( | int | page, |
| boolean | readContinue, | ||
| byte[] | readBuf, | ||
| int | offset, | ||
| byte[] | extraInfo | ||
| ) | throws OneWireIOException, OneWireException |
Read a complete memory page with CRC verification provided by the device with extra information.
Not supported by all devices. See the method 'hasPageAutoCRC()'. See the method 'hasExtraInfo()' for a description of the optional extra information.
| page | page number to read |
| readContinue | if 'true' then device read is continued without re-selecting. This can only be used if the new readPagePacket() continious where the last one stopped and it is inside a 'beginExclusive/endExclusive' block. |
| readBuf | byte array to put data read. Must have at least 'getMaxPacketDataLength()' elements. |
| offset | offset into readBuf to place data |
| extraInfo | byte array to put extra info read into |
| OneWireIOException | |
| OneWireException |
Reimplemented from MemoryBankScratch.
| void readScratchpad | ( | byte[] | readBuf, |
| int | offset, | ||
| int | len, | ||
| byte[] | extraInfo | ||
| ) | throws OneWireIOException, OneWireException |
Read the scratchpad page of memory from a NVRAM device This method reads and returns the entire scratchpad after the byte offset regardless of the actual ending offset.
| readBuf | byte array to place read data into length of array is always pageLength. |
| offset | offset into readBuf to pug data |
| len | length in bytes to read |
| extraInfo | byte array to put extra info read into (TA1, TA2, e/s byte) length of array is always extraInfoLength. Can be 'null' if extra info is not needed. |
| OneWireIOException | |
| OneWireException |
Reimplemented from MemoryBankScratch.
1.7.3