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
This should be done with the global variable declarations in the main source file. In the Lab 13d project this structure is included in the ST_Obj structure that is declared as part of the spintac_position.h header file.
ST_Obj st_obj; // The SpinTAC Object
ST_Handle stHandle; // The SpinTAC Handle
_iq gVendFwdButton = 0; // Button to advance the displayed item
_iq gVendSelectButton = 0; // Button to vend the displayed item
uint16_t gVendInventory[4] = {VEND_INITIAL_INVENTORY, VEND_INITIAL_INVENTORY,
VEND_INITIAL_INVENTORY, VEND_INITIAL_INVENTORY};
VEND_State_e gVendAvailableItem = VEND_ITEM0; // Current item available to vend
// Configuration array for SpinTAC Position Plan
uint32_t stPosPlanCfgArray[ST_POSPLAN_CFG_ARRAY_DWORDS];
This example is if you do not wish to use the ST_Obj structure that is declared in the spintac_position.h header file.
ST_PosPlan_t stPosPlan; //The SpinTAC Position Plan Object
ST_POSPLAN_Handle stPosPlanHandle; //The SpinTAC Position Plan Handle
_iq gVendFwdButton = 0; // Button to advance the displayed item
_iq gVendSelectButton = 0; // Button to vend the displayed item
uint16_t gVendInventory[4] = {VEND_INITIAL_INVENTORY, VEND_INITIAL_INVENTORY,
VEND_INITIAL_INVENTORY, VEND_INITIAL_INVENTORY};
VEND_State_e gVendAvailableItem = VEND_ITEM0; // Current item available to vend
// Configuration array for SpinTAC Position Plan
uint32_t stPosPlanCfgArray[ST_POSPLAN_CFG_ARRAY_DWORDS];