1.2.5.42 ADP_MacSetRequest Function

C

void ADP_MacSetRequest (
    uint32_t attributeId,
    uint16_t attributeIndex,
    uint8_t attributeLength,
    const uint8_t *pAttributeValue
);

Summary

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

Description

The ADP MAC Set Request primitive allows the upper layer to set the value of an attribute in the MAC information base. The upper layer cannot access directly the MAC layer while ADP is running. Result is provided in the corresponding ADP MAC Set Confirm callback.

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

Returns

None.

Example

uint8_t pAttributeValue[144];

pAttributeValue[0] = 5;
ADP_MacSetRequest(MAC_WRP_PIB_MAX_BE, 0, 1, pAttributeValue);
// Wait for MAC Set Confirm

Remarks

None.