1.4.3.22 PAL_GetZCT Function

C

uint8_t PAL_GetZCT(uint16_t pch, uint32_t *zct);

Summary

Get zero-cross time (ZCT).

Description

This function is used to get the value of the zero-cross time of the mains and the time between the last transmission or reception and the zero cross of the mains.

Precondition

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

Parameters

ParamDescription
pchPhysical channel
zctZero time output parameter

Returns

PAL_CFG_SUCCESS - If successful

PAL_CFG_INVALID_INPUT - If unsuccessful

Example

 
    uint8_t result=PAL_CFG_SUCCESS;
    uint8_t zct=0;
    uint16_t pch=1;

    result = PAL_GetZCT(pch, &zct);

Remarks

Not available for both PHY Serial and RF medium.