5.1.4.2 CS_ReadParameter Function

Syntax

void CS_ReadParameter(CS_MemoryItemId_t parameterId, void *memoryPtr);

Description

This function gets the value of the parameter specified by its ID and writes it to the provided address in the memory.

The function reads the value of a CS parameter specified by its ID. A parameter ID is a constant; the user can obtain its name by adding _ID suffix to the name of the parameter. For example, the identifier of the CS_NWK_PANID parameter is CS_NWK_PANID_ID.

The function copies the value to the location in memory specified by the second argument. For example, reading the extended address of the device is performed the following way:
ExtAddr_t ownExtAddr;
CS_ReadParameter(CS_UID_ID, &ownExtAddr);
Input Parameters
Parameter NameDescription
[in] parameterId ID of the parameter to be read
[in] parameterIdA pointer where the parameter’s value is written
Return Type and Values
  • None