1.4.3.23 PAL_GetTimer Function

C

uint8_t PAL_GetTimer(uint16_t pch, uint32_t *timer);

Summary

Get the current PHY time in us.

Description

This routine is used to get current PHY time.

Precondition

The PAL_Initialize function should have been called before calling this function.

Parameters

ParamDescription
pchPhysical channel
timerCurrent output time of PHY

Returns

PAL_CFG_SUCCESS - If successful

PAL_CFG_INVALID_INPUT - If unsuccessful

Example

 
    uint8_t result=PAL_CFG_SUCCESS;
    uint32_t timer=0;
    uint16_t pch=1;

    result = PAL_GetTimer(pch, &timer);

Remarks

None.