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
 

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...
 

Input multiplexing connections

enum  inputmux_connection_t {
  kINPUTMUX_SctGpi0ToSct0 = 0U + (SCT0_INMUX0 << PMUX_SHIFT) ,
  kINPUTMUX_DebugHaltedToSct0 = 23U + (SCT0_INMUX0 << PMUX_SHIFT) ,
  kINPUTMUX_I2sSharedWs1ToTimer0Captsel = 24U + (TIMER0CAPTSEL0 << PMUX_SHIFT) ,
  kINPUTMUX_I2sSharedWs1ToTimer1Captsel = 24U + (TIMER1CAPTSEL0 << PMUX_SHIFT) ,
  kINPUTMUX_I2sSharedWs1ToTimer2Captsel = 24U + (TIMER2CAPTSEL0 << PMUX_SHIFT) ,
  kINPUTMUX_GpioPort1Pin31ToPintsel = 63U + (PINTSEL0 << PMUX_SHIFT) ,
  kINPUTMUX_HashDmaRxToDma0 = 21U + (DMA0_ITRIG_INMUX0 << PMUX_SHIFT) ,
  kINPUTMUX_Dma0Adc0Ch1TrigoutToTriginChannels = 22U + (DMA0_OTRIG_INMUX0 << PMUX_SHIFT) ,
  kINPUTMUX_FreqmeGpioClk_bRef = 7u + (FREQMEAS_REF_REG << PMUX_SHIFT) ,
  kINPUTMUX_FreqmeGpioClk_bTarget = 7u + (FREQMEAS_TARGET_REG << PMUX_SHIFT) ,
  kINPUTMUX_I2sSharedWs1ToTimer3Captsel = 24U + (TIMER3CAPTSEL0 << PMUX_SHIFT) ,
  kINPUTMUX_GpioPort0Pin31ToPintSecsel = 31U + (PINTSECSEL0 << PMUX_SHIFT) ,
  kINPUTMUX_HashDmaRxToDma1 = 14U + (DMA1_ITRIG_INMUX0 << PMUX_SHIFT)
}
 INPUTMUX connections type. More...
 
#define SCT0_INMUX0   0x00U
 Periphinmux IDs.
 
#define TIMER0CAPTSEL0   0x20U
 
#define TIMER1CAPTSEL0   0x40U
 
#define TIMER2CAPTSEL0   0x60U
 
#define PINTSEL0   0xC0U
 
#define DMA0_ITRIG_INMUX0   0xE0U
 
#define DMA0_OTRIG_INMUX0   0x160U
 
#define FREQMEAS_REF_REG   0x180U
 
#define FREQMEAS_TARGET_REG   0x184U
 
#define TIMER3CAPTSEL0   0x1A0U
 
#define TIMER4CAPTSEL0   0x1C0U
 
#define PINTSECSEL0   0x1E0U
 
#define DMA1_ITRIG_INMUX0   0x200U
 
#define DMA1_OTRIG_INMUX0   0x240U
 
#define PMUX_SHIFT   20U
 

Driver version

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

Macro Definition Documentation

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

Version 2.0.0.

Enumeration Type Documentation

Enumerator
kINPUTMUX_SctGpi0ToSct0 

SCT0 INMUX.

kINPUTMUX_DebugHaltedToSct0 

TIMER0 CAPTSEL.

kINPUTMUX_I2sSharedWs1ToTimer0Captsel 

TIMER1 CAPTSEL.

kINPUTMUX_I2sSharedWs1ToTimer1Captsel 

TIMER2 CAPTSEL.

kINPUTMUX_I2sSharedWs1ToTimer2Captsel 

Pin interrupt select.

kINPUTMUX_GpioPort1Pin31ToPintsel 

DMA0 Input trigger.

kINPUTMUX_HashDmaRxToDma0 

DMA0 output trigger.

kINPUTMUX_Dma0Adc0Ch1TrigoutToTriginChannels 

Selection for frequency measurement reference clock.

kINPUTMUX_FreqmeGpioClk_bRef 

Selection for frequency measurement target clock.

kINPUTMUX_FreqmeGpioClk_bTarget 

TIMER3 CAPTSEL.

kINPUTMUX_I2sSharedWs1ToTimer3Captsel 

Timer4 CAPTSEL.

kINPUTMUX_GpioPort0Pin31ToPintSecsel 

DMA1 Input trigger.

kINPUTMUX_HashDmaRxToDma1 

DMA1 output trigger.

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.