1.3.4.1.13 MAC_PLC_StartRequest Function

C

void MAC_PLC_StartRequest
(
    MAC_START_REQUEST_PARAMS *startParams
);

Summary

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

Description

Start operation asks MAC PLC 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_PLC_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_PLC_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.