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

Overview

The MCUXpresso SDK provides a peripheral driver for the Inter-Peripheral Crossbar Switch (XBARB) block of MCUXpresso SDK devices.

The XBARB peripheral driver configures the XBARB (Inter-Peripheral Crossbar Switch) and handles initialization and configuration of the XBARB module.

XBARB driver has two parts:

Function groups

XBARB Initialization

To initialize the XBARB driver, a state structure has to be passed into the initialization function. This block of memory keeps pointers to user's callback functions and parameters to these functions. The XBARB module is initialized by calling the XBARB_Init() function.

Call diagram

  1. Call the "XBARB_Init()" function to initialize the XBARB module.
  2. Optionally, call the "XBARB_SetSignalsConnection()" function to Set connection between the selected XBARB_IN[*] input and the XBARB_OUT[*] output signal. It connects the XBARB input to the selected XBARB output. A configuration structure of the "xbarb_input_signal_t" type and "xbarb_output_signal_t" type is required.
  3. Finally, the XBARB works properly.

Typical use case

XBARB functional Operation.

void XBARB_Init (XBARB_Type *base)
 Initializes the XBARB module. More...
 
void XBARB_Deinit (XBARB_Type *base)
 Shuts down the XBARB module. More...
 
void XBARB_SetSignalsConnection (XBARB_Type *base, xbar_input_signal_t input, xbar_output_signal_t output)
 Configures a connection between the selected XBARB_IN[*] input and the XBARB_OUT[*] output signal. More...
 

Function Documentation

void XBARB_Init ( XBARB_Type *  base)

This function un-gates the XBARB clock.

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

This function disables XBARB clock.

Parameters
baseXBARB peripheral address.
void XBARB_SetSignalsConnection ( XBARB_Type *  base,
xbar_input_signal_t  input,
xbar_output_signal_t  output 
)

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.

Parameters
baseXBARB peripheral address.
inputXBARB input signal.
outputXBARB output signal.