1-Wire API for .NET Version 4.00
Public Member Functions | Static Public Attributes

MemoryBankScratchSHA Class Reference

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

Inherits com::dalsemi::onewire::container::MemoryBankScratchCRC.

List of all members.

Public Member Functions

 MemoryBankScratchSHA (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.

Static Public Attributes

static final byte ERASE_SCRATCHPAD_COMMAND = ( byte ) 0xC3
 Erase Scratchpad Command.

Detailed Description

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

Version:
0.00, 28 Aug 2000
Author:
DS

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:
startAddrstarting address
writeBufbyte array containing data to write
offsetoffset into readBuf to place data
lenlength in bytes to write
Exceptions:
OneWireIOException
OneWireException

Reimplemented from MemoryBankScratchEx.


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