iLLD_TC27xD  1.0
IfxScuEru.h File Reference

SCU basic functionality. More...

#include "_Impl/IfxScu_cfg.h"
#include "IfxScu_reg.h"
#include "Cpu/Std/IfxCpu.h"
#include "_PinMap/IfxScu_PinMap.h"

Go to the source code of this file.

Enumerations

enum  IfxScuEru_ExternalInputSelection {
  IfxScuEru_ExternalInputSelection_0 = 0,
  IfxScuEru_ExternalInputSelection_1,
  IfxScuEru_ExternalInputSelection_2,
  IfxScuEru_ExternalInputSelection_3
}
 Input line selection for input channel
Definition in Ifx_SCU.EICR[i].B.EXIS(j) (i = 0,1,2,3 and j = 0,1) More...
 
enum  IfxScuEru_InputChannel {
  IfxScuEru_InputChannel_0 = 0,
  IfxScuEru_InputChannel_1,
  IfxScuEru_InputChannel_2,
  IfxScuEru_InputChannel_3,
  IfxScuEru_InputChannel_4,
  IfxScuEru_InputChannel_5,
  IfxScuEru_InputChannel_6,
  IfxScuEru_InputChannel_7
}
 Input channel for input selection and conditioning of trigger or gating functions. More...
 
enum  IfxScuEru_InputNodePointer {
  IfxScuEru_InputNodePointer_0 = 0,
  IfxScuEru_InputNodePointer_1,
  IfxScuEru_InputNodePointer_2,
  IfxScuEru_InputNodePointer_3,
  IfxScuEru_InputNodePointer_4,
  IfxScuEru_InputNodePointer_5,
  IfxScuEru_InputNodePointer_6,
  IfxScuEru_InputNodePointer_7
}
 Determines the destination (output channel) for trigger event (if enabled by Ifx_SCU.EICR[i].B.EIEN(j)).
Definition in Ifx_SCU.EICR[i].B.INP(j) (i = 0,1,2,3 and j = 0,1) More...
 
enum  IfxScuEru_InterruptGatingPattern {
  IfxScuEru_InterruptGatingPattern_none = 0,
  IfxScuEru_InterruptGatingPattern_alwaysActive = 1,
  IfxScuEru_InterruptGatingPattern_patternMatch = 2,
  IfxScuEru_InterruptGatingPattern_patternMiss = 3
}
 Determines the pattern detection influence on the ouput lines ERU_GOUTy and ERU_IOUTy
Definition in Ifx_SCU.IGCR[i].B.IGP(j) (i = 0,1,2,3 and j = 0,1) More...
 
enum  IfxScuEru_OutputChannel {
  IfxScuEru_OutputChannel_0 = 0,
  IfxScuEru_OutputChannel_1,
  IfxScuEru_OutputChannel_2,
  IfxScuEru_OutputChannel_3,
  IfxScuEru_OutputChannel_4,
  IfxScuEru_OutputChannel_5,
  IfxScuEru_OutputChannel_6,
  IfxScuEru_OutputChannel_7
}
 Output channel for combination of events, definition of their effects and distribution to the system (interrupt generation, ...) More...
 

Functions

IFX_INLINE void IfxScuEru_initReqPin (IfxScu_Req_In *req, IfxPort_InputMode inputMode)
 Initialises the External request Pin. More...
 
IFX_EXTERN void IfxScuEru_selectExternalInput (IfxScuEru_InputChannel inputChannel, IfxScuEru_ExternalInputSelection inputSignal)
 Determines which input line is selcted for input channel x. More...
 
IFX_EXTERN void IfxScuEru_clearAllEventFlags (void)
 Clears the external event flag of input channel x (INTFx) More...
 
IFX_EXTERN void IfxScuEru_clearEventFlag (IfxScuEru_InputChannel inputChannel)
 Clears the external event flag of input channel x (INTFx) More...
 
IFX_EXTERN void IfxScuEru_clearInputChannelConfiguration (IfxScuEru_InputChannel inputChannel)
 Clears all the configuration for the given input channel x. More...
 
IFX_EXTERN void IfxScuEru_disableAutoClear (IfxScuEru_InputChannel inputChannel)
 Disables the automatic clearing of INTFx when the edge of input channel which has not been selected, is detected. More...
 
IFX_EXTERN void IfxScuEru_disableFallingEdgeDetection (IfxScuEru_InputChannel inputChannel)
 Disables the falling edge of input channel to set the bit INTF x. More...
 
