SunSPOT API V5.0


com.sun.spot.flashmanagement
Interface IAddressableNorFlashSector

All Known Implementing Classes:
NorFlashSector

public interface IAddressableNorFlashSector

IAddressableNorFlashSector extends INorFlashSector to support the ability to assign virtual memory addresses to sectors.


Method Summary
 void erase()
           
 void getBytes(int memoryOffset, byte[] buffer, int bufferOffset, int length)
           
 int getSectorNumber()
           
 int getSize()
           
 int getStartAddressAsInt()
           
 int getVirtualStartAddressAsInt()
           
 void setBytes(int memoryOffset, byte[] buffer, int bufferOffset, int length)
           
 void setVirtualAddress(int virtualAddress)
          Set the virtual memory address associated with this sector.
 

Method Detail

setVirtualAddress

void setVirtualAddress(int virtualAddress)
Set the virtual memory address associated with this sector.

Parameters:
virtualAddress - The new virtual memory address

getVirtualStartAddressAsInt

int getVirtualStartAddressAsInt()
Returns:
The virtual address associated with this sector.

getSectorNumber

int getSectorNumber()
Returns:
The unique sector number associated with this sector.

getStartAddressAsInt

int getStartAddressAsInt()
Returns:
The physical memory address of the start of this sector.

getSize

int getSize()

getBytes

void getBytes(int memoryOffset,
              byte[] buffer,
              int bufferOffset,
              int length)

erase

void erase()

setBytes

void setBytes(int memoryOffset,
              byte[] buffer,
              int bufferOffset,
              int length)

SunSPOT API V5.0


Copyright � 2006-2008 Sun Microsystems, Inc. All Rights Reserved.