1.3.5.3.2 MAC_Initialize Function

C

void MAC_Initialize(MAC_VERSION_INFO *macInfo, uint8_t secProfile);

Summary

Initializes the PRIME MAC layer.

Description

This routine initializes the PRIME MAC layer.

Precondition

The PRIME PAL status should be SYS_STATUS_READY before calling this function.

Parameters

ParamDescription
macInfoPointer to the MAC version information
secProfileSecurity profile (0-2)

Returns

None.

Example

MAC_VERSION_INFO macInfo;
    
macInfo.fwVersion = "HS14.01.01\0\0\0\0\0\0";
macInfo.fwModel = "PIC32CXXPL460";
macInfo.fwVendor = "MCHP";
macInfo.pibVendor = 0;
macInfo.pibModel = 0x3941;
    
MAC_Initialize(&macInfo, 0);

Remarks

This routine is normally not called directly by an application. It is called by the PRIME Stack initialization routine.