1.4.3.29 PAL_GetCCA Function
C
uint8_t PAL_GetCCA(uint16_t pch, uint8_t *pState);
Summary
Get clear pch assessment mode value.
Description
This routine is used to get the clear pch assesment mode. The pch state helps to know whether or not the RF physical medium is free.
Precondition
The PAL_Initialize function should have been called before calling this function.
Parameters
Param | Description |
---|---|
pch | Physical channel |
pState | Channel state (0: busy, 1: free) of RF module |
Returns
PAL_CFG_SUCCESS - If successful
PAL_CFG_INVALID_INPUT - If unsuccessful
Example
uint8_t result=PAL_CFG_SUCCESS;
uint8_t pState=0;
uint16 pch = 512;
result = PAL_GetCCA(pch, &pState);
Remarks
Only implemented in PHY RF interface.