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:
- Signal connection interconnects input and output signals.
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
- Call the "XBARB_Init()" function to initialize the XBARB module.
- 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.
- Finally, the XBARB works properly.
Typical use case
|
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...
|
|
#define FSL_XBARB_DRIVER_VERSION (MAKE_VERSION(2, 0, 1)) |
void XBARB_Init |
( |
XBARB_Type * |
base | ) |
|
This function un-gates the XBARB clock.
- Parameters
-
base | XBARB peripheral address. |
void XBARB_Deinit |
( |
XBARB_Type * |
base | ) |
|
This function disables XBARB clock.
- Parameters
-
base | XBARB 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
-
base | XBARB peripheral address. |
input | XBARB input signal. |
output | XBARB output signal. |