This section describes software driver Application Programming Interfaces (API).
#define MMAU_EnableDMA |
( |
|
mode | ) |
|
Call MMAU_EnableDMA macro to configure MMAU to allow (true) or prevent (false) the DMA request to fetch the result and program new computation instruction.
- Parameters
-
mode | Enable (true) or disable (false) DMA request generation. |
#define MMAU_SetAccess |
( |
|
mode | ) |
|
Call MMAU_SetAccess macro to set CPU/DMA access mode to MMAU Operand, Accumulator and Control/Status registers. MMAU registers can either be accessed in Supervisor Mode (true) or in both User and Supervisor Modes (false). In Supervisor Mode, when CPU/DMA access registers in User Mode, MMAU will terminate the access with an bus error.
- Parameters
-
mode | Supervisor Mode (true) or both User and Supervisor Modes (false). |
#define MMAU_GetInstrFlags |
( |
| ) |
|
#define MMAU_WriteInstrFlags |
( |
|
mask | ) |
|
#define MMAU_GetIntFlags |
( |
| ) |
|
#define MMAU_ClrIntFlags |
( |
|
mask | ) |
|
#define MMAU_StoreState |
( |
| ) |
|
The MMAU_StoreState function stores MMAU internal state including operand, accumulator and control/status registers to the software stack.
- Note
- Call this function at entry point of any interrupt service routine which uses MMAU API Specification. At the exit of such interrupt service routine you should call MMAU_RestoreState function.
- See also
- MMAU_RestoreState
#define MMAU_RestoreState |
( |
| ) |
|
The MMAU_RestoreState function restores MMAU internal state including operand, accumulator and control/status registers from the software stack.
- Note
- Call this function at exit of any interrupt service routine which uses MMAU API Specification. At entry point of such interrupt service routine you should call MMAU_StoreState function.
- See also
- MMAU_StoreState
#define MMAU_InstallCallback |
( |
|
cfg, |
|
|
|
ip, |
|
|
|
callback |
|
) |
| |
This function installs callback function for MMAU interrupt vector 30.
- Parameters
-
- Note
- Implemented as a function call.