109 #include "Std_Types.h" 126 #define ICU_VENDOR_ID ((uint16) 44U) 128 #define ICU_MODULE_ID ((uint16) 122U) 130 #define ICU_INSTANCE_ID ((uint8) 0U) 140 #define ICU_SW_MAJOR_VERSION (9U) 142 #define ICU_SW_MINOR_VERSION (0U) 144 #define ICU_SW_PATCH_VERSION (0U) 154 #define ICU_AR_RELEASE_MAJOR_VERSION (4U) 156 #define ICU_AR_RELEASE_MINOR_VERSION (3U) 158 #define ICU_AR_RELEASE_REVISION_VERSION (1U) 169 #define ICU_INIT_ID ((uint8) 0x00U) 171 #define ICU_DEINIT_ID ((uint8) 0x01U) 173 #define ICU_SETMODE_ID ((uint8) 0x02U) 175 #define ICU_SETACTIVATIONCONDITION_ID ((uint8) 0x05U) 177 #define ICU_DISABLENOTIFICATION_ID ((uint8) 0x06U) 179 #define ICU_ENABLENOTIFICATION_ID ((uint8) 0x07U) 181 #define ICU_GETINPUTSTATE_ID ((uint8) 0x08U) 183 #define ICU_STARTTIMESTAMP_ID ((uint8) 0x09U) 185 #define ICU_STOPTIMESTAMP_ID ((uint8) 0x0AU) 187 #define ICU_GETTIMESTAMPINDEX_ID ((uint8) 0x0BU) 189 #define ICU_RESETEDGECOUNT_ID ((uint8) 0x0CU) 191 #define ICU_ENABLEEDGECOUNT_ID ((uint8) 0x0DU) 193 #define ICU_ENABLEEDGEDETECTION_ID ((uint8) 0x16U) 195 #define ICU_DISABLEEDGEDETECTION_ID ((uint8) 0x17U) 197 #define ICU_DISABLEEDGECOUNT_ID ((uint8) 0x0EU) 199 #define ICU_GETEDGENUMBERS_ID ((uint8) 0x0FU) 201 #define ICU_STARTSIGNALMEASUREMENT_ID ((uint8) 0x13U) 203 #define ICU_STOPSIGNALMEASUREMENT_ID ((uint8) 0x14U) 205 #define ICU_GETTIMEELAPSED_ID ((uint8) 0x10U) 207 #define ICU_GETDUTYCYCLEVALUES_ID ((uint8) 0x11U) 209 #define ICU_GETVERSIONINFO_ID ((uint8) 0x12U) 211 #define ICU_SID_REGISTER_READBACK ((uint8) 0x18U) 224 #define ICU_E_PARAM_POINTER ((uint8) 0x0AU) 229 #define ICU_E_PARAM_CHANNEL ((uint8) 0x0BU) 231 #define ICU_E_PARAM_ACTIVATION ((uint8) 0x0CU) 233 #define ICU_E_INIT_FAILED ((uint8) 0x0DU) 235 #define ICU_E_PARAM_BUFFER_SIZE ((uint8) 0x0EU) 237 #define ICU_E_PARAM_MODE ((uint8) 0x0FU) 239 #define ICU_E_UNINIT ((uint8) 0x14U) 241 #define ICU_E_NOT_STARTED ((uint8) 0x16U) 243 #define ICU_E_BUSY_OPERATION ((uint8) 0x16U) 245 #define ICU_E_ALREADY_INITIALIZED ((uint8) 0x17U) 247 #define ICU_E_PARAM_NOTIFY_INTERVAL ((uint8) 0x18U) 249 #define ICU_E_PARAM_VINFO ((uint8) 0x19U) 262 #define ICU_STATUS_UNINIT ((uint8)(0U)) 264 #define ICU_STATUS_INIT ((uint8)(1U)) 272 #define ICU_FALLING ((uint8)(0U)) 274 #define ICU_RISING ((uint8)(1U)) 413 typedef struct Icu_ConfigType_PC_s
442 typedef struct Icu_ConfigType_s
450 #if (STD_ON == ICU_SAFETY_DIAGNOSTIC_API) 498 #if (STD_ON == ICU_DE_INIT_API) 577 #if (ICU_GET_INPUT_STATE_API == STD_ON) 597 #if (ICU_TIMESTAMP_API == STD_ON) 658 #if (ICU_EDGE_COUNT_API == STD_ON) 732 #if (ICU_EDGE_DETECT_API == STD_ON) 770 #if (ICU_SIGNAL_MEASUREMENT_API == STD_ON) 808 #if (ICU_GET_TIME_ELAPSED_API == STD_ON) 828 #if (ICU_GET_DUTY_CYCLE_VALUES_API == STD_ON) 850 #if (ICU_GET_VERSION_INFO_API) 869 FUNC(
void, ICU_CODE) Icu_GetVersionInfo(
870 P2VAR(Std_VersionInfoType, AUTOMATIC, sICU_APPL_DATA) VersionInfoPtr);
874 #if (STD_ON == ICU_SAFETY_DIAGNOSTIC_API) uint32 instanceClkMHz
Definition: Icu.h:433
Icu_TimestampBufferType bufferType
Definition: Icu.h:431
uint32 ECAP_CNTPHS
Definition: Icu.h:460
Icu_TimestampBufferType
This type defines TimeStamp Property range.
Definition: Icu.h:380
void Icu_StartSignalMeasurement(Icu_ChannelType Channel)
Service for starting the measurement of signals.
#define ICU_MAX_NUM_CHANNELS
Definition: Icu_Cfg.h:151
This type defines Duty Cycle struct.
Definition: Icu.h:329
uint32 ECAP_ECCTL
Definition: Icu.h:461
Icu_ModeType
This type defines a range of mode type.
Definition: Icu.h:288
void Icu_Init(const Icu_ConfigType *ConfigPtr)
Service for ICU initialization.
Icu_InputStateType Icu_GetInputState(Icu_ChannelType Channel)
Service for getting the ICU input status.
void Icu_StopSignalMeasurement(Icu_ChannelType Channel)
Service for stopping the measurement of signals.
ICU Channel Config Structure of Pre-Compile only.
Definition: Icu.h:404
Icu_ActivationType defaultStartEdge
Definition: Icu.h:423
uint32 Icu_EdgeNumberType
This type defines return value of Icu-Icu_GetEdgeNumbers.
Definition: Icu.h:345
Icu_EdgeNumberType Icu_GetEdgeNumbers(Icu_ChannelType Channel)
Service for reading the number of counted edges.
Icu_ChannelType channelId
Definition: Icu.h:406
ICU Channel Config Structure.
Definition: Icu.h:422
void Icu_DisableNotification(Icu_ChannelType Channel)
Service for disabling notification.
uint32 Icu_ValueType
This type defines Value type.
Definition: Icu.h:324
This file contains generated pre compile configuration file for ICU MCAL driver.
uint32 ECAP_ECINT_EN_FLG
Definition: Icu.h:462
Icu_ChannelType icuMaxChannel
Definition: Icu.h:444
Icu_NotifyFuncType notificationHandler
Definition: Icu.h:429
void Icu_DisableEdgeCount(Icu_ChannelType Channel)
Service for disabling the couting of edges of the given channel.
Icu_ValueType PeriodTime
Definition: Icu.h:333
ICU Config Structure.
Definition: Icu.h:442
void Icu_EnableNotification(Icu_ChannelType Channel)
Service for enabling notification.
uint32 prescaler
Definition: Icu.h:435
Icu_ValueType ActiveTime
Definition: Icu.h:331
void Icu_ResetEdgeCount(Icu_ChannelType Channel)
Service for resets the value of the counted edges to zero.
Icu_SignalMeasurementPropertyType signalMeasurementProperty
Definition: Icu.h:427
void(* Icu_NotifyFuncType)(void)
Notification callback function pointer.
Definition: Icu.h:389
Icu_InputStateType
This type defines a input state of ICU driver.
Definition: Icu.h:299
Icu_ValueType Icu_GetTimeElapsed(Icu_ChannelType Channel)
Service for reading the elasped time for the given channel.
uint32 Icu_ChannelPrescalerType
This type defines Prescaler type.
Definition: Icu.h:399
Icu_IndexType Icu_GetTimeStampIndex(Icu_ChannelType Channel)
void Icu_StartTimestamp(Icu_ChannelType Channel, Icu_ValueType *BufferPtr, uint16 BufferSize, uint16 NotifyInterval)
Service for starts the captuing of timer values on the edges.
ICU Config Structure of Pre-Compile only.
Definition: Icu.h:413
Icu_IndexType Icu_GetTimestampIndex(Icu_ChannelType Channel)
Service for reading the timestamp index of a givem channel.
Icu_ActivationType
This type defines Activation range.
Definition: Icu.h:311
Std_ReturnType Icu_RegisterReadback(Icu_ChannelType IcuChannel, Icu_RegisterReadbackType *RegRbPtr)
Icu register readback structure.
Definition: Icu.h:455
void Icu_DeInit(void)
Service for ICU de-initialization.
uint8 Icu_ChannelType
This type defines Channel type.
Definition: Icu.h:394
void Icu_EnableEdgeDetection(Icu_ChannelType Channel)
Service for enabling/re-enabling the detection of edges of the given channel.
uint32 Icu_IndexType
This type defines return value Icu_GetTimeStampIndex.
Definition: Icu.h:340
void Icu_DisableEdgeDetection(Icu_ChannelType Channel)
Service for disabling the detection of edges of the given channel.
Icu_MeasurementModeType measurementMode
Definition: Icu.h:425
Icu_MeasurementModeType
This type defines available measurement modes.
Definition: Icu.h:350
Icu_SignalMeasurementPropertyType
This type defines Signal Measurement Property range.
Definition: Icu.h:365
void Icu_SetActivationCondition(Icu_ChannelType Channel, Icu_ActivationType Activation)
Service for setting Activation Condition.
void Icu_GetDutyCycleValues(Icu_ChannelType Channel, Icu_DutyCycleType *DutyCycleValues)
Service for reading the coherent active time and period time of given channel.
void Icu_StopTimestamp(Icu_ChannelType Channel)
Service for stopping the timestamp measurement.
void Icu_EnableEdgeCount(Icu_ChannelType Channel)
Service enabling the counting of edges of a given channel.