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
Param | Description |
---|---|
handle | A valid handle which identifies the Mac Wrapper instance |
rstParams | Pointer 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, ¶ms);
// Wait for Reset Confirm
Remarks
None.