1.2.4.23 DLL_SetRequest Function
C
DLL_RESULT DLL_SetRequest (
DLL_IB_ATTRIBUTE attribute,
uint16_t index,
const DLL_IB_VALUE *ibValue
);
Summary
The DLL_SetRequest primitive sets the value of an attribute in the DLL 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 DLL_IB_ATTRIBUTE Enum |
|
index |
Index of element in case Attribute is a table. Otherwise index must be set to '0' |
|
ibValue |
Pointer to DLL_IB_VALUE object where value is contained. See DLL_IB_VALUE Struct |
Returns
Result of set operation as a DLL_RESULT Enum.
Example
DLL_RESULT result;
uint32_t time = 20000;
const DLL_IB_VALUE value;
value.length = 4;
memcpy(value.value, time, sizeof(time));
result = DLL_SetRequest(MAC_ADDITIONAL_DELAY_US_IB, 0, &value);
if (result == DLL_RESULT_SUCCESS)
{
/* Parameter correctly set */
}
Remarks
None.
