1.5.4.22 AL_SetRequest Function

C

AL_RESULT AL_SetRequest (
        AL_IB_ATTRIBUTE attribute,
        uint16_t index,
        const AL_IB_VALUE *ibValue
);

Summary

The AL_SetRequest primitive sets the value of an attribute in the AL layer Parameter Information Base (IB).

Description

SetRequest primitive is used to set the value of an IB.

Result of set operation is provided upon function call return, in the return result code.

Parameters

Param Description

attribute

Identifier of the Attribute to provide value. See AL_IB_ATTRIBUTE Enum

index

Index of element in case Attribute is a table. Otherwise index must be set to '0'

ibValue

Pointer to AL_IB_VALUE object where value is contained. See AL_IB_VALUE Struct

Returns

Result of set operation as a AL_RESULT Enum.

Example

    AL_RESULT result;
    uint32_t time = 20000;
    const AL_IB_VALUE value;

    value.length = 4;
    memcpy(value.value, time, sizeof(time));

    result = AL_SetRequest(AL_MAC_ADDITIONAL_DELAY_US_IB, 0, &value);
    if (result == AL_RESULT_SUCCESS)
    {
        /* Parameter correctly set */
    }

Remarks

None.