MKM34Z256VLx7 Bare Metal Software Drivers  R4.1.6
Reference Manual
XBAR Configuration Structures

Overview

This section describes default configuration structures for XBAR module. Create a new configuration structure if default ones don't initialize on-chip peripheral in required operating mode (see Creating Configuration Structure).

Macros

#define XBAR_MODULE_NO_EDGE_DETECT_CONFIG
 Edge detection on the respective XBAR_DMAx output channel disabled. Interrupt and DMA disabled on the peripheral level. More...
 
#define XBAR_MODULE_POSEDGE_DETECT_CONFIG
 Enabled rising edge detection on the respective XBAR_DMAx output channel. Interrupt enabled but DMA disabled on the peripheral level. More...
 
#define XBAR_MODULE_NEGEDGE_DETECT_CONFIG
 Enabled falling edge detection on the respective XBAR_DMAx output channel. Interrupt enabled but DMA disabled on the peripheral level. More...
 
#define XBAR_MODULE_ANYEDGE_DETECT_CONFIG
 Enabled rising and falling edge detection on the respective XBAR_DMAx output channel. Interrupt enabled but DMA disabled on the peripheral level. More...
 

Macro Definition Documentation

#define XBAR_MODULE_NO_EDGE_DETECT_CONFIG
Value:
(tXBAR){ \
/* CTRL */ SET(XBAR_CTRL0_EDGE0(0x00))|CLR(XBAR_CTRL0_IEN0_MASK)| \
/* ..... */ CLR(XBAR_CTRL0_DEN0_MASK), \
}

Edge detection on the respective XBAR_DMAx output channel disabled. Interrupt and DMA disabled on the peripheral level.

#define XBAR_MODULE_POSEDGE_DETECT_CONFIG
Value:
(tXBAR){ \
/* CTRL */ SET(XBAR_CTRL0_EDGE0(0x01))|SET(XBAR_CTRL0_IEN0_MASK)| \
/* ..... */ CLR(XBAR_CTRL0_DEN0_MASK), \
}

Enabled rising edge detection on the respective XBAR_DMAx output channel. Interrupt enabled but DMA disabled on the peripheral level.

#define XBAR_MODULE_NEGEDGE_DETECT_CONFIG
Value:
(tXBAR){ \
/* CTRL */ SET(XBAR_CTRL0_EDGE0(0x02))|SET(XBAR_CTRL0_IEN0_MASK)| \
/* ..... */ CLR(XBAR_CTRL0_DEN0_MASK), \
}

Enabled falling edge detection on the respective XBAR_DMAx output channel. Interrupt enabled but DMA disabled on the peripheral level.

#define XBAR_MODULE_ANYEDGE_DETECT_CONFIG
Value:
(tXBAR){ \
/* CTRL */ SET(XBAR_CTRL0_EDGE0(0x03))|SET(XBAR_CTRL0_IEN0_MASK)| \
/* ..... */ CLR(XBAR_CTRL0_DEN0_MASK), \
}

Enabled rising and falling edge detection on the respective XBAR_DMAx output channel. Interrupt enabled but DMA disabled on the peripheral level.