MKM34Z256VLx7 Bare Metal Software Drivers  R4.1.6
Reference Manual
MMAU API Specification

Overview

This section describes software driver Application Programming Interfaces (API).

Macros

#define MMAU_EnableDMA(mode)
 DMA request enable/disable. More...
 
#define MMAU_SetAccess(mode)
 Sets CPU/DMA access to MMAU Operand, Accumulator and Control/Status registers. More...
 
#define MMAU_GetInstrFlags()
 Get instruction result flags. More...
 
#define MMAU_WriteInstrFlags(mask)
 Write instruction result flags. More...
 
#define MMAU_GetIntFlags()
 Get interrupt flags. More...
 
#define MMAU_ClrIntFlags(mask)
 Clear interrupt flags. More...
 
#define MMAU_StoreState()
 Store MMAU internal state to the software stack. More...
 
#define MMAU_RestoreState()
 Restore MMAU internal state from the software stack. More...
 
#define MMAU_InstallCallback(cfg, ip, callback)
 Installs callback function for MMAU interrupt vector 36. More...
 

Macro Definition Documentation

#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
modeEnable (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
modeSupervisor Mode (true) or both User and Supervisor Modes (false).
#define MMAU_GetInstrFlags ( )

Call MMAU_GetInstrFlags macro to get instruction result flags.

Returns
uint32 MMAU Instruction Result Flags.
See also
MMAU_WriteInstrFlags.
#define MMAU_WriteInstrFlags (   mask)

Call MMAU_WriteInstrFlags macro to write instruction result flags.

Parameters
maskSelect one or more OR'ed MMAU Instruction Result Flags.
See also
MMAU_GetInstrFlags.
#define MMAU_GetIntFlags ( )

Call MMAU_GetIntFlags macro to get interrupt flags.

Returns
uint32 MMAU Interrupt Flags.
See also
MMAU_ClrIntFlags.
#define MMAU_ClrIntFlags (   mask)

Call MMAU_ClrIntFlags macro to clear interrupt flags.

Parameters
maskSelect one or more OR'ed MMAU Interrupt Flags.
See also
MMAU_GetIntFlags.
#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
cfgSelect one of the MMAU Interrupt Configurations.
ipSelect one of the Select one of the ARM Cortex-M0+ Interrupt Priority Levels.
callbackPointer to the MMAU Callback Function.
Note
Implemented as a function call.