1.3.2.3.1 MAC_WRP_Initialize Function
C
SYS_MODULE_OBJ MAC_WRP_Initialize ( const SYS_MODULE_INDEX index );
Summary
Initializes the MAC Wrapper module for the specified Index.
Description
This routine initializes the MAC Wrapper module making it ready for clients to open and use.
Parameters
Param | Description |
---|---|
index | Index for the instance to be initialized (single instance allowed) |
Returns
If successful, returns a valid module instance object. Otherwise, returns SYS_MODULE_OBJ_INVALID.
Example
SYS_MODULE_OBJ sysObjMacWrp;
// Populate initData if needed
sysObjMacWrp = MAC_WRP_Initialize(G3_MAC_WRP_INDEX_0);
if (sysObjMacWrp == SYS_MODULE_OBJ_INVALID)
{
// Handle error
}
Remarks
This routine must be called before any other MAC Wrapper routine is called.