MemoryBankScratchEx Class Reference

Inherits com::dalsemi::onewire::container::MemoryBankScratch.

Inherited by MemoryBankScratchCRC, MemoryBankScratchCRCPW, and MemoryBankScratchSHAEE.

List of all members.


Detailed Description

Memory bank class for the Scratchpad section of NVRAM iButtons and 1-Wire devices.

Version:
0.00, 28 Aug 2000
Author:
DS

Public Member Functions

 MemoryBankScratchEx (OneWireContainer ibutton)
 Memory bank contstuctor.
void writeScratchpad (int startAddr, byte[] writeBuf, int offset, int len) throws OneWireIOException, OneWireException
 Write to the scratchpad page of memory a NVRAM device.
void copyScratchpad (int startAddr, int len) throws OneWireIOException, OneWireException
 Copy the scratchpad page to memory.

Constructor & Destructor Documentation

Memory bank contstuctor.

Requires reference to the OneWireContainer this memory bank resides on.


Member Function Documentation

void writeScratchpad ( int  startAddr,
byte[]  writeBuf,
int  offset,
int  len 
) throws OneWireIOException, OneWireException

Write to the scratchpad page of memory a NVRAM device.

Parameters:
startAddr starting address
writeBuf byte array containing data to write
offset offset into readBuf to place data
len length in bytes to write
Exceptions:
OneWireIOException 
OneWireException 

Reimplemented from MemoryBankScratch.

Reimplemented in MemoryBankScratchCRCPW, MemoryBankScratchSHA, and MemoryBankScratchSHAEE.

void copyScratchpad ( int  startAddr,
int  len 
) throws OneWireIOException, OneWireException

Copy the scratchpad page to memory.

Parameters:
startAddr starting address
len length in bytes that was written already
Exceptions:
OneWireIOException 
OneWireException 

Reimplemented from MemoryBankScratch.

Reimplemented in MemoryBankScratchCRCPW, and MemoryBankScratchSHAEE.


The documentation for this class was generated from the following file:

Generated on Thu Aug 28 15:42:33 2008 for 1-Wire API for .NET by  doxygen 1.5.6