1.4.3.33 PAL_GetConfiguration Function
C
uint8_t PAL_GetConfiguration(uint16_t pch, uint16_t id, void *val,
uint16_t length);
Summary
Get a PHY attribute.
Description
This function is used to get a PHY attribute from the selected medium.
Precondition
The PAL_Initialize function should have been called before calling this function.
Parameters
Param | Description |
---|---|
pch | Physical channel |
id | Identifiers requested from the MAC layer |
val | Output parameter value |
length | Length of the parameter |
Returns
PAL_CFG_SUCCESS - If successful
PAL_CFG_INVALID_INPUT - If unsuccessful
Example
uint8_t result=PAL_CFG_SUCCESS;
uint16_t id=PAL_ID_CFG_ATTENUATION;
void val=0;
uint16_t len=1;
uint16_t pch = 16;
result = PAL_GetConfiguration(pch, id, &val, len);
Remarks
None