1.2.5.35 ADP_MacGetRequestSync Function

C

void ADP_MacGetRequestSync (
    uint32_t attributeId,
    uint16_t attributeIndex,
    ADP_MAC_GET_CFM_PARAMS* pGetConfirm
);

Summary

This primitive gets the value of an attribute from the MAC information base synchronously.

Description

The ADP MAC Get Request primitive allows the upper layer to get the value of an attribute from the MAC information base synchronously. The upper layer cannot access directly the MAC layer while ADP is running. Result is provided directly in one of the function call parameters.

Parameters

ParamDescription
attributeIdThe identifier of the MAC IB attribute to read. See MAC_WRP_PIB_ATTRIBUTE
attributeIndexThe index within the table of the specified IB attribute to read
pGetConfirmPointer to Get Confirm parameters containinf result and value. See ADP_MAC_GET_CFM_PARAMS

Returns

None.

Example

ADP_MAC_GET_CFM_PARAMS getConfirm;

ADP_MacGetRequestSync(MAC_WRP_PIB_SHORT_ADDRESS, 0, &getConfirm);

// Check the result
if (getConfirm->status == G3_SUCCESS)
{
    // Value is stored in getConfirm->attributeValue
}

Remarks

None.