SPRUHJ1I January 2013 – October 2021 TMS320F2802-Q1 , TMS320F28026-Q1 , TMS320F28026F , TMS320F28027-Q1 , TMS320F28027F , TMS320F28027F-Q1 , TMS320F28052-Q1 , TMS320F28052F , TMS320F28052F-Q1 , TMS320F28052M , TMS320F28052M-Q1 , TMS320F28054-Q1 , TMS320F28054F , TMS320F28054F-Q1 , TMS320F28054M , TMS320F28054M-Q1 , TMS320F2806-Q1 , TMS320F28062-Q1 , TMS320F28062F , TMS320F28062F-Q1 , TMS320F28068F , TMS320F28068M , TMS320F28069-Q1 , TMS320F28069F , TMS320F28069F-Q1 , TMS320F28069M , TMS320F28069M-Q1
The init method is only used to point a handle to an object. Code for the Park transform init method is shown.
The init method only takes two parameters, first the address of the object and second is the size (in bytes) of the object. After the object is created, the other methods are used.
PARK_Handle PARK_init(void *pMemory,const size_t numBytes)
{
PARK_Handle parkHandle;
if(numBytes < sizeof(PARK_Obj))
return((PARK_Handle)NULL);
// assign the handle
parkHandle = (PARK_Handle)pMemory;
return(parkHandle);
}