![]() |
MCUXpresso SDK API Reference Manual
Rev 2.16.000
NXP Semiconductors
|
Data Structures | |
struct | xbar_info_t |
Find the instance index from base address and register offset mappings. More... | |
struct | xbar_control_config_t |
Defines the configuration structure of the XBAR control register. More... | |
Enumerations | |
enum | xbar_active_edge_t { kXBAR_EdgeNone = 0U, kXBAR_EdgeRising = 1U, kXBAR_EdgeFalling = 2U, kXBAR_EdgeRisingAndFalling = 3U } |
XBAR active edge for detection. More... | |
enum | xbar_request_t { kXBAR_RequestDisable = 0U, kXBAR_RequestDMAEnable = 1U, kXBAR_RequestInterruptEnable = 2U } |
Defines the XBAR DMA and interrupt configurations. More... | |
XBAR functional Operation | |
void | XBAR_Init (xbar_instance_t xbarInstance) |
Initializes the XBAR modules. More... | |
void | XBAR_Deinit (xbar_instance_t xbarInstance) |
Shutdown the XBAR modules. More... | |
status_t | XBAR_SetSignalsConnection (xbar_input_signal_t input, xbar_output_signal_t output) |
Set connection between the selected XBAR_IN[*] input and the XBAR_OUT[*] output signal. More... | |
status_t | XBAR_ClearOutputStatusFlag (xbar_output_signal_t output) |
Clears the edge detection status flags. More... | |
status_t | XBAR_GetOutputStatusFlag (xbar_output_signal_t output, bool *flag) |
Gets the active edge detection status. More... | |
status_t | XBAR_SetOutputSignalConfig (xbar_output_signal_t output, const xbar_control_config_t *controlConfig) |
Configures the XBAR control register. More... | |
struct xbar_info_t |
struct xbar_control_config_t |
This structure keeps the configuration of XBAR control register for one output. Control registers are available only for a few outputs. Not every XBAR module has control registers.
Data Fields | |
xbar_active_edge_t | activeEdge |
Active edge to be detected. More... | |
xbar_request_t | requestType |
Selects DMA/Interrupt request. More... | |
xbar_active_edge_t xbar_control_config_t::activeEdge |
xbar_request_t xbar_control_config_t::requestType |
enum xbar_active_edge_t |
enum xbar_request_t |
void XBAR_Init | ( | xbar_instance_t | xbarInstance | ) |
This function un-gates the XBAR clock.
xbarInstance | XBAR peripheral address. |
void XBAR_Deinit | ( | xbar_instance_t | xbarInstance | ) |
This function disables XBAR clock.
xbarInstance | XBAR peripheral address. |
status_t XBAR_SetSignalsConnection | ( | xbar_input_signal_t | input, |
xbar_output_signal_t | output | ||
) |
This function connects the XBAR input to the selected XBAR output. If more than one XBAR module is available, only the inputs and outputs from the same module can be connected.
Example:
input | XBAR input signal. |
output | XBAR output signal. |
kStatus_Success | Signal connection set successfully. |
kStatus_InvalidArgument | Failed because of invalid argument. |
status_t XBAR_ClearOutputStatusFlag | ( | xbar_output_signal_t | output | ) |
output | XBAR output signal. |
kStatus_Success | Signal connection set successfully. |
kStatus_InvalidArgument | Failed because of invalid argument. |
status_t XBAR_GetOutputStatusFlag | ( | xbar_output_signal_t | output, |
bool * | flag | ||
) |
This function gets the active edge detect status of all XBAR_OUTs. If the active edge occurs, the return value is asserted. When the interrupt or the DMA functionality is enabled for the XBAR_OUTx, this field is 1 when the interrupt or DMA request is asserted and 0 when the interrupt or DMA request has been cleared.
output | XBAR output signal. |
flag | get XBAR output status flag. |
kStatus_Success | Signal connection set successfully. |
kStatus_InvalidArgument | Failed because of invalid argument. |
status_t XBAR_SetOutputSignalConfig | ( | xbar_output_signal_t | output, |
const xbar_control_config_t * | controlConfig | ||
) |
This function configures an XBAR control register. The active edge detection and the DMA/IRQ function on the corresponding XBAR output can be set.
Example:
output | XBAR output signal. |
controlConfig | Pointer to structure that keeps configuration of control register. |
kStatus_Success | Signal connection set successfully. |
kStatus_InvalidArgument | Failed because of invalid argument. |