1.4.3.25 PAL_GetCD Function
C
uint8_t PAL_GetCD(uint16_t pch, uint8_t *cd, uint8_t *rssi, uint32_t *timeVal,
uint8_t *header);
Summary
Get the carrier detect signal.
Description
This routine is used to get the value of carrier detect signal.
Precondition
The PAL_Initialize function should have been called before calling this function.
Parameters
Param | Description |
---|---|
pch | Physical channel |
cd | Carrier detect signal output parameter |
rssi | Received signal strength indicator |
timeVal | Current time in us |
header | Header type |
Returns
PAL_CFG_SUCCESS - If successful
PAL_CFG_INVALID_INPUT- If unsuccessful
Example
uint8_t result=PAL_CFG_SUCCESS;
uint8_t cd=0;
uint8_t rssi=0;
uint32_t timeVal=0;
uint8_t header=0;
uint16_t pch=1;
result = PAL_GetCD(pch, &cd, &rssi, &timeVal, &header);
Remarks
Not available for both PHY Serial and PHY RF.