IFX_EXTERN void IfxScuEru_disableRisingEdgeDetection (IfxScuEru_InputChannel inputChannel)
 Disables the rising edge of input channel to set the bit INTF x. More...
 
IFX_EXTERN void IfxScuEru_enableAutoClear (IfxScuEru_InputChannel inputChannel)
 Enables the automatic clearing of INTFx when the edge of input channel which has not been selected, is detected. More...
 
IFX_EXTERN void IfxScuEru_enableFallingEdgeDetection (IfxScuEru_InputChannel inputChannel)
 Enables the falling edge of input channel to set the bit INTF x. More...
 
IFX_EXTERN void IfxScuEru_enableRisingEdgeDetection (IfxScuEru_InputChannel inputChannel)
 Enables the rising edge of input channel to set the bit INTF x. More...
 
IFX_EXTERN uint32 IfxScuEru_getAllEventFlagsStatus (void)
 Returns the status of the flags of all input channels. More...
 
IFX_EXTERN boolean IfxScuEru_getEventFlagStatus (IfxScuEru_InputChannel inputChannel)
 Returns the status of the external event flag of input channel x (INTFx) More...
 
IFX_EXTERN uint32 IfxScuEru_getInputChannelConfiguration (IfxScuEru_InputChannel inputChannel)
 Returns all the configuration for the given input channel x. More...
 
IFX_EXTERN void IfxScuEru_setEventFlag (IfxScuEru_InputChannel inputChannel)
 Sets the external event flag of input channel x (INTFx) More...
 
IFX_EXTERN void IfxScuEru_connectTrigger (IfxScuEru_InputChannel inputChannel, IfxScuEru_InputNodePointer triggerSelect)
 Determines the destination (output channel) for trigger event (if enabled by Ifx_SCU.EICR[i].B.EIEN(j), i = 0,1,2,3 and j = 0,1). More...
 
IFX_EXTERN void IfxScuEru_disableTriggerPulse (IfxScuEru_InputChannel inputChannel)
 Disables the generation of a trigger event for input channel x when the selected edge is detected. More...
 
IFX_EXTERN void IfxScuEru_enableTriggerPulse (IfxScuEru_InputChannel inputChannel)
 Enables the generation of a trigger event for input channel x when the selected edge is detected. More...
 
IFX_EXTERN void IfxScuEru_setFlagPatternDetection (IfxScuEru_OutputChannel outputChannel, IfxScuEru_InputChannel inputChannel, boolean state)
 Enables the flag INTFx to take part in the pattern detection for output gating. More...
 
IFX_EXTERN void IfxScuEru_clearOutputChannelConfiguration (IfxScuEru_OutputChannel outputChannel)
 Clears all the configuration for the given input channel y. More...
 
IFX_EXTERN void IfxScuEru_disablePatternDetectionTrigger (IfxScuEru_OutputChannel outputChannel)
 Disables the generation of a trigger event for output channel y when the result of the pattern detection changes. More...
 
IFX_EXTERN void IfxScuEru_enablePatternDetectionTrigger (IfxScuEru_OutputChannel outputChannel)
 Enables the generation of a trigger event for output channel y when the result of the pattern detection changes. More...
 
IFX_EXTERN uint32 IfxScuEru_getOutputChannelConfiguration (IfxScuEru_OutputChannel outputChannel)
 Clears all the configuration for the given input channel y. More...
 
IFX_EXTERN boolean IfxScuEru_getPatternDetectionResult (IfxScuEru_OutputChannel outputChannel)
 Returns the status of the pattern detection result of output channel y (PDRy) More...
 
IFX_EXTERN uint32 IfxScuEru_getWholePatternDetectionResult (void)
 Returns the whole pattern detection result of all the selcted output channels. More...
 
IFX_EXTERN void IfxScuEru_setInterruptGatingPattern (IfxScuEru_OutputChannel outputChannel, IfxScuEru_InterruptGatingPattern gatingPattern)
 Sets the gating pattern of a ouput channel y to determine how the pattern detection influences the output lines GOUT and IOUT. More...
 

Detailed Description

SCU basic functionality.

Version
iLLD_1_0_0_11_0
                            IMPORTANT NOTICE

Infineon Technologies AG (Infineon) is supplying this file for use exclusively with Infineon's microcontroller products. This file can be freely distributed within development tools that are supporting such microcontroller products.

THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. INFINEON SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.

Definition in file IfxScuEru.h.