The MCUXpresso SDK provides driver for the Trigger Mux (TRGMUX) module of MCUXpresso SDK devices.
Typical use case
Refer to the driver examples codes located at <SDK_ROOT>/boards/<BOARD>/driver_examples/trgmux 
| Enumerator | 
|---|
| kStatus_TRGMUX_Locked  | 
 Configure failed for register is locked.  
 | 
 
 
| Enumerator | 
|---|
| kTRGMUX_TriggerInput0  | 
 The MUX select for peripheral trigger input 0.  
 | 
| kTRGMUX_TriggerInput1  | 
 The MUX select for peripheral trigger input 1.  
 | 
| kTRGMUX_TriggerInput2  | 
 The MUX select for peripheral trigger input 2.  
 | 
| kTRGMUX_TriggerInput3  | 
 The MUX select for peripheral trigger input 3.  
 | 
 
 
  
  
      
        
          | static void TRGMUX_LockRegister  | 
          ( | 
          TRGMUX_Type *  | 
          base,  | 
         
        
           | 
           | 
          uint32_t  | 
          index  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inlinestatic   | 
  
 
The function sets the flag of the register which is used to mark writeable. Example: 
- Parameters
 - 
  
    | base | TRGMUX peripheral base address.  | 
    | index | The index of the TRGMUX register, see the enum trgmux_device_t defined in <SOC>.h.  | 
  
   
 
 
The function configures the trigger source of the appointed peripheral. Example: 
 - Parameters
 - 
  
    | base | TRGMUX peripheral base address.  | 
    | index | The index of the TRGMUX register, see the enum trgmux_device_t defined in <SOC>.h.  | 
    | input | The MUX select for peripheral trigger input  | 
    | trigger_src | The trigger inputs for various peripherals. See the enum trgmux_source_t defined in <SOC>.h.  | 
  
   
- Return values
 - 
  
    | kStatus_Success | Configured successfully.  | 
    | kStatus_TRGMUX_Locked | Configuration failed because the register is locked.  |