1.3.2.3.14 MAC_WRP_ResetRequest Function

C

void MAC_WRP_ResetRequest
(
    MAC_WRP_HANDLE handle,
    MAC_WRP_RESET_REQUEST_PARAMS *rstParams
);

Summary

The MAC_WRP_ResetRequest primitive resets the MAC Wrapper module.

Description

Reset operation initializes MAC Wrapper State Machine and PIB to their default values. Result is provided in the corresponding Confirm callback.

Precondition

A valid handle has to be obtained before calling this function, by means of MAC_WRP_Open function.

Parameters

ParamDescription
handleA valid handle which identifies the Mac Wrapper instance
rstParamsPointer to structure containing required parameters for request. See MAC_WRP_RESET_REQUEST_PARAMS

Returns

None.

Example

// ...
MAC_WRP_HANDLE handle;
handle = MAC_WRP_Open(G3_MAC_WRP_INDEX_0, MAC_WRP_BAND_CENELEC_A);
// ...

MAC_WRP_RESET_REQUEST_PARAMS params = {
    .setDefaultPib = true
};

MAC_WRP_ResetRequest(handle, &params);

// Wait for Reset Confirm

Remarks

None.