MCUXpresso SDK API Reference Manual
Rev. 0
NXP Semiconductors
|
Files | |
file | fsl_inputmux.h |
file | fsl_inputmux_connections.h |
Macros | |
#define | SCT0_PMUX_ID 0x00U |
Periphinmux IDs. | |
Enumerations | |
enum | inputmux_connection_t { kINPUTMUX_Sct0PinInp0ToSct0 = 0U + (SCT0_PMUX_ID << PMUX_SHIFT) , kINPUTMUX_DebugHaltedToSct0 = 23U + (SCT0_PMUX_ID << PMUX_SHIFT) , kINPUTMUX_GpioPort1Pin31ToPintsel = 63U + (PINTSEL_PMUX_ID << PMUX_SHIFT) , kINPUTMUX_FlexspiToDspInterrupt = 34U + (DSP_INT_PMUX_ID << PMUX_SHIFT) , kINPUTMUX_FreqmeGpioClkToFreqmeas = 6U + (FREQMEAS_PMUX_ID << PMUX_SHIFT) , kINPUTMUX_Usb1FrameToggleToTimer0CaptureChannels = 18U + (CT32BIT0_CAP_PMUX_ID << PMUX_SHIFT) , kINPUTMUX_Usb1FrameToggleToTimer1CaptureChannels = 18U + (CT32BIT1_CAP_PMUX_ID << PMUX_SHIFT) , kINPUTMUX_Usb1FrameToggleToTimer2CaptureChannels = 18U + (CT32BIT2_CAP_PMUX_ID << PMUX_SHIFT) , kINPUTMUX_Usb1FrameToggleToTimer3CaptureChannels = 18U + (CT32BIT3_CAP_PMUX_ID << PMUX_SHIFT) , kINPUTMUX_Usb1FrameToggleToTimer4CaptureChannels = 18U + (CT32BIT4_CAP_PMUX_ID << PMUX_SHIFT) , kINPUTMUX_FlexspiTxToDma0 = 29U + (DMA0_ITRIG_PMUX_ID << PMUX_SHIFT) , kINPUTMUX_FlexspiTxToDma1 = 29U + (DMA1_ITRIG_PMUX_ID << PMUX_SHIFT) , kINPUTMUX_Dma0OtrigChannel32ToTriginChannels = 32U + (DMA0_OTRIG_PMUX_ID << PMUX_SHIFT) } |
INPUTMUX connections type. More... | |
enum | inputmux_signal_t { kINPUTMUX_Dmac0InputTriggerPint0Ena = 0U + (DMA0_ITRIG_EN0_ID << ENA_SHIFT) , kINPUTMUX_Dmac0InputTriggerFlexspiTxEna = 29U + (DMA0_ITRIG_EN0_ID << ENA_SHIFT) , kINPUTMUX_Dmac1InputTriggerFlexspiTxEna = 29U + (DMA1_ITRIG_EN0_ID << ENA_SHIFT) , kINPUTMUX_HashCryptToDmac0Ch30RequestEna = 30U + (DMA0_REQ_ENA0_ID << ENA_SHIFT) } |
INPUTMUX signal enable/disable type. More... | |
Functions | |
void | INPUTMUX_Init (INPUTMUX_Type *base) |
Initialize INPUTMUX peripheral. More... | |
void | INPUTMUX_AttachSignal (INPUTMUX_Type *base, uint32_t index, inputmux_connection_t connection) |
Attaches a signal. More... | |
void | INPUTMUX_EnableSignal (INPUTMUX_Type *base, inputmux_signal_t signal, bool enable) |
Enable/disable a signal. More... | |
void | INPUTMUX_Deinit (INPUTMUX_Type *base) |
Deinitialize INPUTMUX peripheral. More... | |
Driver version | |
#define | FSL_INPUTMUX_DRIVER_VERSION (MAKE_VERSION(2, 0, 2)) |
Group interrupt driver version for SDK. | |
The MCUXpresso SDK provides a driver for the Input multiplexing (INPUTMUX).
It configures the inputs to the pin interrupt block, DMA trigger, and frequency measure function. Once configured, the clock is not needed for the inputmux.
INPUTMUX_AttachSignal function configures the specified input
Refer to the driver examples codes located at <SDK_ROOT>/boards/<BOARD>/driver_examples/inputmux
enum inputmux_signal_t |
void INPUTMUX_Init | ( | INPUTMUX_Type * | base | ) |
This function enables the INPUTMUX clock.
base | Base address of the INPUTMUX peripheral. |
None. |
void INPUTMUX_AttachSignal | ( | INPUTMUX_Type * | base, |
uint32_t | index, | ||
inputmux_connection_t | connection | ||
) |
This function gates the INPUTPMUX clock.
base | Base address of the INPUTMUX peripheral. |
index | Destination peripheral to attach the signal to. |
connection | Selects connection. |
None. |
void INPUTMUX_EnableSignal | ( | INPUTMUX_Type * | base, |
inputmux_signal_t | signal, | ||
bool | enable | ||
) |
This function gates the INPUTPMUX clock.
base | Base address of the INPUTMUX peripheral. |
signal | Enable signal register id and bit offset. |
enable | Selects enable or disable. |
None. |
void INPUTMUX_Deinit | ( | INPUTMUX_Type * | base | ) |
This function disables the INPUTMUX clock.
base | Base address of the INPUTMUX peripheral. |
None. |