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
Get methods return object variables. Only two variables are contained in the Park object. Because the two variables contained in Park are needed outside of the object, there are two get methods. One of the get methods is shown.
The get method returns only the variable that the method is named for. In the example code for the Park object get method, the sinTh variable is returned. A handle to the object is the only variable that is passed to the get method. Only one variable is returned by a get method.
static inline _iq PARK_getSinTh(PARK_Handle parkHandle)
{
PARK_Obj *park = (PARK_Obj *)parkHandle;
return(park->sinTh);
}