Wugen_applyMasks() // module-wide |
|
This function takes an array of 3 integers and applies the specified
mask to the WUGEN interrupt mask registers. If the bit in the mask is
enabled, the corresponding interrupt in the WUGEN will be blocked
Void Wugen_applyMasks(UInt32 mask[]);
ARGUMENTS
mask
array of three integers for applying to the WUGEN
interrupt mask register.
First mask consists of IRQ 0-31
Second mask consists of IRQ 32-47
Third mask consists of DMA requests
Wugen_disableDma() // module-wide |
|
Disables the specified DMA source in the WUGEN
Void Wugen_disableDma(UInt dmaid);
ARGUMENTS
dmaid
the DMA id for a particular EDMA source.
Wugen_disableEvent() // module-wide |
|
Disables the specified interrupt event source in the WUGEN
Void Wugen_disableEvent(UInt eventid);
ARGUMENTS
eventid
the event number of an interrupt source
Wugen_enableDma() // module-wide |
|
Enables the specified DMA source in the WUGEN
Void Wugen_enableDma(UInt dmaid);
ARGUMENTS
dmaid
the DMA id for a particular EDMA source.
Wugen_enableEvent() // module-wide |
|
Enables the specified interrupt event source in the WUGEN
Void Wugen_enableEvent(UInt eventid);
ARGUMENTS
eventid
the event number of an interrupt source
Wugen_getMasks() // module-wide |
|
This function returns the WUGEN interrupt mask registers
Void Wugen_getMasks(UInt32 mask[]);
ARGUMENTS
mask
array of three integers used to return the WUGEN
interrupt mask registers
First mask consists of IRQ 0-31
Second mask consists of IRQ 32-47
Third mask consists of DMA requests
Wugen_ierToMasks() // module-wide |
|
Compute the WUGEN masks needed to allow the interrupts set in the IER
register to propagate through the WUGEN. This function does not enable
external DMA requests. You must set these explicitly to configure a
DMA request as a wakeup event
Void Wugen_ierToMasks(UInt32 mask[]);
ARGUMENTS
mask
array of three integers for returning WUGEN masks.
First mask consists of IRQ 0-31
Second mask consists of IRQ 32-47
Third mask consists of DMA requests
Module-Wide Built-Ins |
|
// Get this module's unique id
Bool Wugen_Module_startupDone();
// Test if this module has completed startup
// The heap from which this module allocates memory
Bool Wugen_Module_hasMask();
// Test whether this module has a diagnostics mask
Bits16 Wugen_Module_getMask();
// Returns the diagnostics mask for this module
Void Wugen_Module_setMask(Bits16 mask);
// Set the diagnostics mask for this module