|
SunSPOT API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.spot.dmamemory.DMAMemoryManager
public class DMAMemoryManager
Manages a chunk of uncached memory to be used for DMA buffers - see IDMAMemoryManager
Constructor Summary | |
---|---|
DMAMemoryManager()
For use by the SPOT library only - to get a handle to a DMA Memory Manager use Spot.getInstance().getDMAMemoryManager() |
Method Summary | |
---|---|
Hashtable |
getAllocationDetails()
Get information about current memory allocations. |
int |
getBuffer(int size,
String comment)
Try to obtain memory for a DMA buffer. |
int |
getMaxAvailableBufferSize()
Find out the size of the biggest available DMA memory buffer |
void |
releaseBuffer(int memAddr)
Release a previously allocated buffer |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DMAMemoryManager()
Method Detail |
---|
public int getBuffer(int size, String comment) throws NotEnoughDMAMemoryException
IDMAMemoryManager
getBuffer
in interface IDMAMemoryManager
size
- The size of the required buffercomment
- A string that describes the usage (so we can tell who's using what)
NotEnoughDMAMemoryException
public int getMaxAvailableBufferSize()
IDMAMemoryManager
getMaxAvailableBufferSize
in interface IDMAMemoryManager
public void releaseBuffer(int memAddr)
IDMAMemoryManager
releaseBuffer
in interface IDMAMemoryManager
memAddr
- The address of the buffer being releasedpublic Hashtable getAllocationDetails()
IDMAMemoryManager
getAllocationDetails
in interface IDMAMemoryManager
|
SunSPOT API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |