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 HAL object contains all handles to peripherals. When accessing a peripheral on a processor, use a HAL function along with the HAL handle for that processor to access its peripherals.
typedef struct _HAL_Obj_
{
ADC_Handle adcHandle; //!< the ADC handle
CLK_Handle clkHandle; //!< the clock handle
CPU_Handle cpuHandle; //!< the CPU handle
FLASH_Handle flashHandle; //!< the flash handle
GPIO_Handle gpioHandle; //!< the GPIO handle
OFFSET_Handle offsetHandle_I[3]; //!< the handles for the current offset estimators
OFFSET_Obj offset_I[3]; //!< the current offset objects
OFFSET_Handle offsetHandle_V[3]; //!< the handles for the voltage offset estimators
OFFSET_Obj offset_V[3]; //!< the voltage offset objects
OSC_Handle oscHandle; //!< the oscillator handle
PIE_Handle pieHandle; //<! the PIE handle
PLL_Handle pllHandle; //!< the PLL handle
PWM_Handle pwmHandle[3]; //<! the PWM handles
PWMDAC_Handle pwmDacHandle[3]; //<! the PWMDAC handles
PWR_Handle pwrHandle; //<! the power handle
TIMER_Handle timerHandle[3]; //<! the timer handles
WDOG_Handle wdogHandle; //!< the watchdog handle
HAL_AdcData_t adcBias; //!< the ADC bias
_iq current_sf; //!< the current scale factor, amps_pu/cnt
_iq voltage_sf; //!< the voltage scale factor, volts_pu/cnt
uint_least8_t numCurrentSensors; //!< the number of current sensors
uint_least8_t numVoltageSensors; //!< the number of voltage sensors
AFE_Handle afeHandle; //!< the AFE handle
#ifdef QEP
QEP_Handle qepHandle[1]; //!< the QEP handle
#endif
} HAL_Obj;