1.3.5.1.5 PRIME_API_Initialize Function
C
void PRIME_API_Initialize
(
PRIME_API_INIT *init,
bool isRestart,
uint8_t primeVersion
)
Summary
Initializes the PRIME Library.
Description
This routine initializes the PRIME Library.
Precondition
None.
Parameters
Param | Description |
---|---|
init |
Pointer to the init data structure containing any data necessary to initialize the module. |
isRestart | Flag to indicate if this is a restart |
primeVersion | PRIME version to run |
Returns
None.
Example
PRIME_API_INIT init;
init.palIndex = PRIME_PAL_INDEX;
init.halApi = (HAL_API*)&halApi;
init.mngPlaneUsiPort = PRIME_MNG_PLANE_USI_INDEX;
PRIME_API_Initialize(&init, false, PRIME_VERSION_1_4);
Remarks
This routine is normally not called directly by an application. The PRIME application must use the function located in the PRIME API.