1.3.5.1.12 MAC_RF_StartRequest Function

C

void MAC_RF_StartRequest
(
    MAC_START_REQUEST_PARAMS *startParams
);

Summary

The MAC_RF_StartRequest primitive starts a G3 Network and sets the device as the PAN Coordinator.

Description

Start operation asks MAC RF layer to start a G3 Network, turning the device into the PAN Coordinator of such Network, and setting the PAN Identifier. Result is provided in the corresponding Confirm callback.

Precondition

MAC_RF_Init routine must have been called before.

Parameters

ParamDescription
startParamsPointer to structure containing required parameters for request. See MAC_START_REQUEST_PARAMS

Returns

None.

Example

MAC_START_REQUEST_PARAMS params = {
    .panId = 0x1234
};

MAC_RF_StartRequest(&params);

// Wait for Start Confirm

Remarks

This primitive is only used by the PAN Coordinator node, which is the one in charge of Starting the PAN.