1.2.5.43 ADP_SetRequest Function

C

void ADP_SetRequest (
    uint32_t attributeId,
    uint16_t attributeIndex,
    uint8_t attributeLength,
    const uint8_t *pAttributeValue,
    ADP_SET_CFM_PARAMS* pSetConfirm
);

Summary

This primitive sets the value of an attribute in the MAC information base synchronously.

Description

The ADP MAC Set Request primitive allows the upper layer to set the value of an attribute in the MAC information base synchronously. 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
attributeLengthThe length of the value of the attribute to set
pAttributeValuePointer to the value of the attribute to set
pSetConfirmPointer to Set Confirm parameters containing result. See ADP_SET_CFM_PARAMS

Returns

None.

Example

uint8_t pAttributeValue[144];
ADP_SET_CFM_PARAMS setConfirm;

pAttributeValue[0] = 5;
ADP_MacSetRequestSync(MAC_WRP_PIB_MAX_BE, 0, 1, pAttributeValue,
    &setConfirm);

// Check the result
if (setConfirm->status == G3_SUCCESS)
{

}

Remarks

None.