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
A set method puts a value into the variables that the object contains. In the example code for the Park transform below, the set function assigns sine and cosine values to sinTh and cosTh object variables.
The set method takes as parameters the object handle and in the Park transform example, the angle θ. Set functions do not return any values.
static inline void PARK_setup(PARK_Handle parkHandle,const _iq angle_pu)
{
PARK_Obj *park = (PARK_Obj *)parkHandle;
park->sinTh = _IQsinPU(angle_pu);
park->cosTh = _IQcosPU(angle_pu);
return;
}