MCUXpresso SDK API Reference Manual  Rev 2.16.000
NXP Semiconductors
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
XBARB: Inter-Peripheral Crossbar Switch Driver

Overview

This document consists of sections titled with Driver Overview, Data Structures, Enumerations, Functions, etc., each with an overview list and detailed documentation. It is recommended to read the Driver Overview first for it includes a comprehensive description of the peripheral, driver and driver changes. Other sections give detailed information for APIs, enums, macros, etc., for your further reference.

Modules

 The Driver Change Log
 The current XBARB driver version is 2.0.0.
 
 XBARB Peripheral and Driver Overview
 Content including 1) features; 2) driver design logic and use method; 3) typical use case.
 

Macros

#define XBARB_SELx(base, output)   (((volatile uint16_t *)(&((base)->SEL0)))[(uint8_t)(output) >> 0x01U])
 Macro function to extract the XBAR select register address for a given xbar output signal.
 
#define XBARB_SELx_SELn_SHIFT(output)   ((output & 0x01U) ? 8U : 0U)
 Macro function to get SELn field shift in XBARB_SELx register for a given output signal.
 
#define XBARB_SELx_SELn_MASK(output)   ((output & 0x01U) ? 0x3F00U : 0x3FU)
 Macro function to get SELn field mask in XBARB_SELx register for a given output signal.
 
#define XBARB_SELx_SELn(output, input_signal)   (((uint16_t)(((uint16_t)(input_signal)) << XBARB_SELx_SELn_SHIFT(output))) & XBARB_SELx_SELn_MASK(output))
 Macro function to create SELn field value in XBARB_SELx register for given output signal and input signal value input_signal, see xbar_input_signal_t.
 

Driver version

#define FSL_XBARB_DRIVER_VERSION   (MAKE_VERSION(2, 0, 0))
 XBARB driver version. More...
 

XBARB functional Operation.

void XBARB_Init (XBARB_Type *base)
 Initializes an XBARB instance for operation. More...
 
void XBARB_Deinit (XBARB_Type *base)
 Deinitializes an XBARB instance for operation. More...
 

XBARB output signal configuration Interfaces

void XBARB_SetSignalsConnection (XBARB_Type *base, xbar_input_signal_t eInput, xbar_output_signal_t eOutput)
 brief Configures a connection between the selected XBARB_IN[*] input and the XBARB_OUT[*] output signal. More...
 

Macro Definition Documentation

#define FSL_XBARB_DRIVER_VERSION   (MAKE_VERSION(2, 0, 0))

Function Documentation

void XBARB_Init ( XBARB_Type *  base)

Reserved function, enable clock preparation.

Parameters
baseXBARB peripheral address.
void XBARB_Deinit ( XBARB_Type *  base)

Reserved function, disable clock preparation.

Parameters
baseXBARB peripheral address.
void XBARB_SetSignalsConnection ( XBARB_Type *  base,
xbar_input_signal_t  eInput,
xbar_output_signal_t  eOutput 
)

This function configures which XBARB input is connected to the selected XBARB output. If more than one XBARB module is available, only the inputs and outputs from the same module can be connected.

param base XBARB peripheral address. param eInput XBARB input signal. param eOutput XBARB output signal.