|
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.proxy.ProxyDMAMemoryManager
public class ProxyDMAMemoryManager
Acts as a proxy for DMAMemoryManager in child isolates
Field Summary | |
---|---|
static String |
DMA_MEMORY_SERVER
|
Constructor Summary | |
---|---|
ProxyDMAMemoryManager()
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 |
Field Detail |
---|
public static final String DMA_MEMORY_SERVER
Constructor Detail |
---|
public ProxyDMAMemoryManager()
Method Detail |
---|
public Hashtable getAllocationDetails()
IDMAMemoryManager
getAllocationDetails
in interface IDMAMemoryManager
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 released
|
SunSPOT API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |