6 phStatus_t phbalReg_Stub_GetPortList(phbalReg_Stub_DataParams_t * pDataParams,
9 uint16_t * pNumOfPorts);
11 phStatus_t phbalReg_Stub_SetPort(phbalReg_Stub_DataParams_t * pDataParams,
14 phStatus_t phbalReg_Stub_OpenPort(phbalReg_Stub_DataParams_t * pDataParams);
16 phStatus_t phbalReg_Stub_ClosePort(phbalReg_Stub_DataParams_t * pDataParams);
18 phStatus_t phbalReg_Stub_Exchange(phbalReg_Stub_DataParams_t * pDataParams,
24 uint16_t * pRxLength);
26 phStatus_t phbalReg_Stub_SetConfig(phbalReg_Stub_DataParams_t * pDataParams,
30 phStatus_t phbalReg_Stub_GetConfig(phbalReg_Stub_DataParams_t * pDataParams,
46 #define PLATFORM_MAX_TIMERS 3U 50 #define TIME_INTERVAL (SystemFrequency/100 - 1) 62 typedef struct Timer_Struct
93 #define PH_PLATFORM_TIMER_UNIT_US 0x00U 94 #define PH_PLATFORM_TIMER_UNIT_MS 0x01U 95 #define PH_PLATFORM_INVALID_TIMER_ID 0xFFFFFFFF 102 #define PH_PLATFORM_ERR_NO_FREE_TIMER (PH_ERR_CUSTOM_BEGIN + 0) 103 #define PH_PLATFORM_ERR_INVALID_TIMER (PH_ERR_CUSTOM_BEGIN + 1) 143 uint32_t dwRegTimeCnt,
163 uint32_t *dwGetElapsedDelay
185 uint8_t bTimerDelayUnit,
phStatus_t phPlatform_Timer_Delete(phPlatform_DataParams_t *pDataParams, uint32_t dwTimerId)
Delete or Deallocate the timer.
phStatus_t phPlatform_Timer_Wait(phPlatform_DataParams_t *pDataParams, uint8_t bTimerDelayUnit, uint16_t wDelay)
Timer wait function.
phStatus_t phPlatform_Timer_Start(phPlatform_DataParams_t *pDataParams, uint32_t dwTimerId, uint32_t dwRegTimeCnt, uint16_t wOption, ppCallBck_t pApplication_callback, void *pContext)
Start the timer. Note: Valid Timer ID should be provided. Timer ID is provided by calling phPlatform_...
phStatus_t phPlatform_Timer_Stop(phPlatform_DataParams_t *pDataParams, uint32_t dwTimerId)
Stop the timer.
phStatus_t phPlatform_Timer_Create(phPlatform_DataParams_t *pDataParams, uint32_t *timerId)
Allocates a free timer. Note:
phStatus_t phPlatform_Timer_Init(phPlatform_DataParams_t *pDataParams)
Initialize platform timers.
phStatus_t phPlatform_Timer_GetElapsedDelay(phPlatform_DataParams_t *pDataParams, uint32_t dwTimerId, uint16_t wOption, uint32_t *dwGetElapsedDelay)
Get Elapsed Delay from timer which is created and started before calling this API.
phStatus_t phPlatform_Timer_ExecCallback(phPlatform_DataParams_t *pDataParams, uint32_t dwTimerId)
Execute the Callback registered to the timer.
phStatus_t phPlatform_Timer_Reset(phPlatform_DataParams_t *pDataParams, uint32_t dwtimerId)
Resets the timer allocated to the application which is created by phPlatform_Timer_Create.