42 #include "sw/drivers/adc/src/32b/f28x/f2806x/adc.h"
43 #include "sw/drivers/clk/src/32b/f28x/f2806x/clk.h"
44 #include "sw/drivers/cpu/src/32b/f28x/f2806x/cpu.h"
45 #include "sw/drivers/flash/src/32b/f28x/f2806x/flash.h"
46 #include "sw/drivers/gpio/src/32b/f28x/f2806x/gpio.h"
47 #include "sw/drivers/osc/src/32b/f28x/f2806x/osc.h"
48 #include "sw/drivers/pie/src/32b/f28x/f2806x/pie.h"
49 #include "sw/drivers/pll/src/32b/f28x/f2806x/pll.h"
50 #include "sw/drivers/pwm/src/32b/f28x/f2806x/pwm.h"
51 #include "sw/drivers/pwmdac/src/32b/f28x/f2806x/pwmdac.h"
52 #include "sw/drivers/pwr/src/32b/f28x/f2806x/pwr.h"
53 #include "sw/drivers/spi/src/32b/f28x/f2806x/spi.h"
54 #include "sw/drivers/timer/src/32b/f28x/f2806x/timer.h"
55 #include "sw/drivers/wdog/src/32b/f28x/f2806x/wdog.h"
56 #include "sw/drivers/drvic/drv8301/src/32b/f28x/f2806x/drv8301.h"
60 #include "sw/drivers/qep/src/32b/f28x/f2806x/qep.h"
178 QEP_Handle qepHandle[1];
230 #endif // end of _HAL_OBJ_H_ definition
OFFSET_Handle offsetHandle_I[3]
the handles for the current offset estimators
OFFSET_Obj offset_V[3]
the voltage offset objects
Contains the public interface to the types definitions.
SPI_Handle spiBHandle
the SPI handle
Contains the public interface to the offset (OFFSET) module routines.
CLK_Handle clkHandle
the clock handle
DRV8301_Obj drv8301
the drv8301 interface object
_iq current_sf
the current scale factor, amps_pu/cnt
HAL_AdcData_t adcBias
the ADC bias
FLASH_Handle flashHandle
the flash handle
PWMDAC_Handle pwmDacHandle[3]
Contains public interface to the micro-second delay function.
MATH_vec3 Tabc
the PWM time-durations for each motor phase
struct _HAL_Obj_ * HAL_Handle
Defines the HAL handle.
Defines a three element vector.
void HAL_runOffsetEst(HAL_Handle handle, const HAL_AdcData_t *pAdcData)
Runs offset estimation.
struct _HAL_DacData_t_ HAL_DacData_t
Defines the DAC data.
uint_least8_t numCurrentSensors
the number of current sensors
struct _OFFSET_Obj_ * OFFSET_Handle
Defines the OFFSET handle.
SPI_Handle spiAHandle
the SPI handle
_iq voltage_sf
the voltage scale factor, volts_pu/cnt
WDOG_Handle wdogHandle
the watchdog handle
struct _HAL_PwmData_t_ HAL_PwmData_t
Defines the PWM data.
struct _HAL_AdcData_t_ HAL_AdcData_t
Defines the ADC data.
OSC_Handle oscHandle
the oscillator handle
ADC_Handle adcHandle
the ADC handle
CPU_Handle cpuHandle
the CPU handle
struct _HAL_Obj_ HAL_Obj
Defines the hardware abstraction layer (HAL) data.
HAL_Obj hal
Defines the HAL object.
TIMER_Handle timerHandle[3]
MATH_vec3 V
the voltage values
MATH_vec3 I
the current values
OFFSET_Obj offset_I[3]
the current offset objects
PLL_Handle pllHandle
the PLL handle
DRV8301_Handle drv8301Handle
the drv8301 interface handle
uint_least8_t numVoltageSensors
the number of voltage sensors
static void OFFSET_run(OFFSET_Handle handle, const _iq inputValue)
Runs an offset filter of the form y[n] = beta*(x[n]+bias) + (1 - beta)*y[n-1] y -> The DC offset x ->...
OFFSET_Handle offsetHandle_V[3]
the handles for the voltage offset estimators
Defines the hardware abstraction layer (HAL) data.
GPIO_Handle gpioHandle
the GPIO handle
Defines the offset (OFFSET) object.