MCUXpresso SDK API Reference Manual  Rev. 0
NXP Semiconductors
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
INPUTMUX: Input Multiplexing Driver

Overview

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.

Input Multiplexing Driver operation

INPUTMUX_AttachSignal function configures the specified input

Typical use case

Refer to the driver examples codes located at <SDK_ROOT>/boards/<BOARD>/driver_examples/inputmux

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_Hwvad0ToDspInterrupt = 33U + (DSP_INT_PMUX_ID << PMUX_SHIFT) ,
  kINPUTMUX_ClockOutToFreqmeas = 11U + (FREQMEAS_PMUX_ID << PMUX_SHIFT) ,
  kINPUTMUX_Usb0FrameToggleToCaptureChannels = 18U + (CT32BIT_CAP_PMUX_ID << PMUX_SHIFT) ,
  kINPUTMUX_AdcToDma0 = 24U + (DMA0_ITRIG_PMUX_ID << PMUX_SHIFT) ,
  kINPUTMUX_AdcToDma1 = 24U + (DMA1_ITRIG_PMUX_ID << PMUX_SHIFT) ,
  kINPUTMUX_Dma0OtrigChannel31ToTriginChannels = 31U + (DMA0_OTRIG_PMUX_ID << PMUX_SHIFT)
}
 INPUTMUX connections type. More...
 
enum  inputmux_signal_t {
  kINPUTMUX_Dmac0InputTriggerMux0Ena = 0U + (DMA0_ITRIG_EN0_PMUX_ID << ENA_SHIFT) ,
  kINPUTMUX_Dmac0InputTriggerMux31Ena = 31U + (DMA0_ITRIG_EN0_PMUX_ID << ENA_SHIFT) ,
  kINPUTMUX_Dmac1InputTriggerMux31Ena = 31U + (DMA1_ITRIG_EN0_PMUX_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_Deinit (INPUTMUX_Type *base)
 Deinitialize INPUTMUX peripheral. More...
 

Driver version

#define FSL_INPUTMUX_DRIVER_VERSION   (MAKE_VERSION(2, 0, 1))
 Group interrupt driver version for SDK. More...
 

Macro Definition Documentation

#define FSL_INPUTMUX_DRIVER_VERSION   (MAKE_VERSION(2, 0, 1))

Version 2.0.1.

Enumeration Type Documentation

Enumerator
kINPUTMUX_Sct0PinInp0ToSct0 

SCT INMUX.

kINPUTMUX_DebugHaltedToSct0 

Pin Interrupt.

kINPUTMUX_GpioPort1Pin31ToPintsel 

DSP Interrupt.

kINPUTMUX_Hwvad0ToDspInterrupt 

Frequency measure.

kINPUTMUX_ClockOutToFreqmeas 

CTmier capture input mux.

kINPUTMUX_Usb0FrameToggleToCaptureChannels 

DMA0 ITRIG.

kINPUTMUX_AdcToDma0 

DMA1 ITRIG.

kINPUTMUX_AdcToDma1 

DMA0 OTRIG.

kINPUTMUX_Dma0OtrigChannel31ToTriginChannels 

DMA1 OTRIG.

Enumerator
kINPUTMUX_Dmac0InputTriggerMux0Ena 

DMA0 input trigger mux enable.

kINPUTMUX_Dmac0InputTriggerMux31Ena 

DMA1 input trigger mux enable.

kINPUTMUX_Dmac1InputTriggerMux31Ena 

DMA0 REQ signal.

kINPUTMUX_HashCryptToDmac0Ch30RequestEna 

DMA1 REQ signal.

Function Documentation

void INPUTMUX_Init ( INPUTMUX_Type *  base)

This function enables the INPUTMUX clock.

Parameters
baseBase address of the INPUTMUX peripheral.
Return values
None.
void INPUTMUX_AttachSignal ( INPUTMUX_Type *  base,
uint32_t  index,
inputmux_connection_t  connection 
)

This function gates the INPUTPMUX clock.

Parameters
baseBase address of the INPUTMUX peripheral.
indexDestination peripheral to attach the signal to.
connectionSelects connection.
Return values
None.
void INPUTMUX_Deinit ( INPUTMUX_Type *  base)

This function disables the INPUTMUX clock.

Parameters
baseBase address of the INPUTMUX peripheral.
Return values
None.