MKMxxZxxACxx5 Bare Metal Software Drivers  R4.1.6
Reference Manual
XBAR API Specification

Overview

This section describes functions and macros of the driver's API.

Macros

#define XBAR_Path(inp, outmask)
 Sets XBAR output channels. More...
 
#define XBAR_EnableDMA()
 Enables DMA for XBAR_DMA output. More...
 
#define XBAR_Init(cfg, ip, callback)
 XBAR initialization. More...
 

Macro Definition Documentation

#define XBAR_Path (   inp,
  outmask 
)

This macro routes one of the following input channels XBAR Input Channels to one or more the following XBAR Output Channels.

Parameters
inpSelect one of the XBAR Input Channels.
outmaskSelect one or more OR'ed XBAR Output Channels.
Note
Implemented as an inline macro.
#define XBAR_EnableDMA ( )

This macro enables the DMA function for XBAR_DMAX output. Macros sets DEN0 (DMA enable bit) and clears IEN0 (interrupt enable bit).

Note
Implemented as an inline macro.
#define XBAR_Init (   cfg,
  ip,
  callback 
)

This function initializes Inter-Peripheral Crossbar Switch (XBAR) block. It also installs callback function for interrupt vector 47.

Parameters
cfgSelect one of the XBAR Configuration Structures.
ipSelect one of the ARM Cortex-M0+ Interrupt Priority Levels.
callbackPointer to the XBAR Callback Function.
Note
Implemented as a function call.