MotorWare f2806x Module API Documentation
Macros | Enumerations | Functions
HAL

Macros

#define DRV8301_SPI
 Defines that a DRV8301 chip SPI port is used on the board. More...
 
#define Device_cal   (void (*)(void))0x3D7C80
 
#define FP_SCALE   32768
 Defines used in oscillator calibration functions. More...
 
#define FP_ROUND   FP_SCALE/2
 Defines the quantity added to Q15 numbers before converting to integer to round the number. More...
 
#define OSC_POSTRIM   32
 Defines the amount to add to Q16.15 fixed point number to shift from a fine trim range of. More...
 
#define OSC_POSTRIM_OFF   FP_SCALE*OSC_POSTRIM
 
#define getOsc1FineTrimSlope()   (*(int16_t (*)(void))0x3D7E90)()
 The following functions return reference values stored in OTP. More...
 
#define getOsc1FineTrimOffset()   (*(int16_t (*)(void))0x3D7E93)()
 Defines the oscillator 1 fine trim at high temp. More...
 
#define getOsc1CoarseTrim()   (*(int16_t (*)(void))0x3D7E96)()
 Defines the oscillator 1 coarse trim. More...
 
#define getOsc2FineTrimSlope()   (*(int16_t (*)(void))0x3D7E99)()
 Defines the slope used to compensate oscillator 2 (fine trim steps / ADC code). Stored. More...
 
#define getOsc2FineTrimOffset()   (*(int16_t (*)(void))0x3D7E9C)()
 Defines the oscillator 2 fine trim at high temp. More...
 
#define getOsc2CoarseTrim()   (*(int16_t (*)(void))0x3D7E9F)()
 Defines the oscillator 2 coarse trim. More...
 
#define getRefTempOffset()   (*(int16_t (*)(void))0x3D7EA2)()
 Defines the ADC reading of temperature sensor at reference temperature for compensation. More...
 
#define HAL_PWM_DBFED_CNT   1
 Defines the PWM deadband falling edge delay count (system clocks) More...
 
#define HAL_PWM_DBRED_CNT   1
 Defines the PWM deadband rising edge delay count (system clocks) More...
 
#define HAL_turnLedOff   HAL_setGpioLow
 Defines the function to turn LEDs off. More...
 
#define HAL_turnLedOn   HAL_setGpioHigh
 Defines the function to turn LEDs on. More...
 
#define HAL_toggleLed   HAL_toggleGpio
 Defines the function to turn LEDs on. More...
 
#define DRV8301_SPI
 Defines that a DRV8301 chip SPI port is used on the board. More...
 
#define Device_cal   (void (*)(void))0x3D7C80
 
#define FP_SCALE   32768
 Defines used in oscillator calibration functions. More...
 
#define FP_ROUND   FP_SCALE/2
 Defines the quantity added to Q15 numbers before converting to integer to round the number. More...
 
#define OSC_POSTRIM   32
 Defines the amount to add to Q16.15 fixed point number to shift from a fine trim range of. More...
 
#define OSC_POSTRIM_OFF   FP_SCALE*OSC_POSTRIM
 
#define getOsc1FineTrimSlope()   (*(int16_t (*)(void))0x3D7E90)()
 The following functions return reference values stored in OTP. More...
 
#define getOsc1FineTrimOffset()   (*(int16_t (*)(void))0x3D7E93)()
 Defines the oscillator 1 fine trim at high temp. More...
 
#define getOsc1CoarseTrim()   (*(int16_t (*)(void))0x3D7E96)()
 Defines the oscillator 1 coarse trim. More...
 
#define getOsc2FineTrimSlope()   (*(int16_t (*)(void))0x3D7E99)()
 Defines the slope used to compensate oscillator 2 (fine trim steps / ADC code). Stored. More...
 
#define getOsc2FineTrimOffset()   (*(int16_t (*)(void))0x3D7E9C)()
 Defines the oscillator 2 fine trim at high temp. More...
 
#define getOsc2CoarseTrim()   (*(int16_t (*)(void))0x3D7E9F)()
 Defines the oscillator 2 coarse trim. More...
 
#define getRefTempOffset()   (*(int16_t (*)(void))0x3D7EA2)()
 Defines the ADC reading of temperature sensor at reference temperature for compensation. More...
 
#define HAL_PWM_DBFED_CNT   1
 Defines the PWM deadband falling edge delay count (system clocks) More...
 
#define HAL_PWM_DBRED_CNT   1
 Defines the PWM deadband rising edge delay count (system clocks) More...
 
#define HAL_turnLedOff   HAL_setGpioLow
 Defines the function to turn LEDs off. More...
 
#define HAL_turnLedOn   HAL_setGpioHigh
 Defines the function to turn LEDs on. More...
 
#define HAL_toggleLed   HAL_toggleGpio
 Defines the function to turn LEDs on. More...
 
#define DRV8301_SPI
 Defines that a DRV8301 chip SPI port is used on the board. More...
 
#define Device_cal   (void (*)(void))0x3D7C80
 
#define FP_SCALE   32768
 Defines used in oscillator calibration functions. More...
 
#define FP_ROUND   FP_SCALE/2
 Defines the quantity added to Q15 numbers before converting to integer to round the number. More...
 
#define OSC_POSTRIM   32
 Defines the amount to add to Q16.15 fixed point number to shift from a fine trim range of. More...
 
#define OSC_POSTRIM_OFF   FP_SCALE*OSC_POSTRIM
 
#define getOsc1FineTrimSlope()   (*(int16_t (*)(void))0x3D7E90)()
 The following functions return reference values stored in OTP. More...
 
#define getOsc1FineTrimOffset()   (*(int16_t (*)(void))0x3D7E93)()
 Defines the oscillator 1 fine trim at high temp. More...
 
#define getOsc1CoarseTrim()   (*(int16_t (*)(void))0x3D7E96)()
 Defines the oscillator 1 coarse trim. More...
 
#define getOsc2FineTrimSlope()   (*(int16_t (*)(void))0x3D7E99)()
 Defines the slope used to compensate oscillator 2 (fine trim steps / ADC code). Stored. More...
 
#define getOsc2FineTrimOffset()   (*(int16_t (*)(void))0x3D7E9C)()
 Defines the oscillator 2 fine trim at high temp. More...
 
#define getOsc2CoarseTrim()   (*(int16_t (*)(void))0x3D7E9F)()
 Defines the oscillator 2 coarse trim. More...
 
#define getRefTempOffset()   (*(int16_t (*)(void))0x3D7EA2)()
 Defines the ADC reading of temperature sensor at reference temperature for compensation. More...
 
#define HAL_PWM_DBFED_CNT   (uint16_t)(0.050 * (float_t)USER_SYSTEM_FREQ_MHz)
 Defines the PWM deadband falling edge delay count (system clocks) More...
 
#define HAL_PWM_DBRED_CNT   (uint16_t)(0.050 * (float_t)USER_SYSTEM_FREQ_MHz)
 Defines the PWM deadband rising edge delay count (system clocks) More...
 
#define HAL_readSW   HAL_readGpio
 Defines the function to read pushbuttons. More...
 
#define HAL_turnLedOff   HAL_setGpioLow
 Defines the function to turn LEDs off. More...
 
#define HAL_turnLedOn   HAL_setGpioHigh
 Defines the function to turn LEDs on. More...
 
#define HAL_toggleLed   HAL_toggleGpio
 Defines the function to turn LEDs on. More...
 
#define DRV8301_SPI
 Defines that a DRV8301 chip SPI port is used on the board. More...
 
#define Device_cal   (void (*)(void))0x3D7C80
 
#define FP_SCALE   32768
 Defines used in oscillator calibration functions. More...
 
#define FP_ROUND   FP_SCALE/2
 Defines the quantity added to Q15 numbers before converting to integer to round the number. More...
 
#define OSC_POSTRIM   32
 Defines the amount to add to Q16.15 fixed point number to shift from a fine trim range of. More...
 
#define OSC_POSTRIM_OFF   FP_SCALE*OSC_POSTRIM
 
#define getOsc1FineTrimSlope()   (*(int16_t (*)(void))0x3D7E90)()
 The following functions return reference values stored in OTP. More...
 
#define getOsc1FineTrimOffset()   (*(int16_t (*)(void))0x3D7E93)()
 Defines the oscillator 1 fine trim at high temp. More...
 
#define getOsc1CoarseTrim()   (*(int16_t (*)(void))0x3D7E96)()
 Defines the oscillator 1 coarse trim. More...
 
#define getOsc2FineTrimSlope()   (*(int16_t (*)(void))0x3D7E99)()
 Defines the slope used to compensate oscillator 2 (fine trim steps / ADC code). Stored. More...
 
#define getOsc2FineTrimOffset()   (*(int16_t (*)(void))0x3D7E9C)()
 Defines the oscillator 2 fine trim at high temp. More...
 
#define getOsc2CoarseTrim()   (*(int16_t (*)(void))0x3D7E9F)()
 Defines the oscillator 2 coarse trim. More...
 
#define getRefTempOffset()   (*(int16_t (*)(void))0x3D7EA2)()
 Defines the ADC reading of temperature sensor at reference temperature for compensation. More...
 
#define HAL_PWM_DBFED_CNT   1
 Defines the PWM deadband falling edge delay count (system clocks) More...
 
#define HAL_PWM_DBRED_CNT   1
 Defines the PWM deadband rising edge delay count (system clocks) More...
 
#define HAL_turnLedOff   HAL_setGpioLow
 Defines the function to turn LEDs off. More...
 
#define HAL_turnLedOn   HAL_setGpioHigh
 Defines the function to turn LEDs on. More...
 
#define HAL_toggleLed   HAL_toggleGpio
 Defines the function to turn LEDs on. More...
 
#define HAL_GPIO_SW1   GPIO_Number_9
 Defines the GPIO pin number for drv8301kit_revD Switch 1. More...
 
#define HAL_GPIO_SW2   GPIO_Number_7
 Defines the GPIO pin number for drv8301kit_revD Switch 2. More...
 
#define Device_cal   (void (*)(void))0x3D7C80
 
#define FP_SCALE   32768
 Defines used in oscillator calibration functions. More...
 
#define FP_ROUND   FP_SCALE/2
 Defines the quantity added to Q15 numbers before converting to integer to round the number. More...
 
#define OSC_POSTRIM   32
 Defines the amount to add to Q16.15 fixed point number to shift from a fine trim range of. More...
 
#define OSC_POSTRIM_OFF   FP_SCALE*OSC_POSTRIM
 
#define getOsc1FineTrimSlope()   (*(int16_t (*)(void))0x3D7E90)()
 The following functions return reference values stored in OTP. More...
 
#define getOsc1FineTrimOffset()   (*(int16_t (*)(void))0x3D7E93)()
 Defines the oscillator 1 fine trim at high temp. More...
 
#define getOsc1CoarseTrim()   (*(int16_t (*)(void))0x3D7E96)()
 Defines the oscillator 1 coarse trim. More...
 
#define getOsc2FineTrimSlope()   (*(int16_t (*)(void))0x3D7E99)()
 Defines the slope used to compensate oscillator 2 (fine trim steps / ADC code). Stored. More...
 
#define getOsc2FineTrimOffset()   (*(int16_t (*)(void))0x3D7E9C)()
 Defines the oscillator 2 fine trim at high temp. More...
 
#define getOsc2CoarseTrim()   (*(int16_t (*)(void))0x3D7E9F)()
 Defines the oscillator 2 coarse trim. More...
 
#define getRefTempOffset()   (*(int16_t (*)(void))0x3D7EA2)()
 Defines the ADC reading of temperature sensor at reference temperature for compensation. More...
 
#define HAL_PWM_DBFED_CNT   1
 Defines the PWM deadband falling edge delay count (system clocks) More...
 
#define HAL_PWM_DBRED_CNT   1
 Defines the PWM deadband rising edge delay count (system clocks) More...
 
#define HAL_turnLedOff   HAL_setGpioLow
 Defines the function to turn LEDs off. More...
 
#define HAL_turnLedOn   HAL_setGpioHigh
 Defines the function to turn LEDs on. More...
 
#define HAL_toggleLed   HAL_toggleGpio
 Defines the function to turn LEDs on. More...
 
#define Device_cal   (void (*)(void))0x3D7C80
 
#define FP_SCALE   32768
 Defines used in oscillator calibration functions. More...
 
#define FP_ROUND   FP_SCALE/2
 Defines the quantity added to Q15 numbers before converting to integer to round the number. More...
 
#define OSC_POSTRIM   32
 Defines the amount to add to Q16.15 fixed point number to shift from a fine trim range of. More...
 
#define OSC_POSTRIM_OFF   FP_SCALE*OSC_POSTRIM
 
#define getOsc1FineTrimSlope()   (*(int16_t (*)(void))0x3D7E90)()
 The following functions return reference values stored in OTP. More...
 
#define getOsc1FineTrimOffset()   (*(int16_t (*)(void))0x3D7E93)()
 Defines the oscillator 1 fine trim at high temp. More...
 
#define getOsc1CoarseTrim()   (*(int16_t (*)(void))0x3D7E96)()
 Defines the oscillator 1 coarse trim. More...
 
#define getOsc2FineTrimSlope()   (*(int16_t (*)(void))0x3D7E99)()
 Defines the slope used to compensate oscillator 2 (fine trim steps / ADC code). Stored. More...
 
#define getOsc2FineTrimOffset()   (*(int16_t (*)(void))0x3D7E9C)()
 Defines the oscillator 2 fine trim at high temp. More...
 
#define getOsc2CoarseTrim()   (*(int16_t (*)(void))0x3D7E9F)()
 Defines the oscillator 2 coarse trim. More...
 
#define getRefTempOffset()   (*(int16_t (*)(void))0x3D7EA2)()
 Defines the ADC reading of temperature sensor at reference temperature for compensation. More...
 
#define HAL_PWM_DBFED_CNT   1
 Defines the PWM deadband falling edge delay count (system clocks) More...
 
#define HAL_PWM_DBRED_CNT   1
 Defines the PWM deadband rising edge delay count (system clocks) More...
 
#define HAL_turnLedOff   HAL_setGpioLow
 Defines the function to turn LEDs off. More...
 
#define HAL_turnLedOn   HAL_setGpioHigh
 Defines the function to turn LEDs on. More...
 
#define HAL_toggleLed   HAL_toggleGpio
 Defines the function to turn LEDs on. More...
 
#define Device_cal   (void (*)(void))0x3D7C80
 
#define FP_SCALE   32768
 Defines used in oscillator calibration functions. More...
 
#define FP_ROUND   FP_SCALE/2
 Defines the quantity added to Q15 numbers before converting to integer to round the number. More...
 
#define OSC_POSTRIM   32
 Defines the amount to add to Q16.15 fixed point number to shift from a fine trim range of. More...
 
#define OSC_POSTRIM_OFF   FP_SCALE*OSC_POSTRIM
 
#define getOsc1FineTrimSlope()   (*(int16_t (*)(void))0x3D7E90)()
 The following functions return reference values stored in OTP. More...
 
#define getOsc1FineTrimOffset()   (*(int16_t (*)(void))0x3D7E93)()
 Defines the oscillator 1 fine trim at high temp. More...
 
#define getOsc1CoarseTrim()   (*(int16_t (*)(void))0x3D7E96)()
 Defines the oscillator 1 coarse trim. More...
 
#define getOsc2FineTrimSlope()   (*(int16_t (*)(void))0x3D7E99)()
 Defines the slope used to compensate oscillator 2 (fine trim steps / ADC code). Stored. More...
 
#define getOsc2FineTrimOffset()   (*(int16_t (*)(void))0x3D7E9C)()
 Defines the oscillator 2 fine trim at high temp. More...
 
#define getOsc2CoarseTrim()   (*(int16_t (*)(void))0x3D7E9F)()
 Defines the oscillator 2 coarse trim. More...
 
#define getRefTempOffset()   (*(int16_t (*)(void))0x3D7EA2)()
 Defines the ADC reading of temperature sensor at reference temperature for compensation. More...
 
#define HAL_PWM_DBFED_CNT   (uint16_t)(2.0 * (float_t)USER_SYSTEM_FREQ_MHz)
 Defines the PWM deadband falling edge delay count (system clocks) More...
 
#define HAL_PWM_DBRED_CNT   (uint16_t)(2.0 * (float_t)USER_SYSTEM_FREQ_MHz)
 Defines the PWM deadband rising edge delay count (system clocks) More...
 
#define HAL_readSW   HAL_readGpio
 Defines the function to read pushbuttons. More...
 
#define HAL_turnLedOff   HAL_setGpioLow
 Defines the function to turn LEDs off. More...
 
#define HAL_turnLedOn   HAL_setGpioHigh
 Defines the function to turn LEDs on. More...
 
#define HAL_toggleLed   HAL_toggleGpio
 Defines the function to turn LEDs on. More...
 
#define Device_cal   (void (*)(void))0x3D7C80
 
#define FP_SCALE   32768
 Defines used in oscillator calibration functions. More...
 
#define FP_ROUND   FP_SCALE/2
 Defines the quantity added to Q15 numbers before converting to integer to round the number. More...
 
#define OSC_POSTRIM   32
 Defines the amount to add to Q16.15 fixed point number to shift from a fine trim range of. More...
 
#define OSC_POSTRIM_OFF   FP_SCALE*OSC_POSTRIM
 
#define getOsc1FineTrimSlope()   (*(int16_t (*)(void))0x3D7E90)()
 The following functions return reference values stored in OTP. More...
 
#define getOsc1FineTrimOffset()   (*(int16_t (*)(void))0x3D7E93)()
 Defines the oscillator 1 fine trim at high temp. More...
 
#define getOsc1CoarseTrim()   (*(int16_t (*)(void))0x3D7E96)()
 Defines the oscillator 1 coarse trim. More...
 
#define getOsc2FineTrimSlope()   (*(int16_t (*)(void))0x3D7E99)()
 Defines the slope used to compensate oscillator 2 (fine trim steps / ADC code). Stored. More...
 
#define getOsc2FineTrimOffset()   (*(int16_t (*)(void))0x3D7E9C)()
 Defines the oscillator 2 fine trim at high temp. More...
 
#define getOsc2CoarseTrim()   (*(int16_t (*)(void))0x3D7E9F)()
 Defines the oscillator 2 coarse trim. More...
 
#define getRefTempOffset()   (*(int16_t (*)(void))0x3D7EA2)()
 Defines the ADC reading of temperature sensor at reference temperature for compensation. More...
 
#define HAL_PWM_DBFED_CNT   (uint16_t)(2.0 * (float_t)USER_SYSTEM_FREQ_MHz)
 Defines the PWM deadband falling edge delay count (system clocks) More...
 
#define HAL_PWM_DBRED_CNT   (uint16_t)(2.0 * (float_t)USER_SYSTEM_FREQ_MHz)
 Defines the PWM deadband rising edge delay count (system clocks) More...
 
#define HAL_turnLedOff   HAL_setGpioLow
 Defines the function to turn LEDs off. More...
 
#define HAL_turnLedOn   HAL_setGpioHigh
 Defines the function to turn LEDs on. More...
 
#define HAL_toggleLed   HAL_toggleGpio
 Defines the function to turn LEDs on. More...
 

Enumerations

enum  HAL_QepSelect_e {
  HAL_Qep_QEP1 =0, HAL_Qep_QEP2 =1, HAL_Qep_QEP1 =0, HAL_Qep_QEP2 =1,
  HAL_Qep_QEP1 =0, HAL_Qep_QEP2 =1, HAL_Qep_QEP1 =0, HAL_Qep_QEP2 =1,
  HAL_Qep_QEP1 =0, HAL_Qep_QEP2 =1
}
 Enumeration for the QEP setup. More...
 
enum  HAL_LedNumber_e {
  HAL_Gpio_LED2 =GPIO_Number_34, HAL_Gpio_LED3 =GPIO_Number_39, HAL_Gpio_LED2 =GPIO_Number_34, HAL_Gpio_LED3 =GPIO_Number_39,
  HAL_Gpio_LED2 =GPIO_Number_31, HAL_Gpio_LED3 =GPIO_Number_34, HAL_Gpio_LED2 =GPIO_Number_31, HAL_Gpio_LED3 =GPIO_Number_34,
  HAL_Gpio_LED2 =GPIO_Number_31, HAL_Gpio_LED3 =GPIO_Number_34, HAL_Gpio_LED2 =GPIO_Number_31, HAL_Gpio_LED3 =GPIO_Number_34,
  HAL_Gpio_LED2 =GPIO_Number_31, HAL_Gpio_LED3 =GPIO_Number_34, HAL_Gpio_LED2 =GPIO_Number_31, HAL_Gpio_LED3 =GPIO_Number_34
}
 Enumeration for the LED numbers. More...
 
enum  HAL_SensorType_e {
  HAL_SensorType_Current =0, HAL_SensorType_Voltage, HAL_SensorType_Current =0, HAL_SensorType_Voltage,
  HAL_SensorType_Current =0, HAL_SensorType_Voltage, HAL_SensorType_Current =0, HAL_SensorType_Voltage,
  HAL_SensorType_Current =0, HAL_SensorType_Voltage, HAL_SensorType_Current =0, HAL_SensorType_Voltage,
  HAL_SensorType_Current =0, HAL_SensorType_Voltage, HAL_SensorType_Current =0, HAL_SensorType_Voltage
}
 Enumeration for the sensor types. More...
 
enum  HAL_QepSelect_e {
  HAL_Qep_QEP1 =0, HAL_Qep_QEP2 =1, HAL_Qep_QEP1 =0, HAL_Qep_QEP2 =1,
  HAL_Qep_QEP1 =0, HAL_Qep_QEP2 =1, HAL_Qep_QEP1 =0, HAL_Qep_QEP2 =1,
  HAL_Qep_QEP1 =0, HAL_Qep_QEP2 =1
}
 Enumeration for the QEP setup. More...
 
enum  HAL_LedNumber_e {
  HAL_Gpio_LED2 =GPIO_Number_34, HAL_Gpio_LED3 =GPIO_Number_39, HAL_Gpio_LED2 =GPIO_Number_34, HAL_Gpio_LED3 =GPIO_Number_39,
  HAL_Gpio_LED2 =GPIO_Number_31, HAL_Gpio_LED3 =GPIO_Number_34, HAL_Gpio_LED2 =GPIO_Number_31, HAL_Gpio_LED3 =GPIO_Number_34,
  HAL_Gpio_LED2 =GPIO_Number_31, HAL_Gpio_LED3 =GPIO_Number_34, HAL_Gpio_LED2 =GPIO_Number_31, HAL_Gpio_LED3 =GPIO_Number_34,
  HAL_Gpio_LED2 =GPIO_Number_31, HAL_Gpio_LED3 =GPIO_Number_34, HAL_Gpio_LED2 =GPIO_Number_31, HAL_Gpio_LED3 =GPIO_Number_34
}
 Enumeration for the LED numbers. More...
 
enum  HAL_SensorType_e {
  HAL_SensorType_Current =0, HAL_SensorType_Voltage, HAL_SensorType_Current =0, HAL_SensorType_Voltage,
  HAL_SensorType_Current =0, HAL_SensorType_Voltage, HAL_SensorType_Current =0, HAL_SensorType_Voltage,
  HAL_SensorType_Current =0, HAL_SensorType_Voltage, HAL_SensorType_Current =0, HAL_SensorType_Voltage,
  HAL_SensorType_Current =0, HAL_SensorType_Voltage, HAL_SensorType_Current =0, HAL_SensorType_Voltage
}
 Enumeration for the sensor types. More...
 
enum  HAL_LedNumber_e {
  HAL_Gpio_LED2 =GPIO_Number_34, HAL_Gpio_LED3 =GPIO_Number_39, HAL_Gpio_LED2 =GPIO_Number_34, HAL_Gpio_LED3 =GPIO_Number_39,
  HAL_Gpio_LED2 =GPIO_Number_31, HAL_Gpio_LED3 =GPIO_Number_34, HAL_Gpio_LED2 =GPIO_Number_31, HAL_Gpio_LED3 =GPIO_Number_34,
  HAL_Gpio_LED2 =GPIO_Number_31, HAL_Gpio_LED3 =GPIO_Number_34, HAL_Gpio_LED2 =GPIO_Number_31, HAL_Gpio_LED3 =GPIO_Number_34,
  HAL_Gpio_LED2 =GPIO_Number_31, HAL_Gpio_LED3 =GPIO_Number_34, HAL_Gpio_LED2 =GPIO_Number_31, HAL_Gpio_LED3 =GPIO_Number_34
}
 Enumeration for the LED numbers. More...
 
enum  HAL_SwNumber_e { HAL_Gpio_SW1 =GPIO_Number_9, HAL_Gpio_SW2 =GPIO_Number_7 }
 Enumeration for the SW numbers. More...
 
enum  HAL_PwmFreq_e {
  HAL_PwmFreq_2_kHz = 22500, HAL_PwmFreq_3_kHz = 15000, HAL_PwmFreq_4_kHz = 11250, HAL_PwmFreq_5_kHz = 9000,
  HAL_PwmFreq_6_kHz = 7500, HAL_PwmFreq_8_kHz = 5625, HAL_PwmFreq_9_kHz = 5000, HAL_PwmFreq_10_kHz = 4500,
  HAL_PwmFreq_12_kHz = 3750, HAL_PwmFreq_15_kHz = 3000, HAL_PwmFreq_18_kHz = 2500, HAL_PwmFreq_20_kHz = 2250,
  HAL_PwmFreq_24_kHz = 1875, HAL_PwmFreq_25_kHz = 1800, HAL_PwmFreq_30_kHz = 1500, HAL_PwmFreq_36_kHz = 1250,
  HAL_PwmFreq_40_kHz = 1125, HAL_PwmFreq_45_kHz = 1000, HAL_PwmFreq_50_kHz = 900, HAL_PwmFreq_60_kHz = 750,
  HAL_PwmFreq_75_kHz = 600, HAL_PwmFreq_90_kHz = 500, HAL_PwmFreq_100_kHz = 450, HAL_PwmFreq_120_kHz = 375,
  HAL_PwmFreq_125_kHz = 360, HAL_PwmFreq_150_kHz = 300, HAL_PwmFreq_2_kHz = 22500, HAL_PwmFreq_3_kHz = 15000,
  HAL_PwmFreq_4_kHz = 11250, HAL_PwmFreq_5_kHz = 9000, HAL_PwmFreq_6_kHz = 7500, HAL_PwmFreq_8_kHz = 5625,
  HAL_PwmFreq_9_kHz = 5000, HAL_PwmFreq_10_kHz = 4500, HAL_PwmFreq_12_kHz = 3750, HAL_PwmFreq_15_kHz = 3000,
  HAL_PwmFreq_18_kHz = 2500, HAL_PwmFreq_20_kHz = 2250, HAL_PwmFreq_24_kHz = 1875, HAL_PwmFreq_25_kHz = 1800,
  HAL_PwmFreq_30_kHz = 1500, HAL_PwmFreq_36_kHz = 1250, HAL_PwmFreq_40_kHz = 1125, HAL_PwmFreq_45_kHz = 1000,
  HAL_PwmFreq_50_kHz = 900, HAL_PwmFreq_60_kHz = 750, HAL_PwmFreq_75_kHz = 600, HAL_PwmFreq_90_kHz = 500,
  HAL_PwmFreq_100_kHz = 450, HAL_PwmFreq_120_kHz = 375, HAL_PwmFreq_125_kHz = 360, HAL_PwmFreq_150_kHz = 300,
  HAL_PwmFreq_2_kHz = 22500, HAL_PwmFreq_3_kHz = 15000, HAL_PwmFreq_4_kHz = 11250, HAL_PwmFreq_5_kHz = 9000,
  HAL_PwmFreq_6_kHz = 7500, HAL_PwmFreq_8_kHz = 5625, HAL_PwmFreq_9_kHz = 5000, HAL_PwmFreq_10_kHz = 4500,
  HAL_PwmFreq_12_kHz = 3750, HAL_PwmFreq_15_kHz = 3000, HAL_PwmFreq_18_kHz = 2500, HAL_PwmFreq_20_kHz = 2250,
  HAL_PwmFreq_24_kHz = 1875, HAL_PwmFreq_25_kHz = 1800, HAL_PwmFreq_30_kHz = 1500, HAL_PwmFreq_36_kHz = 1250,
  HAL_PwmFreq_40_kHz = 1125, HAL_PwmFreq_45_kHz = 1000, HAL_PwmFreq_50_kHz = 900, HAL_PwmFreq_60_kHz = 750,
  HAL_PwmFreq_75_kHz = 600, HAL_PwmFreq_90_kHz = 500, HAL_PwmFreq_100_kHz = 450, HAL_PwmFreq_120_kHz = 375,
  HAL_PwmFreq_125_kHz = 360, HAL_PwmFreq_150_kHz = 300
}
 Enumeration for the PWM frequencies. More...
 
enum  HAL_SensorType_e {
  HAL_SensorType_Current =0, HAL_SensorType_Voltage, HAL_SensorType_Current =0, HAL_SensorType_Voltage,
  HAL_SensorType_Current =0, HAL_SensorType_Voltage, HAL_SensorType_Current =0, HAL_SensorType_Voltage,
  HAL_SensorType_Current =0, HAL_SensorType_Voltage, HAL_SensorType_Current =0, HAL_SensorType_Voltage,
  HAL_SensorType_Current =0, HAL_SensorType_Voltage, HAL_SensorType_Current =0, HAL_SensorType_Voltage
}
 Enumeration for the sensor types. More...
 
enum  HAL_QepSelect_e {
  HAL_Qep_QEP1 =0, HAL_Qep_QEP2 =1, HAL_Qep_QEP1 =0, HAL_Qep_QEP2 =1,
  HAL_Qep_QEP1 =0, HAL_Qep_QEP2 =1, HAL_Qep_QEP1 =0, HAL_Qep_QEP2 =1,
  HAL_Qep_QEP1 =0, HAL_Qep_QEP2 =1
}
 Enumeration for the QEP setup. More...
 
enum  HAL_LedNumber_e {
  HAL_Gpio_LED2 =GPIO_Number_34, HAL_Gpio_LED3 =GPIO_Number_39, HAL_Gpio_LED2 =GPIO_Number_34, HAL_Gpio_LED3 =GPIO_Number_39,
  HAL_Gpio_LED2 =GPIO_Number_31, HAL_Gpio_LED3 =GPIO_Number_34, HAL_Gpio_LED2 =GPIO_Number_31, HAL_Gpio_LED3 =GPIO_Number_34,
  HAL_Gpio_LED2 =GPIO_Number_31, HAL_Gpio_LED3 =GPIO_Number_34, HAL_Gpio_LED2 =GPIO_Number_31, HAL_Gpio_LED3 =GPIO_Number_34,
  HAL_Gpio_LED2 =GPIO_Number_31, HAL_Gpio_LED3 =GPIO_Number_34, HAL_Gpio_LED2 =GPIO_Number_31, HAL_Gpio_LED3 =GPIO_Number_34
}
 Enumeration for the LED numbers. More...
 
enum  HAL_SensorType_e {
  HAL_SensorType_Current =0, HAL_SensorType_Voltage, HAL_SensorType_Current =0, HAL_SensorType_Voltage,
  HAL_SensorType_Current =0, HAL_SensorType_Voltage, HAL_SensorType_Current =0, HAL_SensorType_Voltage,
  HAL_SensorType_Current =0, HAL_SensorType_Voltage, HAL_SensorType_Current =0, HAL_SensorType_Voltage,
  HAL_SensorType_Current =0, HAL_SensorType_Voltage, HAL_SensorType_Current =0, HAL_SensorType_Voltage
}
 Enumeration for the sensor types. More...
 
enum  HAL_LedNumber_e {
  HAL_Gpio_LED2 =GPIO_Number_34, HAL_Gpio_LED3 =GPIO_Number_39, HAL_Gpio_LED2 =GPIO_Number_34, HAL_Gpio_LED3 =GPIO_Number_39,
  HAL_Gpio_LED2 =GPIO_Number_31, HAL_Gpio_LED3 =GPIO_Number_34, HAL_Gpio_LED2 =GPIO_Number_31, HAL_Gpio_LED3 =GPIO_Number_34,
  HAL_Gpio_LED2 =GPIO_Number_31, HAL_Gpio_LED3 =GPIO_Number_34, HAL_Gpio_LED2 =GPIO_Number_31, HAL_Gpio_LED3 =GPIO_Number_34,
  HAL_Gpio_LED2 =GPIO_Number_31, HAL_Gpio_LED3 =GPIO_Number_34, HAL_Gpio_LED2 =GPIO_Number_31, HAL_Gpio_LED3 =GPIO_Number_34
}
 Enumeration for the LED numbers. More...
 
enum  HAL_PwmFreq_e {
  HAL_PwmFreq_2_kHz = 22500, HAL_PwmFreq_3_kHz = 15000, HAL_PwmFreq_4_kHz = 11250, HAL_PwmFreq_5_kHz = 9000,
  HAL_PwmFreq_6_kHz = 7500, HAL_PwmFreq_8_kHz = 5625, HAL_PwmFreq_9_kHz = 5000, HAL_PwmFreq_10_kHz = 4500,
  HAL_PwmFreq_12_kHz = 3750, HAL_PwmFreq_15_kHz = 3000, HAL_PwmFreq_18_kHz = 2500, HAL_PwmFreq_20_kHz = 2250,
  HAL_PwmFreq_24_kHz = 1875, HAL_PwmFreq_25_kHz = 1800, HAL_PwmFreq_30_kHz = 1500, HAL_PwmFreq_36_kHz = 1250,
  HAL_PwmFreq_40_kHz = 1125, HAL_PwmFreq_45_kHz = 1000, HAL_PwmFreq_50_kHz = 900, HAL_PwmFreq_60_kHz = 750,
  HAL_PwmFreq_75_kHz = 600, HAL_PwmFreq_90_kHz = 500, HAL_PwmFreq_100_kHz = 450, HAL_PwmFreq_120_kHz = 375,
  HAL_PwmFreq_125_kHz = 360, HAL_PwmFreq_150_kHz = 300, HAL_PwmFreq_2_kHz = 22500, HAL_PwmFreq_3_kHz = 15000,
  HAL_PwmFreq_4_kHz = 11250, HAL_PwmFreq_5_kHz = 9000, HAL_PwmFreq_6_kHz = 7500, HAL_PwmFreq_8_kHz = 5625,
  HAL_PwmFreq_9_kHz = 5000, HAL_PwmFreq_10_kHz = 4500, HAL_PwmFreq_12_kHz = 3750, HAL_PwmFreq_15_kHz = 3000,
  HAL_PwmFreq_18_kHz = 2500, HAL_PwmFreq_20_kHz = 2250, HAL_PwmFreq_24_kHz = 1875, HAL_PwmFreq_25_kHz = 1800,
  HAL_PwmFreq_30_kHz = 1500, HAL_PwmFreq_36_kHz = 1250, HAL_PwmFreq_40_kHz = 1125, HAL_PwmFreq_45_kHz = 1000,
  HAL_PwmFreq_50_kHz = 900, HAL_PwmFreq_60_kHz = 750, HAL_PwmFreq_75_kHz = 600, HAL_PwmFreq_90_kHz = 500,
  HAL_PwmFreq_100_kHz = 450, HAL_PwmFreq_120_kHz = 375, HAL_PwmFreq_125_kHz = 360, HAL_PwmFreq_150_kHz = 300,
  HAL_PwmFreq_2_kHz = 22500, HAL_PwmFreq_3_kHz = 15000, HAL_PwmFreq_4_kHz = 11250, HAL_PwmFreq_5_kHz = 9000,
  HAL_PwmFreq_6_kHz = 7500, HAL_PwmFreq_8_kHz = 5625, HAL_PwmFreq_9_kHz = 5000, HAL_PwmFreq_10_kHz = 4500,
  HAL_PwmFreq_12_kHz = 3750, HAL_PwmFreq_15_kHz = 3000, HAL_PwmFreq_18_kHz = 2500, HAL_PwmFreq_20_kHz = 2250,
  HAL_PwmFreq_24_kHz = 1875, HAL_PwmFreq_25_kHz = 1800, HAL_PwmFreq_30_kHz = 1500, HAL_PwmFreq_36_kHz = 1250,
  HAL_PwmFreq_40_kHz = 1125, HAL_PwmFreq_45_kHz = 1000, HAL_PwmFreq_50_kHz = 900, HAL_PwmFreq_60_kHz = 750,
  HAL_PwmFreq_75_kHz = 600, HAL_PwmFreq_90_kHz = 500, HAL_PwmFreq_100_kHz = 450, HAL_PwmFreq_120_kHz = 375,
  HAL_PwmFreq_125_kHz = 360, HAL_PwmFreq_150_kHz = 300
}
 Enumeration for the PWM frequencies. More...
 
enum  HAL_SensorType_e {
  HAL_SensorType_Current =0, HAL_SensorType_Voltage, HAL_SensorType_Current =0, HAL_SensorType_Voltage,
  HAL_SensorType_Current =0, HAL_SensorType_Voltage, HAL_SensorType_Current =0, HAL_SensorType_Voltage,
  HAL_SensorType_Current =0, HAL_SensorType_Voltage, HAL_SensorType_Current =0, HAL_SensorType_Voltage,
  HAL_SensorType_Current =0, HAL_SensorType_Voltage, HAL_SensorType_Current =0, HAL_SensorType_Voltage
}
 Enumeration for the sensor types. More...
 
enum  HAL_QepSelect_e {
  HAL_Qep_QEP1 =0, HAL_Qep_QEP2 =1, HAL_Qep_QEP1 =0, HAL_Qep_QEP2 =1,
  HAL_Qep_QEP1 =0, HAL_Qep_QEP2 =1, HAL_Qep_QEP1 =0, HAL_Qep_QEP2 =1,
  HAL_Qep_QEP1 =0, HAL_Qep_QEP2 =1
}
 Enumeration for the QEP setup. More...
 
enum  HAL_LedNumber_e {
  HAL_Gpio_LED2 =GPIO_Number_34, HAL_Gpio_LED3 =GPIO_Number_39, HAL_Gpio_LED2 =GPIO_Number_34, HAL_Gpio_LED3 =GPIO_Number_39,
  HAL_Gpio_LED2 =GPIO_Number_31, HAL_Gpio_LED3 =GPIO_Number_34, HAL_Gpio_LED2 =GPIO_Number_31, HAL_Gpio_LED3 =GPIO_Number_34,
  HAL_Gpio_LED2 =GPIO_Number_31, HAL_Gpio_LED3 =GPIO_Number_34, HAL_Gpio_LED2 =GPIO_Number_31, HAL_Gpio_LED3 =GPIO_Number_34,
  HAL_Gpio_LED2 =GPIO_Number_31, HAL_Gpio_LED3 =GPIO_Number_34, HAL_Gpio_LED2 =GPIO_Number_31, HAL_Gpio_LED3 =GPIO_Number_34
}
 Enumeration for the LED numbers. More...
 
enum  HAL_SensorType_e {
  HAL_SensorType_Current =0, HAL_SensorType_Voltage, HAL_SensorType_Current =0, HAL_SensorType_Voltage,
  HAL_SensorType_Current =0, HAL_SensorType_Voltage, HAL_SensorType_Current =0, HAL_SensorType_Voltage,
  HAL_SensorType_Current =0, HAL_SensorType_Voltage, HAL_SensorType_Current =0, HAL_SensorType_Voltage,
  HAL_SensorType_Current =0, HAL_SensorType_Voltage, HAL_SensorType_Current =0, HAL_SensorType_Voltage
}
 Enumeration for the sensor types. More...
 
enum  HAL_LedNumber_e {
  HAL_Gpio_LED2 =GPIO_Number_34, HAL_Gpio_LED3 =GPIO_Number_39, HAL_Gpio_LED2 =GPIO_Number_34, HAL_Gpio_LED3 =GPIO_Number_39,
  HAL_Gpio_LED2 =GPIO_Number_31, HAL_Gpio_LED3 =GPIO_Number_34, HAL_Gpio_LED2 =GPIO_Number_31, HAL_Gpio_LED3 =GPIO_Number_34,
  HAL_Gpio_LED2 =GPIO_Number_31, HAL_Gpio_LED3 =GPIO_Number_34, HAL_Gpio_LED2 =GPIO_Number_31, HAL_Gpio_LED3 =GPIO_Number_34,
  HAL_Gpio_LED2 =GPIO_Number_31, HAL_Gpio_LED3 =GPIO_Number_34, HAL_Gpio_LED2 =GPIO_Number_31, HAL_Gpio_LED3 =GPIO_Number_34
}
 Enumeration for the LED numbers. More...
 
enum  HAL_PwmFreq_e {
  HAL_PwmFreq_2_kHz = 22500, HAL_PwmFreq_3_kHz = 15000, HAL_PwmFreq_4_kHz = 11250, HAL_PwmFreq_5_kHz = 9000,
  HAL_PwmFreq_6_kHz = 7500, HAL_PwmFreq_8_kHz = 5625, HAL_PwmFreq_9_kHz = 5000, HAL_PwmFreq_10_kHz = 4500,
  HAL_PwmFreq_12_kHz = 3750, HAL_PwmFreq_15_kHz = 3000, HAL_PwmFreq_18_kHz = 2500, HAL_PwmFreq_20_kHz = 2250,
  HAL_PwmFreq_24_kHz = 1875, HAL_PwmFreq_25_kHz = 1800, HAL_PwmFreq_30_kHz = 1500, HAL_PwmFreq_36_kHz = 1250,
  HAL_PwmFreq_40_kHz = 1125, HAL_PwmFreq_45_kHz = 1000, HAL_PwmFreq_50_kHz = 900, HAL_PwmFreq_60_kHz = 750,
  HAL_PwmFreq_75_kHz = 600, HAL_PwmFreq_90_kHz = 500, HAL_PwmFreq_100_kHz = 450, HAL_PwmFreq_120_kHz = 375,
  HAL_PwmFreq_125_kHz = 360, HAL_PwmFreq_150_kHz = 300, HAL_PwmFreq_2_kHz = 22500, HAL_PwmFreq_3_kHz = 15000,
  HAL_PwmFreq_4_kHz = 11250, HAL_PwmFreq_5_kHz = 9000, HAL_PwmFreq_6_kHz = 7500, HAL_PwmFreq_8_kHz = 5625,
  HAL_PwmFreq_9_kHz = 5000, HAL_PwmFreq_10_kHz = 4500, HAL_PwmFreq_12_kHz = 3750, HAL_PwmFreq_15_kHz = 3000,
  HAL_PwmFreq_18_kHz = 2500, HAL_PwmFreq_20_kHz = 2250, HAL_PwmFreq_24_kHz = 1875, HAL_PwmFreq_25_kHz = 1800,
  HAL_PwmFreq_30_kHz = 1500, HAL_PwmFreq_36_kHz = 1250, HAL_PwmFreq_40_kHz = 1125, HAL_PwmFreq_45_kHz = 1000,
  HAL_PwmFreq_50_kHz = 900, HAL_PwmFreq_60_kHz = 750, HAL_PwmFreq_75_kHz = 600, HAL_PwmFreq_90_kHz = 500,
  HAL_PwmFreq_100_kHz = 450, HAL_PwmFreq_120_kHz = 375, HAL_PwmFreq_125_kHz = 360, HAL_PwmFreq_150_kHz = 300,
  HAL_PwmFreq_2_kHz = 22500, HAL_PwmFreq_3_kHz = 15000, HAL_PwmFreq_4_kHz = 11250, HAL_PwmFreq_5_kHz = 9000,
  HAL_PwmFreq_6_kHz = 7500, HAL_PwmFreq_8_kHz = 5625, HAL_PwmFreq_9_kHz = 5000, HAL_PwmFreq_10_kHz = 4500,
  HAL_PwmFreq_12_kHz = 3750, HAL_PwmFreq_15_kHz = 3000, HAL_PwmFreq_18_kHz = 2500, HAL_PwmFreq_20_kHz = 2250,
  HAL_PwmFreq_24_kHz = 1875, HAL_PwmFreq_25_kHz = 1800, HAL_PwmFreq_30_kHz = 1500, HAL_PwmFreq_36_kHz = 1250,
  HAL_PwmFreq_40_kHz = 1125, HAL_PwmFreq_45_kHz = 1000, HAL_PwmFreq_50_kHz = 900, HAL_PwmFreq_60_kHz = 750,
  HAL_PwmFreq_75_kHz = 600, HAL_PwmFreq_90_kHz = 500, HAL_PwmFreq_100_kHz = 450, HAL_PwmFreq_120_kHz = 375,
  HAL_PwmFreq_125_kHz = 360, HAL_PwmFreq_150_kHz = 300
}
 Enumeration for the PWM frequencies. More...
 
enum  HAL_SensorType_e {
  HAL_SensorType_Current =0, HAL_SensorType_Voltage, HAL_SensorType_Current =0, HAL_SensorType_Voltage,
  HAL_SensorType_Current =0, HAL_SensorType_Voltage, HAL_SensorType_Current =0, HAL_SensorType_Voltage,
  HAL_SensorType_Current =0, HAL_SensorType_Voltage, HAL_SensorType_Current =0, HAL_SensorType_Voltage,
  HAL_SensorType_Current =0, HAL_SensorType_Voltage, HAL_SensorType_Current =0, HAL_SensorType_Voltage
}
 Enumeration for the sensor types. More...
 
enum  HAL_QepSelect_e {
  HAL_Qep_QEP1 =0, HAL_Qep_QEP2 =1, HAL_Qep_QEP1 =0, HAL_Qep_QEP2 =1,
  HAL_Qep_QEP1 =0, HAL_Qep_QEP2 =1, HAL_Qep_QEP1 =0, HAL_Qep_QEP2 =1,
  HAL_Qep_QEP1 =0, HAL_Qep_QEP2 =1
}
 Enumeration for the QEP setup. More...
 
enum  HAL_LedNumber_e {
  HAL_Gpio_LED2 =GPIO_Number_34, HAL_Gpio_LED3 =GPIO_Number_39, HAL_Gpio_LED2 =GPIO_Number_34, HAL_Gpio_LED3 =GPIO_Number_39,
  HAL_Gpio_LED2 =GPIO_Number_31, HAL_Gpio_LED3 =GPIO_Number_34, HAL_Gpio_LED2 =GPIO_Number_31, HAL_Gpio_LED3 =GPIO_Number_34,
  HAL_Gpio_LED2 =GPIO_Number_31, HAL_Gpio_LED3 =GPIO_Number_34, HAL_Gpio_LED2 =GPIO_Number_31, HAL_Gpio_LED3 =GPIO_Number_34,
  HAL_Gpio_LED2 =GPIO_Number_31, HAL_Gpio_LED3 =GPIO_Number_34, HAL_Gpio_LED2 =GPIO_Number_31, HAL_Gpio_LED3 =GPIO_Number_34
}
 Enumeration for the LED numbers. More...
 
enum  HAL_SensorType_e {
  HAL_SensorType_Current =0, HAL_SensorType_Voltage, HAL_SensorType_Current =0, HAL_SensorType_Voltage,
  HAL_SensorType_Current =0, HAL_SensorType_Voltage, HAL_SensorType_Current =0, HAL_SensorType_Voltage,
  HAL_SensorType_Current =0, HAL_SensorType_Voltage, HAL_SensorType_Current =0, HAL_SensorType_Voltage,
  HAL_SensorType_Current =0, HAL_SensorType_Voltage, HAL_SensorType_Current =0, HAL_SensorType_Voltage
}
 Enumeration for the sensor types. More...
 

Functions

interrupt void mainISR (void)
 
static void HAL_acqAdcInt (HAL_Handle handle, const ADC_IntNumber_e intNumber)
 Acknowledges an interrupt from the ADC so that another ADC interrupt can happen again. More...
 
static void HAL_acqPwmInt (HAL_Handle handle, const PWM_Number_e pwmNumber)
 Acknowledges an interrupt from the PWM so that another PWM interrupt can happen again. More...
 
static void HAL_acqTimer0Int (HAL_Handle handle)
 Acknowledges an interrupt from Timer 0 so that another Timer 0 interrupt can happen again. More...
 
void HAL_cal (HAL_Handle handle)
 Executes calibration routines. More...
 
void HAL_disableGlobalInts (HAL_Handle handle)
 Disables global interrupts. More...
 
void HAL_disableWdog (HAL_Handle handle)
 Disables the watch dog. More...
 
static void HAL_disablePwm (HAL_Handle handle)
 Disables the PWM device. More...
 
void HAL_enableAdcInts (HAL_Handle handle)
 Enables the ADC interrupts. More...
 
void HAL_enableDebugInt (HAL_Handle handle)
 Enables the debug interrupt. More...
 
void HAL_enableGlobalInts (HAL_Handle handle)
 Enables global interrupts. More...
 
void HAL_enableDrv (HAL_Handle handle)
 Enables the 8301 device. More...
 
static void HAL_enablePwm (HAL_Handle handle)
 Enables the PWM devices. More...
 
void HAL_enablePwmInt (HAL_Handle handle)
 Enables the PWM interrupt. More...
 
void HAL_enableTimer0Int (HAL_Handle handle)
 Enables the Timer 0 interrupt. More...
 
static ADC_SocSampleDelay_e HAL_getAdcSocSampleDelay (HAL_Handle handle, const ADC_SocNumber_e socNumber)
 Gets the ADC delay value. More...
 
static _iq HAL_getBias (HAL_Handle handle, const HAL_SensorType_e sensorType, uint_least8_t sensorNumber)
 Gets the ADC bias value. More...
 
static _iq HAL_getCurrentScaleFactor (HAL_Handle handle)
 Gets the current scale factor. More...
 
static uint_least8_t HAL_getNumCurrentSensors (HAL_Handle handle)
 Gets the number of current sensors. More...
 
static uint_least8_t HAL_getNumVoltageSensors (HAL_Handle handle)
 Gets the number of voltage sensors. More...
 
static _iq HAL_getOffsetBeta_lp_pu (HAL_Handle handle, const HAL_SensorType_e sensorType, const uint_least8_t sensorNumber)
 Gets the value used to set the low pass filter pole for offset estimation. More...
 
static _iq HAL_getOffsetValue (HAL_Handle handle, const HAL_SensorType_e sensorType, const uint_least8_t sensorNumber)
 Gets the offset value. More...
 
static _iq HAL_getVoltageScaleFactor (HAL_Handle handle)
 Gets the voltage scale factor. More...
 
void HAL_setupFaults (HAL_Handle handle)
 Configures the fault protection logic. More...
 
HAL_Handle HAL_init (void *pMemory, const size_t numBytes)
 Initializes the hardware abstraction layer (HAL) object. More...
 
static void HAL_initIntVectorTable (HAL_Handle handle)
 Initializes the interrupt vector table. More...
 
static void HAL_readAdcData (HAL_Handle handle, HAL_AdcData_t *pAdcData)
 Reads the ADC data. More...
 
static void HAL_readAdcDataWithOffsets (HAL_Handle handle, HAL_AdcData_t *pAdcData)
 Reads the ADC data. More...
 
static uint32_t HAL_readTimerCnt (HAL_Handle handle, const uint_least8_t timerNumber)
 Reads the timer count. More...
 
static void HAL_reloadTimer (HAL_Handle handle, const uint_least8_t timerNumber)
 Reloads the timer. More...
 
void HAL_setupGate (HAL_Handle handle)
 Sets up the GATE object. More...
 
static void HAL_startTimer (HAL_Handle handle, const uint_least8_t timerNumber)
 Starts the timer. More...
 
static void HAL_stopTimer (HAL_Handle handle, const uint_least8_t timerNumber)
 Stops the timer. More...
 
static void HAL_setTimerPeriod (HAL_Handle handle, const uint_least8_t timerNumber, const uint32_t period)
 Sets the timer period. More...
 
static uint32_t HAL_getTimerPeriod (HAL_Handle handle, const uint_least8_t timerNumber)
 Gets the timer period. More...
 
static void HAL_setAdcSocSampleDelay (HAL_Handle handle, const ADC_SocNumber_e socNumber, const ADC_SocSampleDelay_e sampleDelay)
 Sets the ADC SOC sample delay value. More...
 
static void HAL_setBias (HAL_Handle handle, const HAL_SensorType_e sensorType, uint_least8_t sensorNumber, const _iq bias)
 Sets the ADC bias value. More...
 
static void HAL_setGpioHigh (HAL_Handle handle, const GPIO_Number_e gpioNumber)
 Sets the GPIO pin high. More...
 
static bool HAL_readGpio (HAL_Handle handle, const GPIO_Number_e gpioNumber)
 Reads the specified GPIO pin. More...
 
static void HAL_toggleGpio (HAL_Handle handle, const GPIO_Number_e gpioNumber)
 Toggles the GPIO pin. More...
 
static void HAL_setGpioLow (HAL_Handle handle, const GPIO_Number_e gpioNumber)
 Sets the GPIO pin low. More...
 
static void HAL_setCurrentScaleFactor (HAL_Handle handle, const _iq current_sf)
 Sets the current scale factor in the hardware abstraction layer. More...
 
static void HAL_setNumCurrentSensors (HAL_Handle handle, const uint_least8_t numCurrentSensors)
 Sets the number of current sensors. More...
 
static void HAL_setNumVoltageSensors (HAL_Handle handle, const uint_least8_t numVoltageSensors)
 Sets the number of voltage sensors. More...
 
static void HAL_setOffsetBeta_lp_pu (HAL_Handle handle, const HAL_SensorType_e sensorType, const uint_least8_t sensorNumber, const _iq beta_lp_pu)
 Sets the value used to set the low pass filter pole for offset estimation. More...
 
static void HAL_setOffsetInitCond (HAL_Handle handle, const HAL_SensorType_e sensorType, const uint_least8_t sensorNumber, const _iq initCond)
 Sets the offset initial condition value for offset estimation. More...
 
static void HAL_setOffsetValue (HAL_Handle handle, const HAL_SensorType_e sensorType, const uint_least8_t sensorNumber, const _iq value)
 Sets the initial offset value for offset estimation. More...
 
static void HAL_setVoltageScaleFactor (HAL_Handle handle, const _iq voltage_sf)
 Sets the voltage scale factor in the hardware abstraction layer. More...
 
void HAL_setParams (HAL_Handle handle, const USER_Params *pUserParams)
 Sets the hardware abstraction layer parameters. More...
 
void HAL_setupAdcs (HAL_Handle handle)
 Sets up the ADCs (Analog to Digital Converters) More...
 
void HAL_setupClks (HAL_Handle handle)
 Sets up the clocks. More...
 
void HAL_setupFlash (HAL_Handle handle)
 Sets up the FLASH. More...
 
void HAL_setupGpios (HAL_Handle handle)
 Sets up the GPIO (General Purpose I/O) pins. More...
 
void HAL_setupPeripheralClks (HAL_Handle handle)
 Sets up the peripheral clocks. More...
 
void HAL_setupPie (HAL_Handle handle)
 Sets up the PIE (Peripheral Interrupt Expansion) More...
 
void HAL_setupPll (HAL_Handle handle, const PLL_ClkFreq_e clkFreq)
 Sets up the PLL (Phase Lock Loop) More...
 
void HAL_setupPwms (HAL_Handle handle, const float_t systemFreq_MHz, const float_t pwmPeriod_usec, const uint_least16_t numPwmTicksPerIsrTick)
 Sets up the PWMs (Pulse Width Modulators) More...
 
void HAL_setupPwmDacs (HAL_Handle handle)
 Sets up the PWM DACs (Pulse Width Modulator Digital to Analof Converters) More...
 
void HAL_setupQEP (HAL_Handle handle, HAL_QepSelect_e qep)
 Sets up the QEP peripheral. More...
 
void HAL_setupSpiA (HAL_Handle handle)
 Sets up the spiA peripheral. More...
 
void HAL_setupSpiB (HAL_Handle handle)
 Sets up the spiB peripheral. More...
 
void HAL_setupTimers (HAL_Handle handle, const float_t systemFreq_MHz)
 Sets up the timers. More...
 
static void HAL_updateAdcBias (HAL_Handle handle)
 Updates the ADC bias values. More...
 
static void HAL_writeDacData (HAL_Handle handle, HAL_DacData_t *pDacData)
 Writes DAC data to the PWM comparators for DAC (digital-to-analog conversion) output. More...
 
static void HAL_writePwmData (HAL_Handle handle, HAL_PwmData_t *pPwmData)
 Writes PWM data to the PWM comparators for motor control. More...
 
static uint16_t HAL_readPwmCmpA (HAL_Handle handle, const PWM_Number_e pwmNumber)
 Reads PWM compare register A. More...
 
static uint16_t HAL_readPwmCmpAM (HAL_Handle handle, const PWM_Number_e pwmNumber)
 Reads PWM compare mirror register A. More...
 
static uint16_t HAL_readPwmCmpB (HAL_Handle handle, const PWM_Number_e pwmNumber)
 Reads PWM compare register B. More...
 
static uint16_t HAL_readPwmPeriod (HAL_Handle handle, const PWM_Number_e pwmNumber)
 Reads PWM period register. More...
 
static void HAL_setTrigger (HAL_Handle handle, const SVGENCURRENT_IgnoreShunt_e ignoreShunt, const int16_t minwidth, const int16_t cmpOffset)
 
void HAL_AdcCalChanSelect (HAL_Handle handle, const ADC_SocChanNumber_e chanNumber)
 Selects the analog channel used for calibration. More...
 
uint16_t HAL_AdcCalConversion (HAL_Handle handle)
 Reads the converted value from the selected calibration channel. More...
 
void HAL_AdcOffsetSelfCal (HAL_Handle handle)
 Executes the offset calibration of the ADC. More...
 
uint16_t HAL_getOscTrimValue (int16_t coarse, int16_t fine)
 Converts coarse and fine oscillator trim values into a single 16bit word value. More...
 
void HAL_OscTempComp (HAL_Handle handle)
 Executes the oscillator 1 and 2 calibration functions. More...
 
void HAL_osc1Comp (HAL_Handle handle, const int16_t sensorSample)
 Executes the oscillator 1 calibration based on input sample. More...
 
void HAL_osc2Comp (HAL_Handle handle, const int16_t sensorSample)
 Executes the oscillator 2 calibration based on input sample. More...
 
void HAL_writeDrvData (HAL_Handle handle, DRV_SPI_8301_Vars_t *Spi_8301_Vars)
 Writes data to the driver. More...
 
void HAL_readDrvData (HAL_Handle handle, DRV_SPI_8301_Vars_t *Spi_8301_Vars)
 Reads data from the driver. More...
 
void HAL_setupDrvSpi (HAL_Handle handle, DRV_SPI_8301_Vars_t *Spi_8301_Vars)
 Sets up the SPI interface for the driver. More...
 
static void HAL_setTrigger (HAL_Handle handle, const int16_t minwidth)
 
interrupt void led2ISR (void)
 
interrupt void led3OffISR (void)
 
interrupt void led3OnISR (void)
 
static void HAL_disableTbClockSync (HAL_Handle handle)
 Disables the ePWM module time base clock sync signal. More...
 
static void HAL_enableTbClockSync (HAL_Handle handle)
 Enables the ePWM module time base clock sync signal. More...
 
static void HAL_getDutyCycles (HAL_Handle handle, uint16_t *pDutyCycles)
 Gets the PWM duty cycle times. More...
 
uint16_t HAL_computeOscTrimValue (int16_t coarse, int16_t fine)
 
static void HAL_resetPwmCount (HAL_Handle handle, PWM_Number_e pwmNumber)
 Resets the PWM count. More...
 
static void HAL_setBias (HAL_Handle handle, const HAL_SensorType_e sensorType, uint_least8_t sensorNumber, const float_t bias)
 Sets the ADC bias value. More...
 
static void HAL_setCurrentScaleFactor (HAL_Handle handle, const float_t current_sf)
 Sets the current scale factor in the hal. More...
 
static void HAL_setPwmFreq_kHz (HAL_Handle handle, PWM_Number_e pwmNumber, HAL_PwmFreq_e pwmFreq_kHz)
 Sets the PWM frequency. More...
 
static void HAL_setVoltageScaleFactor (HAL_Handle handle, const float_t voltage_sf)
 Sets the voltage scale factor in the hal. More...
 
void HAL_setupPwmDacs (HAL_Handle handle, const float_t systemFreq_MHz, const float_t dacFreq_kHz)
 Sets up the PWM DACs (Pulse Width Modulator Digital to Analof Converters) More...
 
void HAL_setupQEP (QEP_Handle qepHandle, const USER_Params *pUserParams, const uint32_t unitTimerFreq_Hz)
 Sets up the QEP peripheral (Quadrature Encoder) More...
 
static void HAL_updateAdcBias (HAL_Handle handle, OFFSET_Handle *pOffsetHandle_I, OFFSET_Handle *pOffsetHandle_V)
 Updates the ADC bias values. More...
 
static void HAL_writeDacData (HAL_Handle handle, const HAL_DacData_t *pDacData)
 Writes DAC data to the PWM comparators for DAC (digital-to-analog conversion) output. More...
 
static void HAL_writePwmData (HAL_Handle handle, const HAL_PwmData_t *pPwmData)
 Writes PWM data to the PWM comparators for motor control. More...
 

Detailed Description

Macro Definition Documentation

#define Device_cal   (void (*)(void))0x3D7C80

Definition at line 64 of file hvkit_rev1p1/f28x/f2806x/src/float/hal.h.

#define Device_cal   (void (*)(void))0x3D7C80

Definition at line 65 of file drv8312kit_revD/f28x/f2806x/src/float/hal.h.

#define Device_cal   (void (*)(void))0x3D7C80

Definition at line 68 of file drv8301kit_revD/f28x/f2806x/src/float/hal.h.

#define Device_cal   (void (*)(void))0x3D7C80

Definition at line 69 of file hvkit_rev1p1/f28x/f2806x/src/hal.h.

#define Device_cal   (void (*)(void))0x3D7C80

Definition at line 69 of file drv8312kit_revD/f28x/f2806x/src/hal.h.

#define Device_cal   (void (*)(void))0x3D7C80

Definition at line 71 of file hal_both.h.

#define Device_cal   (void (*)(void))0x3D7C80

Definition at line 72 of file boostxldrv8301_revB/f28x/f2806x/src/hal.h.

#define Device_cal   (void (*)(void))0x3D7C80

Definition at line 73 of file drv8301kit_revD/f28x/f2806x/src/hal.h.

#define DRV8301_SPI

Defines that a DRV8301 chip SPI port is used on the board.

Definition at line 66 of file drv8301kit_revD/f28x/f2806x/src/float/hal.h.

#define DRV8301_SPI

Defines that a DRV8301 chip SPI port is used on the board.

Definition at line 69 of file hal_both.h.

#define DRV8301_SPI

Defines that a DRV8301 chip SPI port is used on the board.

Definition at line 70 of file boostxldrv8301_revB/f28x/f2806x/src/hal.h.

#define DRV8301_SPI

Defines that a DRV8301 chip SPI port is used on the board.

Definition at line 70 of file drv8301kit_revD/f28x/f2806x/src/hal.h.

#define FP_ROUND   FP_SCALE/2

Defines the quantity added to Q15 numbers before converting to integer to round the number.

Definition at line 72 of file hvkit_rev1p1/f28x/f2806x/src/float/hal.h.

#define FP_ROUND   FP_SCALE/2

Defines the quantity added to Q15 numbers before converting to integer to round the number.

Definition at line 73 of file drv8312kit_revD/f28x/f2806x/src/float/hal.h.

#define FP_ROUND   FP_SCALE/2

Defines the quantity added to Q15 numbers before converting to integer to round the number.

Definition at line 76 of file hvkit_rev1p1/f28x/f2806x/src/hal.h.

#define FP_ROUND   FP_SCALE/2

Defines the quantity added to Q15 numbers before converting to integer to round the number.

Definition at line 76 of file drv8301kit_revD/f28x/f2806x/src/float/hal.h.

#define FP_ROUND   FP_SCALE/2

Defines the quantity added to Q15 numbers before converting to integer to round the number.

Definition at line 76 of file drv8312kit_revD/f28x/f2806x/src/hal.h.

#define FP_ROUND   FP_SCALE/2

Defines the quantity added to Q15 numbers before converting to integer to round the number.

Definition at line 78 of file hal_both.h.

#define FP_ROUND   FP_SCALE/2

Defines the quantity added to Q15 numbers before converting to integer to round the number.

Definition at line 79 of file boostxldrv8301_revB/f28x/f2806x/src/hal.h.

Referenced by HAL_osc1Comp(), and HAL_osc2Comp().

#define FP_ROUND   FP_SCALE/2

Defines the quantity added to Q15 numbers before converting to integer to round the number.

Definition at line 80 of file drv8301kit_revD/f28x/f2806x/src/hal.h.

#define FP_SCALE   32768

Defines used in oscillator calibration functions.

Defines the scale factor for Q15 fixed point numbers (2^15)

Definition at line 69 of file hvkit_rev1p1/f28x/f2806x/src/float/hal.h.

#define FP_SCALE   32768

Defines used in oscillator calibration functions.

Defines the scale factor for Q15 fixed point numbers (2^15)

Definition at line 70 of file drv8312kit_revD/f28x/f2806x/src/float/hal.h.

#define FP_SCALE   32768

Defines used in oscillator calibration functions.

Defines the scale factor for Q15 fixed point numbers (2^15)

Definition at line 73 of file hvkit_rev1p1/f28x/f2806x/src/hal.h.

#define FP_SCALE   32768

Defines used in oscillator calibration functions.

Defines the scale factor for Q15 fixed point numbers (2^15)

Definition at line 73 of file drv8301kit_revD/f28x/f2806x/src/float/hal.h.

#define FP_SCALE   32768

Defines used in oscillator calibration functions.

Defines the scale factor for Q15 fixed point numbers (2^15)

Definition at line 73 of file drv8312kit_revD/f28x/f2806x/src/hal.h.

#define FP_SCALE   32768

Defines used in oscillator calibration functions.

Defines the scale factor for Q15 fixed point numbers (2^15)

Definition at line 75 of file hal_both.h.

#define FP_SCALE   32768

Defines used in oscillator calibration functions.

Defines the scale factor for Q15 fixed point numbers (2^15)

Definition at line 76 of file boostxldrv8301_revB/f28x/f2806x/src/hal.h.

Referenced by HAL_osc1Comp(), and HAL_osc2Comp().

#define FP_SCALE   32768

Defines used in oscillator calibration functions.

Defines the scale factor for Q15 fixed point numbers (2^15)

Definition at line 77 of file drv8301kit_revD/f28x/f2806x/src/hal.h.

#define getOsc1CoarseTrim ( )    (*(int16_t (*)(void))0x3D7E96)()

Defines the oscillator 1 coarse trim.

Definition at line 90 of file hvkit_rev1p1/f28x/f2806x/src/float/hal.h.

#define getOsc1CoarseTrim ( )    (*(int16_t (*)(void))0x3D7E96)()

Defines the oscillator 1 coarse trim.

Definition at line 91 of file drv8312kit_revD/f28x/f2806x/src/float/hal.h.

#define getOsc1CoarseTrim ( )    (*(int16_t (*)(void))0x3D7E96)()

Defines the oscillator 1 coarse trim.

Definition at line 93 of file hvkit_rev1p1/f28x/f2806x/src/hal.h.

#define getOsc1CoarseTrim ( )    (*(int16_t (*)(void))0x3D7E96)()

Defines the oscillator 1 coarse trim.

Definition at line 93 of file drv8312kit_revD/f28x/f2806x/src/hal.h.

#define getOsc1CoarseTrim ( )    (*(int16_t (*)(void))0x3D7E96)()

Defines the oscillator 1 coarse trim.

Definition at line 94 of file drv8301kit_revD/f28x/f2806x/src/float/hal.h.

#define getOsc1CoarseTrim ( )    (*(int16_t (*)(void))0x3D7E96)()

Defines the oscillator 1 coarse trim.

Definition at line 95 of file hal_both.h.

#define getOsc1CoarseTrim ( )    (*(int16_t (*)(void))0x3D7E96)()

Defines the oscillator 1 coarse trim.

Definition at line 96 of file boostxldrv8301_revB/f28x/f2806x/src/hal.h.

Referenced by HAL_osc1Comp().

#define getOsc1CoarseTrim ( )    (*(int16_t (*)(void))0x3D7E96)()

Defines the oscillator 1 coarse trim.

Definition at line 97 of file drv8301kit_revD/f28x/f2806x/src/hal.h.

#define getOsc1FineTrimOffset ( )    (*(int16_t (*)(void))0x3D7E93)()

Defines the oscillator 1 fine trim at high temp.

Definition at line 87 of file hvkit_rev1p1/f28x/f2806x/src/float/hal.h.

#define getOsc1FineTrimOffset ( )    (*(int16_t (*)(void))0x3D7E93)()

Defines the oscillator 1 fine trim at high temp.

Definition at line 88 of file drv8312kit_revD/f28x/f2806x/src/float/hal.h.

#define getOsc1FineTrimOffset ( )    (*(int16_t (*)(void))0x3D7E93)()

Defines the oscillator 1 fine trim at high temp.

Definition at line 90 of file hvkit_rev1p1/f28x/f2806x/src/hal.h.

#define getOsc1FineTrimOffset ( )    (*(int16_t (*)(void))0x3D7E93)()

Defines the oscillator 1 fine trim at high temp.

Definition at line 90 of file drv8312kit_revD/f28x/f2806x/src/hal.h.

#define getOsc1FineTrimOffset ( )    (*(int16_t (*)(void))0x3D7E93)()

Defines the oscillator 1 fine trim at high temp.

Definition at line 91 of file drv8301kit_revD/f28x/f2806x/src/float/hal.h.

#define getOsc1FineTrimOffset ( )    (*(int16_t (*)(void))0x3D7E93)()

Defines the oscillator 1 fine trim at high temp.

Definition at line 92 of file hal_both.h.

#define getOsc1FineTrimOffset ( )    (*(int16_t (*)(void))0x3D7E93)()

Defines the oscillator 1 fine trim at high temp.

Definition at line 93 of file boostxldrv8301_revB/f28x/f2806x/src/hal.h.

Referenced by HAL_osc1Comp().

#define getOsc1FineTrimOffset ( )    (*(int16_t (*)(void))0x3D7E93)()

Defines the oscillator 1 fine trim at high temp.

Definition at line 94 of file drv8301kit_revD/f28x/f2806x/src/hal.h.

#define getOsc1FineTrimSlope ( )    (*(int16_t (*)(void))0x3D7E90)()

The following functions return reference values stored in OTP.

Defines the slope used to compensate oscillator 1 (fine trim steps / ADC code). Stored in fixed point Q15 format

Definition at line 84 of file hvkit_rev1p1/f28x/f2806x/src/float/hal.h.

#define getOsc1FineTrimSlope ( )    (*(int16_t (*)(void))0x3D7E90)()

The following functions return reference values stored in OTP.

Defines the slope used to compensate oscillator 1 (fine trim steps / ADC code). Stored in fixed point Q15 format

Definition at line 85 of file drv8312kit_revD/f28x/f2806x/src/float/hal.h.

#define getOsc1FineTrimSlope ( )    (*(int16_t (*)(void))0x3D7E90)()

The following functions return reference values stored in OTP.

Defines the slope used to compensate oscillator 1 (fine trim steps / ADC code). Stored in fixed point Q15 format

Definition at line 87 of file hvkit_rev1p1/f28x/f2806x/src/hal.h.

#define getOsc1FineTrimSlope ( )    (*(int16_t (*)(void))0x3D7E90)()

The following functions return reference values stored in OTP.

Defines the slope used to compensate oscillator 1 (fine trim steps / ADC code). Stored in fixed point Q15 format

Definition at line 87 of file drv8312kit_revD/f28x/f2806x/src/hal.h.

#define getOsc1FineTrimSlope ( )    (*(int16_t (*)(void))0x3D7E90)()

The following functions return reference values stored in OTP.

Defines the slope used to compensate oscillator 1 (fine trim steps / ADC code). Stored in fixed point Q15 format

Definition at line 88 of file drv8301kit_revD/f28x/f2806x/src/float/hal.h.

#define getOsc1FineTrimSlope ( )    (*(int16_t (*)(void))0x3D7E90)()

The following functions return reference values stored in OTP.

Defines the slope used to compensate oscillator 1 (fine trim steps / ADC code). Stored in fixed point Q15 format

Definition at line 89 of file hal_both.h.

#define getOsc1FineTrimSlope ( )    (*(int16_t (*)(void))0x3D7E90)()

The following functions return reference values stored in OTP.

Defines the slope used to compensate oscillator 1 (fine trim steps / ADC code). Stored in fixed point Q15 format

Definition at line 90 of file boostxldrv8301_revB/f28x/f2806x/src/hal.h.

Referenced by HAL_osc1Comp().

#define getOsc1FineTrimSlope ( )    (*(int16_t (*)(void))0x3D7E90)()

The following functions return reference values stored in OTP.

Defines the slope used to compensate oscillator 1 (fine trim steps / ADC code). Stored in fixed point Q15 format

Definition at line 91 of file drv8301kit_revD/f28x/f2806x/src/hal.h.

#define getOsc2CoarseTrim ( )    (*(int16_t (*)(void))0x3D7E9F)()

Defines the oscillator 2 coarse trim.

Definition at line 100 of file hvkit_rev1p1/f28x/f2806x/src/float/hal.h.

#define getOsc2CoarseTrim ( )    (*(int16_t (*)(void))0x3D7E9F)()

Defines the oscillator 2 coarse trim.

Definition at line 101 of file drv8312kit_revD/f28x/f2806x/src/float/hal.h.

#define getOsc2CoarseTrim ( )    (*(int16_t (*)(void))0x3D7E9F)()

Defines the oscillator 2 coarse trim.

Definition at line 103 of file hvkit_rev1p1/f28x/f2806x/src/hal.h.

#define getOsc2CoarseTrim ( )    (*(int16_t (*)(void))0x3D7E9F)()

Defines the oscillator 2 coarse trim.

Definition at line 103 of file drv8312kit_revD/f28x/f2806x/src/hal.h.

#define getOsc2CoarseTrim ( )    (*(int16_t (*)(void))0x3D7E9F)()

Defines the oscillator 2 coarse trim.

Definition at line 104 of file drv8301kit_revD/f28x/f2806x/src/float/hal.h.

#define getOsc2CoarseTrim ( )    (*(int16_t (*)(void))0x3D7E9F)()

Defines the oscillator 2 coarse trim.

Definition at line 105 of file hal_both.h.

#define getOsc2CoarseTrim ( )    (*(int16_t (*)(void))0x3D7E9F)()

Defines the oscillator 2 coarse trim.

Definition at line 106 of file boostxldrv8301_revB/f28x/f2806x/src/hal.h.

Referenced by HAL_osc2Comp().

#define getOsc2CoarseTrim ( )    (*(int16_t (*)(void))0x3D7E9F)()

Defines the oscillator 2 coarse trim.

Definition at line 107 of file drv8301kit_revD/f28x/f2806x/src/hal.h.

#define getOsc2FineTrimOffset ( )    (*(int16_t (*)(void))0x3D7E9C)()

Defines the oscillator 2 fine trim at high temp.

Definition at line 97 of file hvkit_rev1p1/f28x/f2806x/src/float/hal.h.

#define getOsc2FineTrimOffset ( )    (*(int16_t (*)(void))0x3D7E9C)()

Defines the oscillator 2 fine trim at high temp.

Definition at line 98 of file drv8312kit_revD/f28x/f2806x/src/float/hal.h.

#define getOsc2FineTrimOffset ( )    (*(int16_t (*)(void))0x3D7E9C)()

Defines the oscillator 2 fine trim at high temp.

Definition at line 100 of file hvkit_rev1p1/f28x/f2806x/src/hal.h.

#define getOsc2FineTrimOffset ( )    (*(int16_t (*)(void))0x3D7E9C)()

Defines the oscillator 2 fine trim at high temp.

Definition at line 100 of file drv8312kit_revD/f28x/f2806x/src/hal.h.

#define getOsc2FineTrimOffset ( )    (*(int16_t (*)(void))0x3D7E9C)()

Defines the oscillator 2 fine trim at high temp.

Definition at line 101 of file drv8301kit_revD/f28x/f2806x/src/float/hal.h.

#define getOsc2FineTrimOffset ( )    (*(int16_t (*)(void))0x3D7E9C)()

Defines the oscillator 2 fine trim at high temp.

Definition at line 102 of file hal_both.h.

#define getOsc2FineTrimOffset ( )    (*(int16_t (*)(void))0x3D7E9C)()

Defines the oscillator 2 fine trim at high temp.

Definition at line 103 of file boostxldrv8301_revB/f28x/f2806x/src/hal.h.

Referenced by HAL_osc2Comp().

#define getOsc2FineTrimOffset ( )    (*(int16_t (*)(void))0x3D7E9C)()

Defines the oscillator 2 fine trim at high temp.

Definition at line 104 of file drv8301kit_revD/f28x/f2806x/src/hal.h.

#define getOsc2FineTrimSlope ( )    (*(int16_t (*)(void))0x3D7E99)()

Defines the slope used to compensate oscillator 2 (fine trim steps / ADC code). Stored.

in fixed point Q15 format.

Definition at line 94 of file hvkit_rev1p1/f28x/f2806x/src/float/hal.h.

#define getOsc2FineTrimSlope ( )    (*(int16_t (*)(void))0x3D7E99)()

Defines the slope used to compensate oscillator 2 (fine trim steps / ADC code). Stored.

in fixed point Q15 format.

Definition at line 95 of file drv8312kit_revD/f28x/f2806x/src/float/hal.h.

#define getOsc2FineTrimSlope ( )    (*(int16_t (*)(void))0x3D7E99)()

Defines the slope used to compensate oscillator 2 (fine trim steps / ADC code). Stored.

in fixed point Q15 format.

Definition at line 97 of file hvkit_rev1p1/f28x/f2806x/src/hal.h.

#define getOsc2FineTrimSlope ( )    (*(int16_t (*)(void))0x3D7E99)()

Defines the slope used to compensate oscillator 2 (fine trim steps / ADC code). Stored.

in fixed point Q15 format.

Definition at line 97 of file drv8312kit_revD/f28x/f2806x/src/hal.h.

#define getOsc2FineTrimSlope ( )    (*(int16_t (*)(void))0x3D7E99)()

Defines the slope used to compensate oscillator 2 (fine trim steps / ADC code). Stored.

in fixed point Q15 format.

Definition at line 98 of file drv8301kit_revD/f28x/f2806x/src/float/hal.h.

#define getOsc2FineTrimSlope ( )    (*(int16_t (*)(void))0x3D7E99)()

Defines the slope used to compensate oscillator 2 (fine trim steps / ADC code). Stored.

in fixed point Q15 format.

Definition at line 99 of file hal_both.h.

#define getOsc2FineTrimSlope ( )    (*(int16_t (*)(void))0x3D7E99)()

Defines the slope used to compensate oscillator 2 (fine trim steps / ADC code). Stored.

in fixed point Q15 format.

Definition at line 100 of file boostxldrv8301_revB/f28x/f2806x/src/hal.h.

Referenced by HAL_osc2Comp().

#define getOsc2FineTrimSlope ( )    (*(int16_t (*)(void))0x3D7E99)()

Defines the slope used to compensate oscillator 2 (fine trim steps / ADC code). Stored.

in fixed point Q15 format.

Definition at line 101 of file drv8301kit_revD/f28x/f2806x/src/hal.h.

#define getRefTempOffset ( )    (*(int16_t (*)(void))0x3D7EA2)()

Defines the ADC reading of temperature sensor at reference temperature for compensation.

Definition at line 103 of file hvkit_rev1p1/f28x/f2806x/src/float/hal.h.

#define getRefTempOffset ( )    (*(int16_t (*)(void))0x3D7EA2)()

Defines the ADC reading of temperature sensor at reference temperature for compensation.

Definition at line 104 of file drv8312kit_revD/f28x/f2806x/src/float/hal.h.

#define getRefTempOffset ( )    (*(int16_t (*)(void))0x3D7EA2)()

Defines the ADC reading of temperature sensor at reference temperature for compensation.

Definition at line 106 of file hvkit_rev1p1/f28x/f2806x/src/hal.h.

#define getRefTempOffset ( )    (*(int16_t (*)(void))0x3D7EA2)()

Defines the ADC reading of temperature sensor at reference temperature for compensation.

Definition at line 106 of file drv8312kit_revD/f28x/f2806x/src/hal.h.

#define getRefTempOffset ( )    (*(int16_t (*)(void))0x3D7EA2)()

Defines the ADC reading of temperature sensor at reference temperature for compensation.

Definition at line 107 of file drv8301kit_revD/f28x/f2806x/src/float/hal.h.

#define getRefTempOffset ( )    (*(int16_t (*)(void))0x3D7EA2)()

Defines the ADC reading of temperature sensor at reference temperature for compensation.

Definition at line 108 of file hal_both.h.

#define getRefTempOffset ( )    (*(int16_t (*)(void))0x3D7EA2)()

Defines the ADC reading of temperature sensor at reference temperature for compensation.

Definition at line 109 of file boostxldrv8301_revB/f28x/f2806x/src/hal.h.

Referenced by HAL_osc1Comp(), and HAL_osc2Comp().

#define getRefTempOffset ( )    (*(int16_t (*)(void))0x3D7EA2)()

Defines the ADC reading of temperature sensor at reference temperature for compensation.

Definition at line 110 of file drv8301kit_revD/f28x/f2806x/src/hal.h.

#define HAL_GPIO_SW1   GPIO_Number_9

Defines the GPIO pin number for drv8301kit_revD Switch 1.

Definition at line 139 of file drv8301kit_revD/f28x/f2806x/src/hal.h.

#define HAL_GPIO_SW2   GPIO_Number_7

Defines the GPIO pin number for drv8301kit_revD Switch 2.

Definition at line 144 of file drv8301kit_revD/f28x/f2806x/src/hal.h.

#define HAL_PWM_DBFED_CNT   (uint16_t)(2.0 * (float_t)USER_SYSTEM_FREQ_MHz)

Defines the PWM deadband falling edge delay count (system clocks)

Definition at line 108 of file hvkit_rev1p1/f28x/f2806x/src/float/hal.h.

#define HAL_PWM_DBFED_CNT   1

Defines the PWM deadband falling edge delay count (system clocks)

Definition at line 109 of file drv8312kit_revD/f28x/f2806x/src/float/hal.h.

#define HAL_PWM_DBFED_CNT   1

Defines the PWM deadband falling edge delay count (system clocks)

Definition at line 110 of file drv8312kit_revD/f28x/f2806x/src/hal.h.

#define HAL_PWM_DBFED_CNT   (uint16_t)(2.0 * (float_t)USER_SYSTEM_FREQ_MHz)

Defines the PWM deadband falling edge delay count (system clocks)

Definition at line 110 of file hvkit_rev1p1/f28x/f2806x/src/hal.h.

#define HAL_PWM_DBFED_CNT   1

Defines the PWM deadband falling edge delay count (system clocks)

Definition at line 112 of file hal_both.h.

#define HAL_PWM_DBFED_CNT   (uint16_t)(0.050 * (float_t)USER_SYSTEM_FREQ_MHz)

Defines the PWM deadband falling edge delay count (system clocks)

Definition at line 112 of file drv8301kit_revD/f28x/f2806x/src/float/hal.h.

#define HAL_PWM_DBFED_CNT   1

Defines the PWM deadband falling edge delay count (system clocks)

Definition at line 113 of file boostxldrv8301_revB/f28x/f2806x/src/hal.h.

Referenced by HAL_setupPwms().

#define HAL_PWM_DBFED_CNT   1

Defines the PWM deadband falling edge delay count (system clocks)

Definition at line 114 of file drv8301kit_revD/f28x/f2806x/src/hal.h.

#define HAL_PWM_DBRED_CNT   (uint16_t)(2.0 * (float_t)USER_SYSTEM_FREQ_MHz)

Defines the PWM deadband rising edge delay count (system clocks)

Definition at line 113 of file hvkit_rev1p1/f28x/f2806x/src/float/hal.h.

#define HAL_PWM_DBRED_CNT   1

Defines the PWM deadband rising edge delay count (system clocks)

Definition at line 114 of file drv8312kit_revD/f28x/f2806x/src/float/hal.h.

#define HAL_PWM_DBRED_CNT   (uint16_t)(2.0 * (float_t)USER_SYSTEM_FREQ_MHz)

Defines the PWM deadband rising edge delay count (system clocks)

Definition at line 115 of file hvkit_rev1p1/f28x/f2806x/src/hal.h.

#define HAL_PWM_DBRED_CNT   1

Defines the PWM deadband rising edge delay count (system clocks)

Definition at line 115 of file drv8312kit_revD/f28x/f2806x/src/hal.h.

#define HAL_PWM_DBRED_CNT   1

Defines the PWM deadband rising edge delay count (system clocks)

Definition at line 117 of file hal_both.h.

#define HAL_PWM_DBRED_CNT   (uint16_t)(0.050 * (float_t)USER_SYSTEM_FREQ_MHz)

Defines the PWM deadband rising edge delay count (system clocks)

Definition at line 117 of file drv8301kit_revD/f28x/f2806x/src/float/hal.h.

#define HAL_PWM_DBRED_CNT   1

Defines the PWM deadband rising edge delay count (system clocks)

Definition at line 118 of file boostxldrv8301_revB/f28x/f2806x/src/hal.h.

Referenced by HAL_setupPwms().

#define HAL_PWM_DBRED_CNT   1

Defines the PWM deadband rising edge delay count (system clocks)

Definition at line 119 of file drv8301kit_revD/f28x/f2806x/src/hal.h.

#define HAL_readSW   HAL_readGpio

Defines the function to read pushbuttons.

Definition at line 118 of file hvkit_rev1p1/f28x/f2806x/src/float/hal.h.

#define HAL_readSW   HAL_readGpio

Defines the function to read pushbuttons.

Definition at line 122 of file drv8301kit_revD/f28x/f2806x/src/float/hal.h.

#define HAL_toggleLed   HAL_toggleGpio

Defines the function to turn LEDs on.

Definition at line 129 of file drv8312kit_revD/f28x/f2806x/src/float/hal.h.

#define HAL_toggleLed   HAL_toggleGpio

Defines the function to turn LEDs on.

Definition at line 130 of file hvkit_rev1p1/f28x/f2806x/src/hal.h.

#define HAL_toggleLed   HAL_toggleGpio

Defines the function to turn LEDs on.

Definition at line 130 of file drv8312kit_revD/f28x/f2806x/src/hal.h.

#define HAL_toggleLed   HAL_toggleGpio

Defines the function to turn LEDs on.

Definition at line 132 of file hal_both.h.

#define HAL_toggleLed   HAL_toggleGpio

Defines the function to turn LEDs on.

Definition at line 133 of file hvkit_rev1p1/f28x/f2806x/src/float/hal.h.

#define HAL_toggleLed   HAL_toggleGpio

Defines the function to turn LEDs on.

Definition at line 133 of file boostxldrv8301_revB/f28x/f2806x/src/hal.h.

#define HAL_toggleLed   HAL_toggleGpio

Defines the function to turn LEDs on.

Definition at line 134 of file drv8301kit_revD/f28x/f2806x/src/hal.h.

#define HAL_toggleLed   HAL_toggleGpio

Defines the function to turn LEDs on.

Definition at line 137 of file drv8301kit_revD/f28x/f2806x/src/float/hal.h.

#define HAL_turnLedOff   HAL_setGpioLow

Defines the function to turn LEDs off.

Definition at line 119 of file drv8312kit_revD/f28x/f2806x/src/float/hal.h.

#define HAL_turnLedOff   HAL_setGpioLow

Defines the function to turn LEDs off.

Definition at line 120 of file hvkit_rev1p1/f28x/f2806x/src/hal.h.

#define HAL_turnLedOff   HAL_setGpioLow

Defines the function to turn LEDs off.

Definition at line 120 of file drv8312kit_revD/f28x/f2806x/src/hal.h.

#define HAL_turnLedOff   HAL_setGpioLow

Defines the function to turn LEDs off.

Definition at line 122 of file hal_both.h.

#define HAL_turnLedOff   HAL_setGpioLow

Defines the function to turn LEDs off.

Definition at line 123 of file hvkit_rev1p1/f28x/f2806x/src/float/hal.h.

#define HAL_turnLedOff   HAL_setGpioLow

Defines the function to turn LEDs off.

Definition at line 123 of file boostxldrv8301_revB/f28x/f2806x/src/hal.h.

#define HAL_turnLedOff   HAL_setGpioLow

Defines the function to turn LEDs off.

Definition at line 124 of file drv8301kit_revD/f28x/f2806x/src/hal.h.

#define HAL_turnLedOff   HAL_setGpioLow

Defines the function to turn LEDs off.

Definition at line 127 of file drv8301kit_revD/f28x/f2806x/src/float/hal.h.

#define HAL_turnLedOn   HAL_setGpioHigh

Defines the function to turn LEDs on.

Definition at line 124 of file drv8312kit_revD/f28x/f2806x/src/float/hal.h.

#define HAL_turnLedOn   HAL_setGpioHigh

Defines the function to turn LEDs on.

Definition at line 125 of file hvkit_rev1p1/f28x/f2806x/src/hal.h.

#define HAL_turnLedOn   HAL_setGpioHigh

Defines the function to turn LEDs on.

Definition at line 125 of file drv8312kit_revD/f28x/f2806x/src/hal.h.

#define HAL_turnLedOn   HAL_setGpioHigh

Defines the function to turn LEDs on.

Definition at line 127 of file hal_both.h.

#define HAL_turnLedOn   HAL_setGpioHigh

Defines the function to turn LEDs on.

Definition at line 128 of file boostxldrv8301_revB/f28x/f2806x/src/hal.h.

#define HAL_turnLedOn   HAL_setGpioHigh

Defines the function to turn LEDs on.

Definition at line 128 of file hvkit_rev1p1/f28x/f2806x/src/float/hal.h.

#define HAL_turnLedOn   HAL_setGpioHigh

Defines the function to turn LEDs on.

Definition at line 129 of file drv8301kit_revD/f28x/f2806x/src/hal.h.

#define HAL_turnLedOn   HAL_setGpioHigh

Defines the function to turn LEDs on.

Definition at line 132 of file drv8301kit_revD/f28x/f2806x/src/float/hal.h.

#define OSC_POSTRIM   32

Defines the amount to add to Q16.15 fixed point number to shift from a fine trim range of.

(-31 to 31) to (1 to 63). This guarantees that the trim is positive and can therefore be efficiently rounded

Definition at line 77 of file hvkit_rev1p1/f28x/f2806x/src/float/hal.h.

#define OSC_POSTRIM   32

Defines the amount to add to Q16.15 fixed point number to shift from a fine trim range of.

(-31 to 31) to (1 to 63). This guarantees that the trim is positive and can therefore be efficiently rounded

Definition at line 78 of file drv8312kit_revD/f28x/f2806x/src/float/hal.h.

#define OSC_POSTRIM   32

Defines the amount to add to Q16.15 fixed point number to shift from a fine trim range of.

(-31 to 31) to (1 to 63). This guarantees that the trim is positive and can therefore be efficiently rounded

Definition at line 81 of file drv8301kit_revD/f28x/f2806x/src/float/hal.h.

#define OSC_POSTRIM   32

Defines the amount to add to Q16.15 fixed point number to shift from a fine trim range of.

(-31 to 31) to (1 to 63). This guarantees that the trim is positive and can therefore be efficiently rounded

Definition at line 81 of file hvkit_rev1p1/f28x/f2806x/src/hal.h.

#define OSC_POSTRIM   32

Defines the amount to add to Q16.15 fixed point number to shift from a fine trim range of.

(-31 to 31) to (1 to 63). This guarantees that the trim is positive and can therefore be efficiently rounded

Definition at line 81 of file drv8312kit_revD/f28x/f2806x/src/hal.h.

#define OSC_POSTRIM   32

Defines the amount to add to Q16.15 fixed point number to shift from a fine trim range of.

(-31 to 31) to (1 to 63). This guarantees that the trim is positive and can therefore be efficiently rounded

Definition at line 83 of file hal_both.h.

#define OSC_POSTRIM   32

Defines the amount to add to Q16.15 fixed point number to shift from a fine trim range of.

(-31 to 31) to (1 to 63). This guarantees that the trim is positive and can therefore be efficiently rounded

Definition at line 84 of file boostxldrv8301_revB/f28x/f2806x/src/hal.h.

Referenced by HAL_osc1Comp(), and HAL_osc2Comp().

#define OSC_POSTRIM   32

Defines the amount to add to Q16.15 fixed point number to shift from a fine trim range of.

(-31 to 31) to (1 to 63). This guarantees that the trim is positive and can therefore be efficiently rounded

Definition at line 85 of file drv8301kit_revD/f28x/f2806x/src/hal.h.

#define OSC_POSTRIM_OFF   FP_SCALE*OSC_POSTRIM

Definition at line 78 of file hvkit_rev1p1/f28x/f2806x/src/float/hal.h.

#define OSC_POSTRIM_OFF   FP_SCALE*OSC_POSTRIM

Definition at line 79 of file drv8312kit_revD/f28x/f2806x/src/float/hal.h.

#define OSC_POSTRIM_OFF   FP_SCALE*OSC_POSTRIM

Definition at line 82 of file drv8301kit_revD/f28x/f2806x/src/float/hal.h.

#define OSC_POSTRIM_OFF   FP_SCALE*OSC_POSTRIM

Definition at line 82 of file hvkit_rev1p1/f28x/f2806x/src/hal.h.

#define OSC_POSTRIM_OFF   FP_SCALE*OSC_POSTRIM

Definition at line 82 of file drv8312kit_revD/f28x/f2806x/src/hal.h.

#define OSC_POSTRIM_OFF   FP_SCALE*OSC_POSTRIM

Definition at line 84 of file hal_both.h.

#define OSC_POSTRIM_OFF   FP_SCALE*OSC_POSTRIM

Definition at line 85 of file boostxldrv8301_revB/f28x/f2806x/src/hal.h.

Referenced by HAL_osc1Comp(), and HAL_osc2Comp().

#define OSC_POSTRIM_OFF   FP_SCALE*OSC_POSTRIM

Definition at line 86 of file drv8301kit_revD/f28x/f2806x/src/hal.h.

Enumeration Type Documentation

Enumeration for the LED numbers.

Enumerator
HAL_Gpio_LED2 

GPIO pin number for LaunchPad LED D9.

HAL_Gpio_LED3 

GPIO pin number for LaunchPad LED D10.

HAL_Gpio_LED2 

GPIO pin number for LaunchPad LED D9.

HAL_Gpio_LED3 

GPIO pin number for LaunchPad LED D10.

HAL_Gpio_LED2 

GPIO pin number for ControlCARD LED 2.

HAL_Gpio_LED3 

GPIO pin number for ControlCARD LED 3.

HAL_Gpio_LED2 

GPIO pin number for ControlCARD LED 2.

HAL_Gpio_LED3 

GPIO pin number for ControlCARD LED 3.

HAL_Gpio_LED2 

GPIO pin number for ControlCARD LED 2.

HAL_Gpio_LED3 

GPIO pin number for ControlCARD LED 3.

HAL_Gpio_LED2 

GPIO pin number for ControlCARD LED 2.

HAL_Gpio_LED3 

GPIO pin number for ControlCARD LED 3.

HAL_Gpio_LED2 

GPIO pin number for ControlCARD LED 2.

HAL_Gpio_LED3 

GPIO pin number for ControlCARD LED 3.

HAL_Gpio_LED2 

GPIO pin number for ControlCARD LED 2.

HAL_Gpio_LED3 

GPIO pin number for ControlCARD LED 3.

Definition at line 138 of file drv8312kit_revD/f28x/f2806x/src/float/hal.h.

Enumeration for the LED numbers.

Enumerator
HAL_Gpio_LED2 

GPIO pin number for LaunchPad LED D9.

HAL_Gpio_LED3 

GPIO pin number for LaunchPad LED D10.

HAL_Gpio_LED2 

GPIO pin number for LaunchPad LED D9.

HAL_Gpio_LED3 

GPIO pin number for LaunchPad LED D10.

HAL_Gpio_LED2 

GPIO pin number for ControlCARD LED 2.

HAL_Gpio_LED3 

GPIO pin number for ControlCARD LED 3.

HAL_Gpio_LED2 

GPIO pin number for ControlCARD LED 2.

HAL_Gpio_LED3 

GPIO pin number for ControlCARD LED 3.

HAL_Gpio_LED2 

GPIO pin number for ControlCARD LED 2.

HAL_Gpio_LED3 

GPIO pin number for ControlCARD LED 3.

HAL_Gpio_LED2 

GPIO pin number for ControlCARD LED 2.

HAL_Gpio_LED3 

GPIO pin number for ControlCARD LED 3.

HAL_Gpio_LED2 

GPIO pin number for ControlCARD LED 2.

HAL_Gpio_LED3 

GPIO pin number for ControlCARD LED 3.

HAL_Gpio_LED2 

GPIO pin number for ControlCARD LED 2.

HAL_Gpio_LED3 

GPIO pin number for ControlCARD LED 3.

Definition at line 142 of file hvkit_rev1p1/f28x/f2806x/src/float/hal.h.

Enumeration for the LED numbers.

Enumerator
HAL_Gpio_LED2 

GPIO pin number for LaunchPad LED D9.

HAL_Gpio_LED3 

GPIO pin number for LaunchPad LED D10.

HAL_Gpio_LED2 

GPIO pin number for LaunchPad LED D9.

HAL_Gpio_LED3 

GPIO pin number for LaunchPad LED D10.

HAL_Gpio_LED2 

GPIO pin number for ControlCARD LED 2.

HAL_Gpio_LED3 

GPIO pin number for ControlCARD LED 3.

HAL_Gpio_LED2 

GPIO pin number for ControlCARD LED 2.

HAL_Gpio_LED3 

GPIO pin number for ControlCARD LED 3.

HAL_Gpio_LED2 

GPIO pin number for ControlCARD LED 2.

HAL_Gpio_LED3 

GPIO pin number for ControlCARD LED 3.

HAL_Gpio_LED2 

GPIO pin number for ControlCARD LED 2.

HAL_Gpio_LED3 

GPIO pin number for ControlCARD LED 3.

HAL_Gpio_LED2 

GPIO pin number for ControlCARD LED 2.

HAL_Gpio_LED3 

GPIO pin number for ControlCARD LED 3.

HAL_Gpio_LED2 

GPIO pin number for ControlCARD LED 2.

HAL_Gpio_LED3 

GPIO pin number for ControlCARD LED 3.

Definition at line 146 of file drv8301kit_revD/f28x/f2806x/src/float/hal.h.

Enumeration for the LED numbers.

Enumerator
HAL_Gpio_LED2 

GPIO pin number for LaunchPad LED D9.

HAL_Gpio_LED3 

GPIO pin number for LaunchPad LED D10.

HAL_Gpio_LED2 

GPIO pin number for LaunchPad LED D9.

HAL_Gpio_LED3 

GPIO pin number for LaunchPad LED D10.

HAL_Gpio_LED2 

GPIO pin number for ControlCARD LED 2.

HAL_Gpio_LED3 

GPIO pin number for ControlCARD LED 3.

HAL_Gpio_LED2 

GPIO pin number for ControlCARD LED 2.

HAL_Gpio_LED3 

GPIO pin number for ControlCARD LED 3.

HAL_Gpio_LED2 

GPIO pin number for ControlCARD LED 2.

HAL_Gpio_LED3 

GPIO pin number for ControlCARD LED 3.

HAL_Gpio_LED2 

GPIO pin number for ControlCARD LED 2.

HAL_Gpio_LED3 

GPIO pin number for ControlCARD LED 3.

HAL_Gpio_LED2 

GPIO pin number for ControlCARD LED 2.

HAL_Gpio_LED3 

GPIO pin number for ControlCARD LED 3.

HAL_Gpio_LED2 

GPIO pin number for ControlCARD LED 2.

HAL_Gpio_LED3 

GPIO pin number for ControlCARD LED 3.

Definition at line 147 of file drv8312kit_revD/f28x/f2806x/src/hal.h.

Enumeration for the LED numbers.

Enumerator
HAL_Gpio_LED2 

GPIO pin number for LaunchPad LED D9.

HAL_Gpio_LED3 

GPIO pin number for LaunchPad LED D10.

HAL_Gpio_LED2 

GPIO pin number for LaunchPad LED D9.

HAL_Gpio_LED3 

GPIO pin number for LaunchPad LED D10.

HAL_Gpio_LED2 

GPIO pin number for ControlCARD LED 2.

HAL_Gpio_LED3 

GPIO pin number for ControlCARD LED 3.

HAL_Gpio_LED2 

GPIO pin number for ControlCARD LED 2.

HAL_Gpio_LED3 

GPIO pin number for ControlCARD LED 3.

HAL_Gpio_LED2 

GPIO pin number for ControlCARD LED 2.

HAL_Gpio_LED3 

GPIO pin number for ControlCARD LED 3.

HAL_Gpio_LED2 

GPIO pin number for ControlCARD LED 2.

HAL_Gpio_LED3 

GPIO pin number for ControlCARD LED 3.

HAL_Gpio_LED2 

GPIO pin number for ControlCARD LED 2.

HAL_Gpio_LED3 

GPIO pin number for ControlCARD LED 3.

HAL_Gpio_LED2 

GPIO pin number for ControlCARD LED 2.

HAL_Gpio_LED3 

GPIO pin number for ControlCARD LED 3.

Definition at line 147 of file hvkit_rev1p1/f28x/f2806x/src/hal.h.

Enumeration for the LED numbers.

Enumerator
HAL_Gpio_LED2 

GPIO pin number for LaunchPad LED D9.

HAL_Gpio_LED3 

GPIO pin number for LaunchPad LED D10.

HAL_Gpio_LED2 

GPIO pin number for LaunchPad LED D9.

HAL_Gpio_LED3 

GPIO pin number for LaunchPad LED D10.

HAL_Gpio_LED2 

GPIO pin number for ControlCARD LED 2.

HAL_Gpio_LED3 

GPIO pin number for ControlCARD LED 3.

HAL_Gpio_LED2 

GPIO pin number for ControlCARD LED 2.

HAL_Gpio_LED3 

GPIO pin number for ControlCARD LED 3.

HAL_Gpio_LED2 

GPIO pin number for ControlCARD LED 2.

HAL_Gpio_LED3 

GPIO pin number for ControlCARD LED 3.

HAL_Gpio_LED2 

GPIO pin number for ControlCARD LED 2.

HAL_Gpio_LED3 

GPIO pin number for ControlCARD LED 3.

HAL_Gpio_LED2 

GPIO pin number for ControlCARD LED 2.

HAL_Gpio_LED3 

GPIO pin number for ControlCARD LED 3.

HAL_Gpio_LED2 

GPIO pin number for ControlCARD LED 2.

HAL_Gpio_LED3 

GPIO pin number for ControlCARD LED 3.

Definition at line 150 of file hal_both.h.

Enumeration for the LED numbers.

Enumerator
HAL_Gpio_LED2 

GPIO pin number for LaunchPad LED D9.

HAL_Gpio_LED3 

GPIO pin number for LaunchPad LED D10.

HAL_Gpio_LED2 

GPIO pin number for LaunchPad LED D9.

HAL_Gpio_LED3 

GPIO pin number for LaunchPad LED D10.

HAL_Gpio_LED2 

GPIO pin number for ControlCARD LED 2.

HAL_Gpio_LED3 

GPIO pin number for ControlCARD LED 3.

HAL_Gpio_LED2 

GPIO pin number for ControlCARD LED 2.

HAL_Gpio_LED3 

GPIO pin number for ControlCARD LED 3.

HAL_Gpio_LED2 

GPIO pin number for ControlCARD LED 2.

HAL_Gpio_LED3 

GPIO pin number for ControlCARD LED 3.

HAL_Gpio_LED2 

GPIO pin number for ControlCARD LED 2.

HAL_Gpio_LED3 

GPIO pin number for ControlCARD LED 3.

HAL_Gpio_LED2 

GPIO pin number for ControlCARD LED 2.

HAL_Gpio_LED3 

GPIO pin number for ControlCARD LED 3.

HAL_Gpio_LED2 

GPIO pin number for ControlCARD LED 2.

HAL_Gpio_LED3 

GPIO pin number for ControlCARD LED 3.

Definition at line 151 of file boostxldrv8301_revB/f28x/f2806x/src/hal.h.

Enumeration for the LED numbers.

Enumerator
HAL_Gpio_LED2 

GPIO pin number for LaunchPad LED D9.

HAL_Gpio_LED3 

GPIO pin number for LaunchPad LED D10.

HAL_Gpio_LED2 

GPIO pin number for LaunchPad LED D9.

HAL_Gpio_LED3 

GPIO pin number for LaunchPad LED D10.

HAL_Gpio_LED2 

GPIO pin number for ControlCARD LED 2.

HAL_Gpio_LED3 

GPIO pin number for ControlCARD LED 3.

HAL_Gpio_LED2 

GPIO pin number for ControlCARD LED 2.

HAL_Gpio_LED3 

GPIO pin number for ControlCARD LED 3.

HAL_Gpio_LED2 

GPIO pin number for ControlCARD LED 2.

HAL_Gpio_LED3 

GPIO pin number for ControlCARD LED 3.

HAL_Gpio_LED2 

GPIO pin number for ControlCARD LED 2.

HAL_Gpio_LED3 

GPIO pin number for ControlCARD LED 3.

HAL_Gpio_LED2 

GPIO pin number for ControlCARD LED 2.

HAL_Gpio_LED3 

GPIO pin number for ControlCARD LED 3.

HAL_Gpio_LED2 

GPIO pin number for ControlCARD LED 2.

HAL_Gpio_LED3 

GPIO pin number for ControlCARD LED 3.

Definition at line 161 of file drv8301kit_revD/f28x/f2806x/src/hal.h.

Enumeration for the PWM frequencies.

Enumerator
HAL_PwmFreq_2_kHz 

2 kHz

HAL_PwmFreq_3_kHz 

3 kHz

HAL_PwmFreq_4_kHz 

4 kHz

HAL_PwmFreq_5_kHz 

5 kHz

HAL_PwmFreq_6_kHz 

6 kHz

HAL_PwmFreq_8_kHz 

8 kHz

HAL_PwmFreq_9_kHz 

9 kHz

HAL_PwmFreq_10_kHz 

10 kHz

HAL_PwmFreq_12_kHz 

12 kHz

HAL_PwmFreq_15_kHz 

15 kHz

HAL_PwmFreq_18_kHz 

18 kHz

HAL_PwmFreq_20_kHz 

20 kHz

HAL_PwmFreq_24_kHz 

24 kHz

HAL_PwmFreq_25_kHz 

25 kHz

HAL_PwmFreq_30_kHz 

30 kHz

HAL_PwmFreq_36_kHz 

36 kHz

HAL_PwmFreq_40_kHz 

40 kHz

HAL_PwmFreq_45_kHz 

45 kHz

HAL_PwmFreq_50_kHz 

50 kHz

HAL_PwmFreq_60_kHz 

60 kHz

HAL_PwmFreq_75_kHz 

75 kHz

HAL_PwmFreq_90_kHz 

90 kHz

HAL_PwmFreq_100_kHz 

100 kHz

HAL_PwmFreq_120_kHz 

120 kHz

HAL_PwmFreq_125_kHz 

125 kHz

HAL_PwmFreq_150_kHz 

150 kHz

HAL_PwmFreq_2_kHz 

2 kHz

HAL_PwmFreq_3_kHz 

3 kHz

HAL_PwmFreq_4_kHz 

4 kHz

HAL_PwmFreq_5_kHz 

5 kHz

HAL_PwmFreq_6_kHz 

6 kHz

HAL_PwmFreq_8_kHz 

8 kHz

HAL_PwmFreq_9_kHz 

9 kHz

HAL_PwmFreq_10_kHz 

10 kHz

HAL_PwmFreq_12_kHz 

12 kHz

HAL_PwmFreq_15_kHz 

15 kHz

HAL_PwmFreq_18_kHz 

18 kHz

HAL_PwmFreq_20_kHz 

20 kHz

HAL_PwmFreq_24_kHz 

24 kHz

HAL_PwmFreq_25_kHz 

25 kHz

HAL_PwmFreq_30_kHz 

30 kHz

HAL_PwmFreq_36_kHz 

36 kHz

HAL_PwmFreq_40_kHz 

40 kHz

HAL_PwmFreq_45_kHz 

45 kHz

HAL_PwmFreq_50_kHz 

50 kHz

HAL_PwmFreq_60_kHz 

60 kHz

HAL_PwmFreq_75_kHz 

75 kHz

HAL_PwmFreq_90_kHz 

90 kHz

HAL_PwmFreq_100_kHz 

100 kHz

HAL_PwmFreq_120_kHz 

120 kHz

HAL_PwmFreq_125_kHz 

125 kHz

HAL_PwmFreq_150_kHz 

150 kHz

HAL_PwmFreq_2_kHz 

2 kHz

HAL_PwmFreq_3_kHz 

3 kHz

HAL_PwmFreq_4_kHz 

4 kHz

HAL_PwmFreq_5_kHz 

5 kHz

HAL_PwmFreq_6_kHz 

6 kHz

HAL_PwmFreq_8_kHz 

8 kHz

HAL_PwmFreq_9_kHz 

9 kHz

HAL_PwmFreq_10_kHz 

10 kHz

HAL_PwmFreq_12_kHz 

12 kHz

HAL_PwmFreq_15_kHz 

15 kHz

HAL_PwmFreq_18_kHz 

18 kHz

HAL_PwmFreq_20_kHz 

20 kHz

HAL_PwmFreq_24_kHz 

24 kHz

HAL_PwmFreq_25_kHz 

25 kHz

HAL_PwmFreq_30_kHz 

30 kHz

HAL_PwmFreq_36_kHz 

36 kHz

HAL_PwmFreq_40_kHz 

40 kHz

HAL_PwmFreq_45_kHz 

45 kHz

HAL_PwmFreq_50_kHz 

50 kHz

HAL_PwmFreq_60_kHz 

60 kHz

HAL_PwmFreq_75_kHz 

75 kHz

HAL_PwmFreq_90_kHz 

90 kHz

HAL_PwmFreq_100_kHz 

100 kHz

HAL_PwmFreq_120_kHz 

120 kHz

HAL_PwmFreq_125_kHz 

125 kHz

HAL_PwmFreq_150_kHz 

150 kHz

Definition at line 147 of file drv8312kit_revD/f28x/f2806x/src/float/hal.h.

Enumeration for the PWM frequencies.

Enumerator
HAL_PwmFreq_2_kHz 

2 kHz

HAL_PwmFreq_3_kHz 

3 kHz

HAL_PwmFreq_4_kHz 

4 kHz

HAL_PwmFreq_5_kHz 

5 kHz

HAL_PwmFreq_6_kHz 

6 kHz

HAL_PwmFreq_8_kHz 

8 kHz

HAL_PwmFreq_9_kHz 

9 kHz

HAL_PwmFreq_10_kHz 

10 kHz

HAL_PwmFreq_12_kHz 

12 kHz

HAL_PwmFreq_15_kHz 

15 kHz

HAL_PwmFreq_18_kHz 

18 kHz

HAL_PwmFreq_20_kHz 

20 kHz

HAL_PwmFreq_24_kHz 

24 kHz

HAL_PwmFreq_25_kHz 

25 kHz

HAL_PwmFreq_30_kHz 

30 kHz

HAL_PwmFreq_36_kHz 

36 kHz

HAL_PwmFreq_40_kHz 

40 kHz

HAL_PwmFreq_45_kHz 

45 kHz

HAL_PwmFreq_50_kHz 

50 kHz

HAL_PwmFreq_60_kHz 

60 kHz

HAL_PwmFreq_75_kHz 

75 kHz

HAL_PwmFreq_90_kHz 

90 kHz

HAL_PwmFreq_100_kHz 

100 kHz

HAL_PwmFreq_120_kHz 

120 kHz

HAL_PwmFreq_125_kHz 

125 kHz

HAL_PwmFreq_150_kHz 

150 kHz

HAL_PwmFreq_2_kHz 

2 kHz

HAL_PwmFreq_3_kHz 

3 kHz

HAL_PwmFreq_4_kHz 

4 kHz

HAL_PwmFreq_5_kHz 

5 kHz

HAL_PwmFreq_6_kHz 

6 kHz

HAL_PwmFreq_8_kHz 

8 kHz

HAL_PwmFreq_9_kHz 

9 kHz

HAL_PwmFreq_10_kHz 

10 kHz

HAL_PwmFreq_12_kHz 

12 kHz

HAL_PwmFreq_15_kHz 

15 kHz

HAL_PwmFreq_18_kHz 

18 kHz

HAL_PwmFreq_20_kHz 

20 kHz

HAL_PwmFreq_24_kHz 

24 kHz

HAL_PwmFreq_25_kHz 

25 kHz

HAL_PwmFreq_30_kHz 

30 kHz

HAL_PwmFreq_36_kHz 

36 kHz

HAL_PwmFreq_40_kHz 

40 kHz

HAL_PwmFreq_45_kHz 

45 kHz

HAL_PwmFreq_50_kHz 

50 kHz

HAL_PwmFreq_60_kHz 

60 kHz

HAL_PwmFreq_75_kHz 

75 kHz

HAL_PwmFreq_90_kHz 

90 kHz

HAL_PwmFreq_100_kHz 

100 kHz

HAL_PwmFreq_120_kHz 

120 kHz

HAL_PwmFreq_125_kHz 

125 kHz

HAL_PwmFreq_150_kHz 

150 kHz

HAL_PwmFreq_2_kHz 

2 kHz

HAL_PwmFreq_3_kHz 

3 kHz

HAL_PwmFreq_4_kHz 

4 kHz

HAL_PwmFreq_5_kHz 

5 kHz

HAL_PwmFreq_6_kHz 

6 kHz

HAL_PwmFreq_8_kHz 

8 kHz

HAL_PwmFreq_9_kHz 

9 kHz

HAL_PwmFreq_10_kHz 

10 kHz

HAL_PwmFreq_12_kHz 

12 kHz

HAL_PwmFreq_15_kHz 

15 kHz

HAL_PwmFreq_18_kHz 

18 kHz

HAL_PwmFreq_20_kHz 

20 kHz

HAL_PwmFreq_24_kHz 

24 kHz

HAL_PwmFreq_25_kHz 

25 kHz

HAL_PwmFreq_30_kHz 

30 kHz

HAL_PwmFreq_36_kHz 

36 kHz

HAL_PwmFreq_40_kHz 

40 kHz

HAL_PwmFreq_45_kHz 

45 kHz

HAL_PwmFreq_50_kHz 

50 kHz

HAL_PwmFreq_60_kHz 

60 kHz

HAL_PwmFreq_75_kHz 

75 kHz

HAL_PwmFreq_90_kHz 

90 kHz

HAL_PwmFreq_100_kHz 

100 kHz

HAL_PwmFreq_120_kHz 

120 kHz

HAL_PwmFreq_125_kHz 

125 kHz

HAL_PwmFreq_150_kHz 

150 kHz

Definition at line 151 of file hvkit_rev1p1/f28x/f2806x/src/float/hal.h.

Enumeration for the PWM frequencies.

Enumerator
HAL_PwmFreq_2_kHz 

2 kHz

HAL_PwmFreq_3_kHz 

3 kHz

HAL_PwmFreq_4_kHz 

4 kHz

HAL_PwmFreq_5_kHz 

5 kHz

HAL_PwmFreq_6_kHz 

6 kHz

HAL_PwmFreq_8_kHz 

8 kHz

HAL_PwmFreq_9_kHz 

9 kHz

HAL_PwmFreq_10_kHz 

10 kHz

HAL_PwmFreq_12_kHz 

12 kHz

HAL_PwmFreq_15_kHz 

15 kHz

HAL_PwmFreq_18_kHz 

18 kHz

HAL_PwmFreq_20_kHz 

20 kHz

HAL_PwmFreq_24_kHz 

24 kHz

HAL_PwmFreq_25_kHz 

25 kHz

HAL_PwmFreq_30_kHz 

30 kHz

HAL_PwmFreq_36_kHz 

36 kHz

HAL_PwmFreq_40_kHz 

40 kHz

HAL_PwmFreq_45_kHz 

45 kHz

HAL_PwmFreq_50_kHz 

50 kHz

HAL_PwmFreq_60_kHz 

60 kHz

HAL_PwmFreq_75_kHz 

75 kHz

HAL_PwmFreq_90_kHz 

90 kHz

HAL_PwmFreq_100_kHz 

100 kHz

HAL_PwmFreq_120_kHz 

120 kHz

HAL_PwmFreq_125_kHz 

125 kHz

HAL_PwmFreq_150_kHz 

150 kHz

HAL_PwmFreq_2_kHz 

2 kHz

HAL_PwmFreq_3_kHz 

3 kHz

HAL_PwmFreq_4_kHz 

4 kHz

HAL_PwmFreq_5_kHz 

5 kHz

HAL_PwmFreq_6_kHz 

6 kHz

HAL_PwmFreq_8_kHz 

8 kHz

HAL_PwmFreq_9_kHz 

9 kHz

HAL_PwmFreq_10_kHz 

10 kHz

HAL_PwmFreq_12_kHz 

12 kHz

HAL_PwmFreq_15_kHz 

15 kHz

HAL_PwmFreq_18_kHz 

18 kHz

HAL_PwmFreq_20_kHz 

20 kHz

HAL_PwmFreq_24_kHz 

24 kHz

HAL_PwmFreq_25_kHz 

25 kHz

HAL_PwmFreq_30_kHz 

30 kHz

HAL_PwmFreq_36_kHz 

36 kHz

HAL_PwmFreq_40_kHz 

40 kHz

HAL_PwmFreq_45_kHz 

45 kHz

HAL_PwmFreq_50_kHz 

50 kHz

HAL_PwmFreq_60_kHz 

60 kHz

HAL_PwmFreq_75_kHz 

75 kHz

HAL_PwmFreq_90_kHz 

90 kHz

HAL_PwmFreq_100_kHz 

100 kHz

HAL_PwmFreq_120_kHz 

120 kHz

HAL_PwmFreq_125_kHz 

125 kHz

HAL_PwmFreq_150_kHz 

150 kHz

HAL_PwmFreq_2_kHz 

2 kHz

HAL_PwmFreq_3_kHz 

3 kHz

HAL_PwmFreq_4_kHz 

4 kHz

HAL_PwmFreq_5_kHz 

5 kHz

HAL_PwmFreq_6_kHz 

6 kHz

HAL_PwmFreq_8_kHz 

8 kHz

HAL_PwmFreq_9_kHz 

9 kHz

HAL_PwmFreq_10_kHz 

10 kHz

HAL_PwmFreq_12_kHz 

12 kHz

HAL_PwmFreq_15_kHz 

15 kHz

HAL_PwmFreq_18_kHz 

18 kHz

HAL_PwmFreq_20_kHz 

20 kHz

HAL_PwmFreq_24_kHz 

24 kHz

HAL_PwmFreq_25_kHz 

25 kHz

HAL_PwmFreq_30_kHz 

30 kHz

HAL_PwmFreq_36_kHz 

36 kHz

HAL_PwmFreq_40_kHz 

40 kHz

HAL_PwmFreq_45_kHz 

45 kHz

HAL_PwmFreq_50_kHz 

50 kHz

HAL_PwmFreq_60_kHz 

60 kHz

HAL_PwmFreq_75_kHz 

75 kHz

HAL_PwmFreq_90_kHz 

90 kHz

HAL_PwmFreq_100_kHz 

100 kHz

HAL_PwmFreq_120_kHz 

120 kHz

HAL_PwmFreq_125_kHz 

125 kHz

HAL_PwmFreq_150_kHz 

150 kHz

Definition at line 164 of file drv8301kit_revD/f28x/f2806x/src/float/hal.h.

Enumeration for the QEP setup.

Enumerator
HAL_Qep_QEP1 

Select QEP1.

HAL_Qep_QEP2 

Select QEP2.

HAL_Qep_QEP1 

Select QEP1.

HAL_Qep_QEP2 

Select QEP2.

HAL_Qep_QEP1 

Select QEP1.

HAL_Qep_QEP2 

Select QEP2.

HAL_Qep_QEP1 

Select QEP1.

HAL_Qep_QEP2 

Select QEP2.

HAL_Qep_QEP1 

Select QEP1.

HAL_Qep_QEP2 

Select QEP2.

Definition at line 138 of file drv8312kit_revD/f28x/f2806x/src/hal.h.

Enumeration for the QEP setup.

Enumerator
HAL_Qep_QEP1 

Select QEP1.

HAL_Qep_QEP2 

Select QEP2.

HAL_Qep_QEP1 

Select QEP1.

HAL_Qep_QEP2 

Select QEP2.

HAL_Qep_QEP1 

Select QEP1.

HAL_Qep_QEP2 

Select QEP2.

HAL_Qep_QEP1 

Select QEP1.

HAL_Qep_QEP2 

Select QEP2.

HAL_Qep_QEP1 

Select QEP1.

HAL_Qep_QEP2 

Select QEP2.

Definition at line 138 of file hvkit_rev1p1/f28x/f2806x/src/hal.h.

Enumeration for the QEP setup.

Enumerator
HAL_Qep_QEP1 

Select QEP1.

HAL_Qep_QEP2 

Select QEP2.

HAL_Qep_QEP1 

Select QEP1.

HAL_Qep_QEP2 

Select QEP2.

HAL_Qep_QEP1 

Select QEP1.

HAL_Qep_QEP2 

Select QEP2.

HAL_Qep_QEP1 

Select QEP1.

HAL_Qep_QEP2 

Select QEP2.

HAL_Qep_QEP1 

Select QEP1.

HAL_Qep_QEP2 

Select QEP2.

Definition at line 141 of file hal_both.h.

Enumeration for the QEP setup.

Enumerator
HAL_Qep_QEP1 

Select QEP1.

HAL_Qep_QEP2 

Select QEP2.

HAL_Qep_QEP1 

Select QEP1.

HAL_Qep_QEP2 

Select QEP2.

HAL_Qep_QEP1 

Select QEP1.

HAL_Qep_QEP2 

Select QEP2.

HAL_Qep_QEP1 

Select QEP1.

HAL_Qep_QEP2 

Select QEP2.

HAL_Qep_QEP1 

Select QEP1.

HAL_Qep_QEP2 

Select QEP2.

Definition at line 142 of file boostxldrv8301_revB/f28x/f2806x/src/hal.h.

Enumeration for the QEP setup.

Enumerator
HAL_Qep_QEP1 

Select QEP1.

HAL_Qep_QEP2 

Select QEP2.

HAL_Qep_QEP1 

Select QEP1.

HAL_Qep_QEP2 

Select QEP2.

HAL_Qep_QEP1 

Select QEP1.

HAL_Qep_QEP2 

Select QEP2.

HAL_Qep_QEP1 

Select QEP1.

HAL_Qep_QEP2 

Select QEP2.

HAL_Qep_QEP1 

Select QEP1.

HAL_Qep_QEP2 

Select QEP2.

Definition at line 152 of file drv8301kit_revD/f28x/f2806x/src/hal.h.

Enumeration for the sensor types.

Enumerator
HAL_SensorType_Current 

Enumeration for current sensor.

HAL_SensorType_Voltage 

Enumeration for voltage sensor.

HAL_SensorType_Current 

Enumeration for current sensor.

HAL_SensorType_Voltage 

Enumeration for voltage sensor.

HAL_SensorType_Current 

Enumeration for current sensor.

HAL_SensorType_Voltage 

Enumeration for voltage sensor.

HAL_SensorType_Current 

Enumeration for current sensor.

HAL_SensorType_Voltage 

Enumeration for voltage sensor.

HAL_SensorType_Current 

Enumeration for current sensor.

HAL_SensorType_Voltage 

Enumeration for voltage sensor.

HAL_SensorType_Current 

Enumeration for current sensor.

HAL_SensorType_Voltage 

Enumeration for voltage sensor.

HAL_SensorType_Current 

Enumeration for current sensor.

HAL_SensorType_Voltage 

Enumeration for voltage sensor.

HAL_SensorType_Current 

Enumeration for current sensor.

HAL_SensorType_Voltage 

Enumeration for voltage sensor.

Definition at line 156 of file hvkit_rev1p1/f28x/f2806x/src/hal.h.

Enumeration for the sensor types.

Enumerator
HAL_SensorType_Current 

Enumeration for current sensor.

HAL_SensorType_Voltage 

Enumeration for voltage sensor.

HAL_SensorType_Current 

Enumeration for current sensor.

HAL_SensorType_Voltage 

Enumeration for voltage sensor.

HAL_SensorType_Current 

Enumeration for current sensor.

HAL_SensorType_Voltage 

Enumeration for voltage sensor.

HAL_SensorType_Current 

Enumeration for current sensor.

HAL_SensorType_Voltage 

Enumeration for voltage sensor.

HAL_SensorType_Current 

Enumeration for current sensor.

HAL_SensorType_Voltage 

Enumeration for voltage sensor.

HAL_SensorType_Current 

Enumeration for current sensor.

HAL_SensorType_Voltage 

Enumeration for voltage sensor.

HAL_SensorType_Current 

Enumeration for current sensor.

HAL_SensorType_Voltage 

Enumeration for voltage sensor.

HAL_SensorType_Current 

Enumeration for current sensor.

HAL_SensorType_Voltage 

Enumeration for voltage sensor.

Definition at line 156 of file drv8312kit_revD/f28x/f2806x/src/hal.h.

Enumeration for the sensor types.

Enumerator
HAL_SensorType_Current 

Enumeration for current sensor.

HAL_SensorType_Voltage 

Enumeration for voltage sensor.

HAL_SensorType_Current 

Enumeration for current sensor.

HAL_SensorType_Voltage 

Enumeration for voltage sensor.

HAL_SensorType_Current 

Enumeration for current sensor.

HAL_SensorType_Voltage 

Enumeration for voltage sensor.

HAL_SensorType_Current 

Enumeration for current sensor.

HAL_SensorType_Voltage 

Enumeration for voltage sensor.

HAL_SensorType_Current 

Enumeration for current sensor.

HAL_SensorType_Voltage 

Enumeration for voltage sensor.

HAL_SensorType_Current 

Enumeration for current sensor.

HAL_SensorType_Voltage 

Enumeration for voltage sensor.

HAL_SensorType_Current 

Enumeration for current sensor.

HAL_SensorType_Voltage 

Enumeration for voltage sensor.

HAL_SensorType_Current 

Enumeration for current sensor.

HAL_SensorType_Voltage 

Enumeration for voltage sensor.

Definition at line 159 of file hal_both.h.

Enumeration for the sensor types.

Enumerator
HAL_SensorType_Current 

Enumeration for current sensor.

HAL_SensorType_Voltage 

Enumeration for voltage sensor.

HAL_SensorType_Current 

Enumeration for current sensor.

HAL_SensorType_Voltage 

Enumeration for voltage sensor.

HAL_SensorType_Current 

Enumeration for current sensor.

HAL_SensorType_Voltage 

Enumeration for voltage sensor.

HAL_SensorType_Current 

Enumeration for current sensor.

HAL_SensorType_Voltage 

Enumeration for voltage sensor.

HAL_SensorType_Current 

Enumeration for current sensor.

HAL_SensorType_Voltage 

Enumeration for voltage sensor.

HAL_SensorType_Current 

Enumeration for current sensor.

HAL_SensorType_Voltage 

Enumeration for voltage sensor.

HAL_SensorType_Current 

Enumeration for current sensor.

HAL_SensorType_Voltage 

Enumeration for voltage sensor.

HAL_SensorType_Current 

Enumeration for current sensor.

HAL_SensorType_Voltage 

Enumeration for voltage sensor.

Definition at line 160 of file boostxldrv8301_revB/f28x/f2806x/src/hal.h.

Enumeration for the sensor types.

Enumerator
HAL_SensorType_Current 

Enumeration for current sensor.

HAL_SensorType_Voltage 

Enumeration for voltage sensor.

HAL_SensorType_Current 

Enumeration for current sensor.

HAL_SensorType_Voltage 

Enumeration for voltage sensor.

HAL_SensorType_Current 

Enumeration for current sensor.

HAL_SensorType_Voltage 

Enumeration for voltage sensor.

HAL_SensorType_Current 

Enumeration for current sensor.

HAL_SensorType_Voltage 

Enumeration for voltage sensor.

HAL_SensorType_Current 

Enumeration for current sensor.

HAL_SensorType_Voltage 

Enumeration for voltage sensor.

HAL_SensorType_Current 

Enumeration for current sensor.

HAL_SensorType_Voltage 

Enumeration for voltage sensor.

HAL_SensorType_Current 

Enumeration for current sensor.

HAL_SensorType_Voltage 

Enumeration for voltage sensor.

HAL_SensorType_Current 

Enumeration for current sensor.

HAL_SensorType_Voltage 

Enumeration for voltage sensor.

Definition at line 170 of file drv8301kit_revD/f28x/f2806x/src/hal.h.

Enumeration for the sensor types.

Enumerator
HAL_SensorType_Current 

Enumeration for current sensor.

HAL_SensorType_Voltage 

Enumeration for voltage sensor.

HAL_SensorType_Current 

Enumeration for current sensor.

HAL_SensorType_Voltage 

Enumeration for voltage sensor.

HAL_SensorType_Current 

Enumeration for current sensor.

HAL_SensorType_Voltage 

Enumeration for voltage sensor.

HAL_SensorType_Current 

Enumeration for current sensor.

HAL_SensorType_Voltage 

Enumeration for voltage sensor.

HAL_SensorType_Current 

Enumeration for current sensor.

HAL_SensorType_Voltage 

Enumeration for voltage sensor.

HAL_SensorType_Current 

Enumeration for current sensor.

HAL_SensorType_Voltage 

Enumeration for voltage sensor.

HAL_SensorType_Current 

Enumeration for current sensor.

HAL_SensorType_Voltage 

Enumeration for voltage sensor.

HAL_SensorType_Current 

Enumeration for current sensor.

HAL_SensorType_Voltage 

Enumeration for voltage sensor.

Definition at line 180 of file drv8312kit_revD/f28x/f2806x/src/float/hal.h.

Enumeration for the sensor types.

Enumerator
HAL_SensorType_Current 

Enumeration for current sensor.

HAL_SensorType_Voltage 

Enumeration for voltage sensor.

HAL_SensorType_Current 

Enumeration for current sensor.

HAL_SensorType_Voltage 

Enumeration for voltage sensor.

HAL_SensorType_Current 

Enumeration for current sensor.

HAL_SensorType_Voltage 

Enumeration for voltage sensor.

HAL_SensorType_Current 

Enumeration for current sensor.

HAL_SensorType_Voltage 

Enumeration for voltage sensor.

HAL_SensorType_Current 

Enumeration for current sensor.

HAL_SensorType_Voltage 

Enumeration for voltage sensor.

HAL_SensorType_Current 

Enumeration for current sensor.

HAL_SensorType_Voltage 

Enumeration for voltage sensor.

HAL_SensorType_Current 

Enumeration for current sensor.

HAL_SensorType_Voltage 

Enumeration for voltage sensor.

HAL_SensorType_Current 

Enumeration for current sensor.

HAL_SensorType_Voltage 

Enumeration for voltage sensor.

Definition at line 184 of file hvkit_rev1p1/f28x/f2806x/src/float/hal.h.

Enumeration for the sensor types.

Enumerator
HAL_SensorType_Current 

Enumeration for current sensor.

HAL_SensorType_Voltage 

Enumeration for voltage sensor.

HAL_SensorType_Current 

Enumeration for current sensor.

HAL_SensorType_Voltage 

Enumeration for voltage sensor.

HAL_SensorType_Current 

Enumeration for current sensor.

HAL_SensorType_Voltage 

Enumeration for voltage sensor.

HAL_SensorType_Current 

Enumeration for current sensor.

HAL_SensorType_Voltage 

Enumeration for voltage sensor.

HAL_SensorType_Current 

Enumeration for current sensor.

HAL_SensorType_Voltage 

Enumeration for voltage sensor.

HAL_SensorType_Current 

Enumeration for current sensor.

HAL_SensorType_Voltage 

Enumeration for voltage sensor.

HAL_SensorType_Current 

Enumeration for current sensor.

HAL_SensorType_Voltage 

Enumeration for voltage sensor.

HAL_SensorType_Current 

Enumeration for current sensor.

HAL_SensorType_Voltage 

Enumeration for voltage sensor.

Definition at line 197 of file drv8301kit_revD/f28x/f2806x/src/float/hal.h.

Enumeration for the SW numbers.

Enumerator
HAL_Gpio_SW1 

GPIO pin number for drv8301kit SW 1.

HAL_Gpio_SW2 

GPIO pin number for drv8301kit SW 2.

Definition at line 155 of file drv8301kit_revD/f28x/f2806x/src/float/hal.h.

Function Documentation

static void HAL_acqAdcInt ( HAL_Handle  handle,
const ADC_IntNumber_e  intNumber 
)
inlinestatic

Acknowledges an interrupt from the ADC so that another ADC interrupt can happen again.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle
[in]intNumberThe interrupt number

Definition at line 181 of file boostxldrv8301_revB/f28x/f2806x/src/hal.h.

References _HAL_Obj_::adcHandle, and _HAL_Obj_::pieHandle.

static void HAL_acqPwmInt ( HAL_Handle  handle,
const PWM_Number_e  pwmNumber 
)
inlinestatic

Acknowledges an interrupt from the PWM so that another PWM interrupt can happen again.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle
[in]pwmNumberThe PWM number

Definition at line 201 of file boostxldrv8301_revB/f28x/f2806x/src/hal.h.

References _HAL_Obj_::pieHandle, and _HAL_Obj_::pwmHandle.

static void HAL_acqTimer0Int ( HAL_Handle  handle)
inlinestatic

Acknowledges an interrupt from Timer 0 so that another Timer 0 interrupt can happen again.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle

Definition at line 224 of file boostxldrv8301_revB/f28x/f2806x/src/hal.h.

References _HAL_Obj_::pieHandle, and _HAL_Obj_::timerHandle.

void HAL_AdcCalChanSelect ( HAL_Handle  handle,
const ADC_SocChanNumber_e  chanNumber 
)

Selects the analog channel used for calibration.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle
[in]chanNumberThe channel number

Definition at line 294 of file boostxldrv8301_revB/f28x/f2806x/src/hal.c.

References _HAL_Obj_::adcHandle.

Referenced by HAL_AdcOffsetSelfCal().

uint16_t HAL_AdcCalConversion ( HAL_Handle  handle)

Reads the converted value from the selected calibration channel.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle
Returns
The converted value

Definition at line 319 of file boostxldrv8301_revB/f28x/f2806x/src/hal.c.

References _HAL_Obj_::adcHandle, and usDelay().

Referenced by HAL_AdcOffsetSelfCal().

void HAL_AdcOffsetSelfCal ( HAL_Handle  handle)

Executes the offset calibration of the ADC.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle

Definition at line 246 of file boostxldrv8301_revB/f28x/f2806x/src/hal.c.

References _HAL_Obj_::adcHandle, HAL_AdcCalChanSelect(), and HAL_AdcCalConversion().

Referenced by HAL_cal().

void HAL_cal ( HAL_Handle  handle)

Executes calibration routines.

Values for offset and gain are programmed into OTP memory at the TI factory. This calls and internal function that programs these offsets and gains into the ADC registers.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle

Definition at line 67 of file boostxldrv8301_revB/f28x/f2806x/src/hal.c.

References _HAL_Obj_::clkHandle, HAL_AdcOffsetSelfCal(), and HAL_OscTempComp().

Referenced by HAL_setParams().

uint16_t HAL_computeOscTrimValue ( int16_t  coarse,
int16_t  fine 
)

Definition at line 629 of file drv8301kit_revD/f28x/f2806x/src/float/hal.c.

Referenced by HAL_osc1Comp(), and HAL_osc2Comp().

void HAL_disableGlobalInts ( HAL_Handle  handle)

Disables global interrupts.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle

Definition at line 467 of file boostxldrv8301_revB/f28x/f2806x/src/hal.c.

References _HAL_Obj_::cpuHandle.

static void HAL_disablePwm ( HAL_Handle  handle)
inlinestatic

Disables the PWM device.

Turns off the outputs of the EPWM peripherals which will put the power switches into a high impedance state.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle

Definition at line 262 of file boostxldrv8301_revB/f28x/f2806x/src/hal.h.

References _HAL_Obj_::pwmHandle.

static void HAL_disableTbClockSync ( HAL_Handle  handle)
inlinestatic

Disables the ePWM module time base clock sync signal.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle

Definition at line 301 of file drv8301kit_revD/f28x/f2806x/src/float/hal.h.

References _HAL_Obj_::clkHandle.

void HAL_disableWdog ( HAL_Handle  handle)

Disables the watch dog.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle

Definition at line 455 of file boostxldrv8301_revB/f28x/f2806x/src/hal.c.

References hal, and _HAL_Obj_::wdogHandle.

Referenced by HAL_init().

void HAL_enableAdcInts ( HAL_Handle  handle)

Enables the ADC interrupts.

Enables the ADC interrupt in the PIE, and CPU. Enables the interrupt to be sent from the ADC peripheral.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle

Definition at line 478 of file boostxldrv8301_revB/f28x/f2806x/src/hal.c.

References _HAL_Obj_::adcHandle, _HAL_Obj_::cpuHandle, and _HAL_Obj_::pieHandle.

void HAL_enableDebugInt ( HAL_Handle  handle)

Enables the debug interrupt.

The debug interrupt is used for the real-time debugger. It is not needed if the real-time debugger is not used. Clears bit 1 of ST1.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle

Definition at line 498 of file boostxldrv8301_revB/f28x/f2806x/src/hal.c.

References _HAL_Obj_::cpuHandle.

void HAL_enableDrv ( HAL_Handle  handle)

Enables the 8301 device.

Provides the correct timing to enable the drv8301

Parameters
[in]handleThe hardware abstraction layer (HAL) handle

Definition at line 509 of file boostxldrv8301_revB/f28x/f2806x/src/hal.c.

References _HAL_Obj_::drv8301Handle.

void HAL_enableGlobalInts ( HAL_Handle  handle)

Enables global interrupts.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle

Definition at line 519 of file boostxldrv8301_revB/f28x/f2806x/src/hal.c.

References _HAL_Obj_::cpuHandle.

static void HAL_enablePwm ( HAL_Handle  handle)
inlinestatic

Enables the PWM devices.

Turns on the outputs of the EPWM peripheral which will allow the power switches to be controlled.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle

Definition at line 304 of file boostxldrv8301_revB/f28x/f2806x/src/hal.h.

References _HAL_Obj_::pwmHandle.

void HAL_enablePwmInt ( HAL_Handle  handle)

Enables the PWM interrupt.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle

Definition at line 530 of file boostxldrv8301_revB/f28x/f2806x/src/hal.c.

References _HAL_Obj_::cpuHandle, _HAL_Obj_::pieHandle, and _HAL_Obj_::pwmHandle.

static void HAL_enableTbClockSync ( HAL_Handle  handle)
inlinestatic

Enables the ePWM module time base clock sync signal.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle

Definition at line 360 of file drv8301kit_revD/f28x/f2806x/src/float/hal.h.

References _HAL_Obj_::clkHandle.

void HAL_enableTimer0Int ( HAL_Handle  handle)

Enables the Timer 0 interrupt.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle

Definition at line 553 of file boostxldrv8301_revB/f28x/f2806x/src/hal.c.

References _HAL_Obj_::cpuHandle, _HAL_Obj_::pieHandle, and _HAL_Obj_::timerHandle.

static ADC_SocSampleDelay_e HAL_getAdcSocSampleDelay ( HAL_Handle  handle,
const ADC_SocNumber_e  socNumber 
)
inlinestatic

Gets the ADC delay value.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle
[in]socNumberThe ADC SOC number
Returns
The ADC delay value

Definition at line 330 of file boostxldrv8301_revB/f28x/f2806x/src/hal.h.

References _HAL_Obj_::adcHandle.

static _iq HAL_getBias ( HAL_Handle  handle,
const HAL_SensorType_e  sensorType,
uint_least8_t  sensorNumber 
)
inlinestatic

Gets the ADC bias value.

The ADC bias contains the feedback circuit's offset and bias. Bias is the mathematical offset used when a bi-polar signal is read into a uni-polar ADC.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle
[in]sensorTypeThe sensor type
[in]sensorNumberThe sensor number
Returns
The ADC bias value

Definition at line 347 of file boostxldrv8301_revB/f28x/f2806x/src/hal.h.

References _IQ, _HAL_Obj_::adcBias, HAL_SensorType_Current, HAL_SensorType_Voltage, _HAL_AdcData_t_::I, _HAL_AdcData_t_::V, and _MATH_vec3_::value.

Referenced by HAL_updateAdcBias().

static _iq HAL_getCurrentScaleFactor ( HAL_Handle  handle)
inlinestatic

Gets the current scale factor.

The current scale factor is defined as USER_ADC_FULL_SCALE_CURRENT_A/USER_IQ_FULL_SCALE_CURRENT_A. This scale factor is not used when converting between PU amps and real amps.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle
Returns
The current scale factor

Definition at line 374 of file boostxldrv8301_revB/f28x/f2806x/src/hal.h.

References _HAL_Obj_::current_sf.

Referenced by HAL_readAdcData(), HAL_readAdcDataWithOffsets(), and HAL_setParams().

static void HAL_getDutyCycles ( HAL_Handle  handle,
uint16_t *  pDutyCycles 
)
inlinestatic

Gets the PWM duty cycle times.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle
[in]pDutyCyclesA pointer to memory for the duty cycle durations

Definition at line 425 of file drv8301kit_revD/f28x/f2806x/src/float/hal.h.

References _HAL_Obj_::pwmHandle.

static uint_least8_t HAL_getNumCurrentSensors ( HAL_Handle  handle)
inlinestatic

Gets the number of current sensors.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle
Returns
The number of current sensors

Definition at line 385 of file boostxldrv8301_revB/f28x/f2806x/src/hal.h.

References _HAL_Obj_::numCurrentSensors.

Referenced by HAL_setParams(), and HAL_updateAdcBias().

static uint_least8_t HAL_getNumVoltageSensors ( HAL_Handle  handle)
inlinestatic

Gets the number of voltage sensors.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle
Returns
The number of voltage sensors

Definition at line 397 of file boostxldrv8301_revB/f28x/f2806x/src/hal.h.

References _HAL_Obj_::numVoltageSensors.

Referenced by HAL_setParams(), and HAL_updateAdcBias().

static _iq HAL_getOffsetBeta_lp_pu ( HAL_Handle  handle,
const HAL_SensorType_e  sensorType,
const uint_least8_t  sensorNumber 
)
inlinestatic

Gets the value used to set the low pass filter pole for offset estimation.

An IIR single pole low pass filter is used to find the feedback circuit's offsets. This function returns the value of that pole.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle
[in]sensorTypeThe sensor type
[in]sensorNumberThe sensor number
Returns
The value used to set the low pass filter pole, pu

Definition at line 413 of file boostxldrv8301_revB/f28x/f2806x/src/hal.h.

References _IQ, HAL_SensorType_Current, HAL_SensorType_Voltage, OFFSET_getBeta(), _HAL_Obj_::offsetHandle_I, and _HAL_Obj_::offsetHandle_V.

static _iq HAL_getOffsetValue ( HAL_Handle  handle,
const HAL_SensorType_e  sensorType,
const uint_least8_t  sensorNumber 
)
inlinestatic

Gets the offset value.

The offsets that are calculated during the feedback circuits calibrations are returned from the IIR filter object.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle
[in]sensorTypeThe sensor type
[in]sensorNumberThe sensor number
Returns
The offset value

Definition at line 441 of file boostxldrv8301_revB/f28x/f2806x/src/hal.h.

References _IQ, HAL_SensorType_Current, HAL_SensorType_Voltage, OFFSET_getOffset(), _HAL_Obj_::offsetHandle_I, and _HAL_Obj_::offsetHandle_V.

uint16_t HAL_getOscTrimValue ( int16_t  coarse,
int16_t  fine 
)

Converts coarse and fine oscillator trim values into a single 16bit word value.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle
[in]coarseThe coarse trim portion of the oscillator trim
[in]fineThe fine trim portion of the oscillator trim
Returns
The combined trim value

Definition at line 220 of file boostxldrv8301_revB/f28x/f2806x/src/hal.c.

Referenced by HAL_osc1Comp(), and HAL_osc2Comp().

static uint32_t HAL_getTimerPeriod ( HAL_Handle  handle,
const uint_least8_t  timerNumber 
)
inlinestatic

Gets the timer period.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle
[in]timerNumberThe timer number, 0,1 or 2
Returns
The timer period

Definition at line 705 of file boostxldrv8301_revB/f28x/f2806x/src/hal.h.

References _HAL_Obj_::timerHandle.

static _iq HAL_getVoltageScaleFactor ( HAL_Handle  handle)
inlinestatic

Gets the voltage scale factor.

The voltage scale factor is defined as USER_ADC_FULL_SCALE_VOLTAGE_V/USER_IQ_FULL_SCALE_VOLTAGE_V. This scale factor is not used when converting between PU volts and real volts.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle
Returns
The voltage scale factor

Definition at line 469 of file boostxldrv8301_revB/f28x/f2806x/src/hal.h.

References _HAL_Obj_::voltage_sf.

Referenced by HAL_readAdcData(), and HAL_readAdcDataWithOffsets().

HAL_Handle HAL_init ( void *  pMemory,
const size_t  numBytes 
)

Initializes the hardware abstraction layer (HAL) object.

Initializes all handles to the microcontroller peripherals. Returns a handle to the HAL object.

Parameters
[in]pMemoryA pointer to the memory for the hardware abstraction layer object
[in]numBytesThe number of bytes allocated for the hardware abstraction layer object, bytes
Returns
The hardware abstraction layer (HAL) object handle

Definition at line 602 of file boostxldrv8301_revB/f28x/f2806x/src/hal.c.

References _HAL_Obj_::adcHandle, _HAL_Obj_::clkHandle, _HAL_Obj_::cpuHandle, _HAL_Obj_::drv8301, _HAL_Obj_::drv8301Handle, _HAL_Obj_::flashHandle, _HAL_Obj_::gpioHandle, HAL_disableWdog(), _HAL_Obj_::offset_I, OFFSET_init(), _HAL_Obj_::offset_V, _HAL_Obj_::offsetHandle_I, _HAL_Obj_::offsetHandle_V, _HAL_Obj_::oscHandle, _HAL_Obj_::pieHandle, _HAL_Obj_::pllHandle, _HAL_Obj_::pwmDacHandle, _HAL_Obj_::pwmHandle, _HAL_Obj_::pwrHandle, _HAL_Obj_::spiAHandle, _HAL_Obj_::spiBHandle, _HAL_Obj_::timerHandle, and _HAL_Obj_::wdogHandle.

static void HAL_initIntVectorTable ( HAL_Handle  handle)
inlinestatic

Initializes the interrupt vector table.

Points ADCINT1 to mainISR

Parameters
[in]handleThe hardware abstraction layer (HAL) handle

Definition at line 498 of file boostxldrv8301_revB/f28x/f2806x/src/hal.h.

References mainISR(), and _HAL_Obj_::pieHandle.

void HAL_osc1Comp ( HAL_Handle  handle,
const int16_t  sensorSample 
)

Executes the oscillator 1 calibration based on input sample.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle

Definition at line 166 of file boostxldrv8301_revB/f28x/f2806x/src/hal.c.

References FP_ROUND, FP_SCALE, getOsc1CoarseTrim, getOsc1FineTrimOffset, getOsc1FineTrimSlope, getRefTempOffset, HAL_computeOscTrimValue(), HAL_getOscTrimValue(), OSC_POSTRIM, OSC_POSTRIM_OFF, and _HAL_Obj_::oscHandle.

Referenced by HAL_OscTempComp().

void HAL_osc2Comp ( HAL_Handle  handle,
const int16_t  sensorSample 
)

Executes the oscillator 2 calibration based on input sample.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle

Definition at line 193 of file boostxldrv8301_revB/f28x/f2806x/src/hal.c.

References FP_ROUND, FP_SCALE, getOsc2CoarseTrim, getOsc2FineTrimOffset, getOsc2FineTrimSlope, getRefTempOffset, HAL_computeOscTrimValue(), HAL_getOscTrimValue(), OSC_POSTRIM, OSC_POSTRIM_OFF, and _HAL_Obj_::oscHandle.

Referenced by HAL_OscTempComp().

void HAL_OscTempComp ( HAL_Handle  handle)

Executes the oscillator 1 and 2 calibration functions.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle

Definition at line 100 of file boostxldrv8301_revB/f28x/f2806x/src/hal.c.

References _HAL_Obj_::adcHandle, HAL_osc1Comp(), and HAL_osc2Comp().

Referenced by HAL_cal().

static void HAL_readAdcData ( HAL_Handle  handle,
HAL_AdcData_t pAdcData 
)
inlinestatic

Reads the ADC data.

Reads in the ADC result registers, adjusts for offsets, and scales the values according to the settings in user.h. The structure gAdcData holds three phase voltages, three line currents, and one DC bus voltage.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle
[in]pAdcDataA pointer to the ADC data buffer

Definition at line 521 of file boostxldrv8301_revB/f28x/f2806x/src/hal.h.

References _IQ12mpy, _HAL_Obj_::adcBias, _HAL_Obj_::adcHandle, _HAL_AdcData_t_::dcBus, HAL_getCurrentScaleFactor(), HAL_getVoltageScaleFactor(), _HAL_AdcData_t_::I, _HAL_AdcData_t_::V, and _MATH_vec3_::value.

static void HAL_readAdcDataWithOffsets ( HAL_Handle  handle,
HAL_AdcData_t pAdcData 
)
inlinestatic

Reads the ADC data.

Reads in the ADC result registers, and scales the values according to the settings in user.h. The structure gAdcData holds three phase voltages, three line currents, and one DC bus voltage.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle
[in]pAdcDataA pointer to the ADC data buffer

Definition at line 577 of file boostxldrv8301_revB/f28x/f2806x/src/hal.h.

References _IQ12mpy, _HAL_Obj_::adcHandle, _HAL_AdcData_t_::dcBus, HAL_getCurrentScaleFactor(), HAL_getVoltageScaleFactor(), _HAL_AdcData_t_::I, _HAL_AdcData_t_::V, and _MATH_vec3_::value.

void HAL_readDrvData ( HAL_Handle  handle,
DRV_SPI_8301_Vars_t *  Spi_8301_Vars 
)

Reads data from the driver.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle
[in]Spi_8301_VarsSPI variables

Definition at line 1711 of file boostxldrv8301_revB/f28x/f2806x/src/hal.c.

References _HAL_Obj_::drv8301Handle.

static bool HAL_readGpio ( HAL_Handle  handle,
const GPIO_Number_e  gpioNumber 
)
inlinestatic

Reads the specified GPIO pin.

Takes in the enumeration GPIO_Number_e and reads that GPIO

Parameters
[in]handleThe hardware abstraction layer (HAL) handle
[in]gpioNumberThe GPIO number

Definition at line 778 of file boostxldrv8301_revB/f28x/f2806x/src/hal.h.

References _HAL_Obj_::gpioHandle.

static uint16_t HAL_readPwmCmpA ( HAL_Handle  handle,
const PWM_Number_e  pwmNumber 
)
inlinestatic

Reads PWM compare register A.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle
[in]pwmNumberThe PWM number
Returns
The PWM compare value

Definition at line 1130 of file boostxldrv8301_revB/f28x/f2806x/src/hal.h.

References _HAL_Obj_::pwmHandle.

static uint16_t HAL_readPwmCmpAM ( HAL_Handle  handle,
const PWM_Number_e  pwmNumber 
)
inlinestatic

Reads PWM compare mirror register A.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle
[in]pwmNumberThe PWM number
Returns
The PWM compare value

Definition at line 1147 of file boostxldrv8301_revB/f28x/f2806x/src/hal.h.

References _HAL_Obj_::pwmHandle.

static uint16_t HAL_readPwmCmpB ( HAL_Handle  handle,
const PWM_Number_e  pwmNumber 
)
inlinestatic

Reads PWM compare register B.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle
[in]pwmNumberThe PWM number
Returns
The PWM compare value

Definition at line 1164 of file boostxldrv8301_revB/f28x/f2806x/src/hal.h.

References _HAL_Obj_::pwmHandle.

static uint16_t HAL_readPwmPeriod ( HAL_Handle  handle,
const PWM_Number_e  pwmNumber 
)
inlinestatic

Reads PWM period register.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle
[in]pwmNumberThe PWM number
Returns
The PWM period value

Definition at line 1181 of file boostxldrv8301_revB/f28x/f2806x/src/hal.h.

References _HAL_Obj_::pwmHandle.

static uint32_t HAL_readTimerCnt ( HAL_Handle  handle,
const uint_least8_t  timerNumber 
)
inlinestatic

Reads the timer count.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle
[in]timerNumberThe timer number, 0,1 or 2
Returns
The timer count

Definition at line 630 of file boostxldrv8301_revB/f28x/f2806x/src/hal.h.

References _HAL_Obj_::timerHandle.

static void HAL_reloadTimer ( HAL_Handle  handle,
const uint_least8_t  timerNumber 
)
inlinestatic

Reloads the timer.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle
[in]timerNumberThe timer number, 0,1 or 2

Definition at line 642 of file boostxldrv8301_revB/f28x/f2806x/src/hal.h.

References _HAL_Obj_::timerHandle.

static void HAL_resetPwmCount ( HAL_Handle  handle,
PWM_Number_e  pwmNumber 
)
inlinestatic

Resets the PWM count.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle
[in]pwmNumberThe PWM number

Definition at line 653 of file drv8301kit_revD/f28x/f2806x/src/float/hal.h.

References _HAL_Obj_::pwmHandle.

static void HAL_setAdcSocSampleDelay ( HAL_Handle  handle,
const ADC_SocNumber_e  socNumber,
const ADC_SocSampleDelay_e  sampleDelay 
)
inlinestatic

Sets the ADC SOC sample delay value.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle
[in]socNumberThe SOC number
[in]sampleDelayThe delay value for the ADC

Definition at line 719 of file boostxldrv8301_revB/f28x/f2806x/src/hal.h.

References _HAL_Obj_::adcHandle.

static void HAL_setBias ( HAL_Handle  handle,
const HAL_SensorType_e  sensorType,
uint_least8_t  sensorNumber,
const float_t  bias 
)
inlinestatic

Sets the ADC bias value.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle
[in]sensorTypeThe sensor type
[in]sensorNumberThe sensor number
[in]biasThe ADC bias value

Definition at line 685 of file drv8301kit_revD/f28x/f2806x/src/float/hal.h.

References _HAL_Obj_::adcBias, HAL_SensorType_Current, HAL_SensorType_Voltage, _HAL_AdcData_t_::I_A, _HAL_AdcData_t_::V_V, and _MATH_vec3_::value.

Referenced by HAL_updateAdcBias().

static void HAL_setBias ( HAL_Handle  handle,
const HAL_SensorType_e  sensorType,
uint_least8_t  sensorNumber,
const _iq  bias 
)
inlinestatic

Sets the ADC bias value.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle
[in]sensorTypeThe sensor type
[in]sensorNumberThe sensor number
[in]biasThe ADC bias value

Definition at line 736 of file boostxldrv8301_revB/f28x/f2806x/src/hal.h.

References _HAL_Obj_::adcBias, HAL_SensorType_Current, HAL_SensorType_Voltage, _HAL_AdcData_t_::I, _HAL_AdcData_t_::V, and _MATH_vec3_::value.

Referenced by HAL_setParams(), and HAL_updateAdcBias().

static void HAL_setCurrentScaleFactor ( HAL_Handle  handle,
const float_t  current_sf 
)
inlinestatic

Sets the current scale factor in the hal.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle
[in]current_sfThe current scale factor

Definition at line 709 of file drv8301kit_revD/f28x/f2806x/src/float/hal.h.

References _HAL_Obj_::current_sf.

static void HAL_setCurrentScaleFactor ( HAL_Handle  handle,
const _iq  current_sf 
)
inlinestatic

Sets the current scale factor in the hardware abstraction layer.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle
[in]current_sfThe current scale factor

Definition at line 824 of file boostxldrv8301_revB/f28x/f2806x/src/hal.h.

References _HAL_Obj_::current_sf.

Referenced by HAL_setParams().

static void HAL_setGpioHigh ( HAL_Handle  handle,
const GPIO_Number_e  gpioNumber 
)
inlinestatic

Sets the GPIO pin high.

Takes in the enumeration GPIO_Number_e and sets that GPIO pin high.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle
[in]gpioNumberThe GPIO number

Definition at line 762 of file boostxldrv8301_revB/f28x/f2806x/src/hal.h.

References _HAL_Obj_::gpioHandle.

static void HAL_setGpioLow ( HAL_Handle  handle,
const GPIO_Number_e  gpioNumber 
)
inlinestatic

Sets the GPIO pin low.

Takes in the enumeration GPIO_Number_e and clears that GPIO pin low.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle
[in]gpioNumberThe GPIO number

Definition at line 809 of file boostxldrv8301_revB/f28x/f2806x/src/hal.h.

References _HAL_Obj_::gpioHandle.

static void HAL_setNumCurrentSensors ( HAL_Handle  handle,
const uint_least8_t  numCurrentSensors 
)
inlinestatic

Sets the number of current sensors.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle
[in]numCurrentSensorsThe number of current sensors

Definition at line 838 of file boostxldrv8301_revB/f28x/f2806x/src/hal.h.

References _HAL_Obj_::numCurrentSensors.

Referenced by HAL_setParams().

static void HAL_setNumVoltageSensors ( HAL_Handle  handle,
const uint_least8_t  numVoltageSensors 
)
inlinestatic

Sets the number of voltage sensors.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle
[in]numVoltageSensorsThe number of voltage sensors

Definition at line 852 of file boostxldrv8301_revB/f28x/f2806x/src/hal.h.

References _HAL_Obj_::numVoltageSensors.

Referenced by HAL_setParams().

static void HAL_setOffsetBeta_lp_pu ( HAL_Handle  handle,
const HAL_SensorType_e  sensorType,
const uint_least8_t  sensorNumber,
const _iq  beta_lp_pu 
)
inlinestatic

Sets the value used to set the low pass filter pole for offset estimation.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle
[in]sensorTypeThe sensor type
[in]sensorNumberThe sensor number
[in]beta_lp_puThe value used to set the low pass filter pole, pu

Definition at line 868 of file boostxldrv8301_revB/f28x/f2806x/src/hal.h.

References HAL_SensorType_Current, HAL_SensorType_Voltage, OFFSET_setBeta(), _HAL_Obj_::offsetHandle_I, and _HAL_Obj_::offsetHandle_V.

Referenced by HAL_setParams().

static void HAL_setOffsetInitCond ( HAL_Handle  handle,
const HAL_SensorType_e  sensorType,
const uint_least8_t  sensorNumber,
const _iq  initCond 
)
inlinestatic

Sets the offset initial condition value for offset estimation.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle
[in]sensorTypeThe sensor type
[in]sensorNumberThe sensor number
[in]initCondThe initial condition value

Definition at line 893 of file boostxldrv8301_revB/f28x/f2806x/src/hal.h.

References HAL_SensorType_Current, HAL_SensorType_Voltage, OFFSET_setInitCond(), _HAL_Obj_::offsetHandle_I, and _HAL_Obj_::offsetHandle_V.

Referenced by HAL_setParams().

static void HAL_setOffsetValue ( HAL_Handle  handle,
const HAL_SensorType_e  sensorType,
const uint_least8_t  sensorNumber,
const _iq  value 
)
inlinestatic

Sets the initial offset value for offset estimation.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle
[in]sensorTypeThe sensor type
[in]sensorNumberThe sensor number
[in]valueThe initial offset value

Definition at line 918 of file boostxldrv8301_revB/f28x/f2806x/src/hal.h.

References HAL_SensorType_Current, HAL_SensorType_Voltage, OFFSET_setOffset(), _HAL_Obj_::offsetHandle_I, and _HAL_Obj_::offsetHandle_V.

Referenced by HAL_setParams().

void HAL_setParams ( HAL_Handle  handle,
const USER_Params pUserParams 
)
static void HAL_setPwmFreq_kHz ( HAL_Handle  handle,
PWM_Number_e  pwmNumber,
HAL_PwmFreq_e  pwmFreq_kHz 
)
inlinestatic

Sets the PWM frequency.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle
[in]pwmNumberThe PWM number
[in]pwmFreq_kHzThe PWM frequency, kHz

Definition at line 782 of file drv8301kit_revD/f28x/f2806x/src/float/hal.h.

References _HAL_Obj_::pwmHandle.

static void HAL_setTimerPeriod ( HAL_Handle  handle,
const uint_least8_t  timerNumber,
const uint32_t  period 
)
inlinestatic

Sets the timer period.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle
[in]timerNumberThe timer number, 0,1 or 2
[in]periodThe timer period

Definition at line 690 of file boostxldrv8301_revB/f28x/f2806x/src/hal.h.

References _HAL_Obj_::timerHandle.

static void HAL_setTrigger ( HAL_Handle  handle,
const int16_t  minwidth 
)
inlinestatic

Definition at line 1114 of file hal_both.h.

References _HAL_Obj_::pwmHandle.

static void HAL_setTrigger ( HAL_Handle  handle,
const SVGENCURRENT_IgnoreShunt_e  ignoreShunt,
const int16_t  minwidth,
const int16_t  cmpOffset 
)
inlinestatic
void HAL_setupAdcs ( HAL_Handle  handle)

Sets up the ADCs (Analog to Digital Converters)

Parameters
[in]handleThe hardware abstraction layer (HAL) handle

Definition at line 868 of file boostxldrv8301_revB/f28x/f2806x/src/hal.c.

References _HAL_Obj_::adcHandle.

Referenced by HAL_setParams().

void HAL_setupClks ( HAL_Handle  handle)

Sets up the clocks.

Sets up the micro-controller's main oscillator

Parameters
[in]handleThe hardware abstraction layer (HAL) handle

Definition at line 1003 of file boostxldrv8301_revB/f28x/f2806x/src/hal.c.

References _HAL_Obj_::clkHandle.

Referenced by HAL_setParams().

void HAL_setupDrvSpi ( HAL_Handle  handle,
DRV_SPI_8301_Vars_t *  Spi_8301_Vars 
)

Sets up the SPI interface for the driver.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle
[in]Spi_8301_VarsSPI variables

Definition at line 1721 of file boostxldrv8301_revB/f28x/f2806x/src/hal.c.

References _HAL_Obj_::drv8301Handle.

void HAL_setupFaults ( HAL_Handle  handle)

Configures the fault protection logic.

Sets up the faults.

Sets up the trip zone inputs so that when a comparator signal from outside the micro-controller trips a fault, the EPWM peripheral blocks will force the power switches into a high impedance state.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle
[in]handleThe hardware abstraction layer (HAL) handle

Sets up the faults.

Sets up the trip zone inputs so that when a comparator signal from outside the micro-controller trips a fault, the EPWM peripheral blocks will force the power switches into a high impedance state.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle
[in]handleThe hardware abstraction layer (HAL) handle

Definition at line 572 of file boostxldrv8301_revB/f28x/f2806x/src/hal.c.

References _HAL_Obj_::gpioHandle, and _HAL_Obj_::pwmHandle.

void HAL_setupFlash ( HAL_Handle  handle)

Sets up the FLASH.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle

Definition at line 1033 of file boostxldrv8301_revB/f28x/f2806x/src/hal.c.

References _HAL_Obj_::flashHandle.

Referenced by HAL_setParams().

void HAL_setupGate ( HAL_Handle  handle)

Sets up the GATE object.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle

Definition at line 1054 of file boostxldrv8301_revB/f28x/f2806x/src/hal.c.

References _HAL_Obj_::drv8301Handle, _HAL_Obj_::gpioHandle, _HAL_Obj_::spiAHandle, and _HAL_Obj_::spiBHandle.

Referenced by HAL_setParams().

void HAL_setupGpios ( HAL_Handle  handle)

Sets up the GPIO (General Purpose I/O) pins.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle

Definition at line 1071 of file boostxldrv8301_revB/f28x/f2806x/src/hal.c.

References _HAL_Obj_::gpioHandle.

Referenced by HAL_setParams().

void HAL_setupPeripheralClks ( HAL_Handle  handle)

Sets up the peripheral clocks.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle

Definition at line 1309 of file boostxldrv8301_revB/f28x/f2806x/src/hal.c.

References _HAL_Obj_::clkHandle.

Referenced by HAL_setParams().

void HAL_setupPie ( HAL_Handle  handle)

Sets up the PIE (Peripheral Interrupt Expansion)

Parameters
[in]handleThe hardware abstraction layer (HAL) handle

Definition at line 1288 of file boostxldrv8301_revB/f28x/f2806x/src/hal.c.

References _HAL_Obj_::pieHandle.

Referenced by HAL_setParams().

void HAL_setupPll ( HAL_Handle  handle,
const PLL_ClkFreq_e  clkFreq 
)

Sets up the PLL (Phase Lock Loop)

Parameters
[in]handleThe hardware abstraction layer (HAL) handle
[in]clkFreqThe clock frequency

Definition at line 1358 of file boostxldrv8301_revB/f28x/f2806x/src/hal.c.

References _HAL_Obj_::pllHandle.

Referenced by HAL_setParams().

void HAL_setupPwmDacs ( HAL_Handle  handle,
const float_t  systemFreq_MHz,
const float_t  dacFreq_kHz 
)

Sets up the PWM DACs (Pulse Width Modulator Digital to Analof Converters)

Parameters
[in]handleThe hardware abstraction layer (HAL) handle
[in]systemFreq_MHzThe system frequency, MHz
[in]dacFreq_kHzThe DAC frequency, kHz

Definition at line 1443 of file drv8301kit_revD/f28x/f2806x/src/float/hal.c.

References _HAL_Obj_::clkHandle, and _HAL_Obj_::pwmDacHandle.

Referenced by HAL_setParams().

void HAL_setupPwmDacs ( HAL_Handle  handle)

Sets up the PWM DACs (Pulse Width Modulator Digital to Analof Converters)

Parameters
[in]handleThe hardware abstraction layer (HAL) handle

Definition at line 1613 of file boostxldrv8301_revB/f28x/f2806x/src/hal.c.

References _HAL_Obj_::pwmDacHandle.

Referenced by HAL_setParams().

void HAL_setupPwms ( HAL_Handle  handle,
const float_t  systemFreq_MHz,
const float_t  pwmPeriod_usec,
const uint_least16_t  numPwmTicksPerIsrTick 
)

Sets up the PWMs (Pulse Width Modulators)

Parameters
[in]handleThe hardware abstraction layer (HAL) handle
[in]systemFreq_MHzThe system frequency, MHz
[in]pwmPeriod_usecThe PWM period, usec
[in]numPwmTicksPerIsrTickThe number of PWM clock ticks per ISR clock tick

Definition at line 1407 of file boostxldrv8301_revB/f28x/f2806x/src/hal.c.

References _HAL_Obj_::clkHandle, HAL_PWM_DBFED_CNT, HAL_PWM_DBRED_CNT, and _HAL_Obj_::pwmHandle.

Referenced by HAL_setParams().

void HAL_setupQEP ( QEP_Handle  qepHandle,
const USER_Params pUserParams,
const uint32_t  unitTimerFreq_Hz 
)

Sets up the QEP peripheral (Quadrature Encoder)

Parameters
[in]qepHandleThe qep (QEP) handle
[in]numEncSlotsThe number of encoder slots

Definition at line 1527 of file drv8301kit_revD/f28x/f2806x/src/float/hal.c.

References _USER_Params_::motor_numEncSlots, and _USER_Params_::systemFreq_MHz.

Referenced by HAL_setParams().

void HAL_setupQEP ( HAL_Handle  handle,
HAL_QepSelect_e  qep 
)

Sets up the QEP peripheral.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle

Referenced by HAL_setParams().

void HAL_setupSpiA ( HAL_Handle  handle)

Sets up the spiA peripheral.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle

Definition at line 1573 of file boostxldrv8301_revB/f28x/f2806x/src/hal.c.

References _HAL_Obj_::spiAHandle.

Referenced by HAL_setParams().

void HAL_setupSpiB ( HAL_Handle  handle)

Sets up the spiB peripheral.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle

Definition at line 1593 of file boostxldrv8301_revB/f28x/f2806x/src/hal.c.

References _HAL_Obj_::spiBHandle.

Referenced by HAL_setParams().

void HAL_setupTimers ( HAL_Handle  handle,
const float_t  systemFreq_MHz 
)

Sets up the timers.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle
[in]systemFreq_MHzThe system frequency, MHz

Definition at line 1680 of file boostxldrv8301_revB/f28x/f2806x/src/hal.c.

References _HAL_Obj_::timerHandle.

Referenced by HAL_setParams().

static void HAL_setVoltageScaleFactor ( HAL_Handle  handle,
const float_t  voltage_sf 
)
inlinestatic

Sets the voltage scale factor in the hal.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle
[in]voltage_sfThe voltage scale factor

Definition at line 797 of file drv8301kit_revD/f28x/f2806x/src/float/hal.h.

References _HAL_Obj_::voltage_sf.

static void HAL_setVoltageScaleFactor ( HAL_Handle  handle,
const _iq  voltage_sf 
)
inlinestatic

Sets the voltage scale factor in the hardware abstraction layer.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle
[in]voltage_sfThe voltage scale factor

Definition at line 941 of file boostxldrv8301_revB/f28x/f2806x/src/hal.h.

References _HAL_Obj_::voltage_sf.

Referenced by HAL_setParams().

static void HAL_startTimer ( HAL_Handle  handle,
const uint_least8_t  timerNumber 
)
inlinestatic

Starts the timer.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle
[in]timerNumberThe timer number, 0,1 or 2

Definition at line 661 of file boostxldrv8301_revB/f28x/f2806x/src/hal.h.

References _HAL_Obj_::timerHandle.

static void HAL_stopTimer ( HAL_Handle  handle,
const uint_least8_t  timerNumber 
)
inlinestatic

Stops the timer.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle
[in]timerNumberThe timer number, 0,1 or 2

Definition at line 675 of file boostxldrv8301_revB/f28x/f2806x/src/hal.h.

References _HAL_Obj_::timerHandle.

static void HAL_toggleGpio ( HAL_Handle  handle,
const GPIO_Number_e  gpioNumber 
)
inlinestatic

Toggles the GPIO pin.

Takes in the enumeration GPIO_Number_e and toggles that GPIO pin.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle
[in]gpioNumberThe GPIO number

Definition at line 792 of file boostxldrv8301_revB/f28x/f2806x/src/hal.h.

References _HAL_Obj_::gpioHandle.

static void HAL_updateAdcBias ( HAL_Handle  handle,
OFFSET_Handle pOffsetHandle_I,
OFFSET_Handle pOffsetHandle_V 
)
inlinestatic

Updates the ADC bias values.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle
[in]pOffsetHandle_IThe pointer to the the current offset handles
[in]pOffsetHandle_VThe pointer to the the voltage offset handles

Definition at line 923 of file drv8301kit_revD/f28x/f2806x/src/float/hal.h.

References HAL_getBias(), HAL_getNumCurrentSensors(), HAL_getNumVoltageSensors(), HAL_SensorType_Current, HAL_SensorType_Voltage, HAL_setBias(), and OFFSET_getOffset().

static void HAL_updateAdcBias ( HAL_Handle  handle)
inlinestatic

Updates the ADC bias values.

This function is called before the motor is started. It sets the voltage and current measurement offsets.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle

Definition at line 1038 of file boostxldrv8301_revB/f28x/f2806x/src/hal.h.

References HAL_getBias(), HAL_getNumCurrentSensors(), HAL_getNumVoltageSensors(), HAL_SensorType_Current, HAL_SensorType_Voltage, HAL_setBias(), OFFSET_getOffset(), _HAL_Obj_::offsetHandle_I, and _HAL_Obj_::offsetHandle_V.

static void HAL_writeDacData ( HAL_Handle  handle,
const HAL_DacData_t pDacData 
)
inlinestatic

Writes DAC data to the PWM comparators for DAC (digital-to-analog conversion) output.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle
[in]pDacDataThe pointer to the DAC data

Definition at line 958 of file drv8301kit_revD/f28x/f2806x/src/float/hal.h.

References MATH_sat(), _HAL_Obj_::pwmDacHandle, and _HAL_DacData_t_::value.

static void HAL_writeDacData ( HAL_Handle  handle,
HAL_DacData_t pDacData 
)
inlinestatic

Writes DAC data to the PWM comparators for DAC (digital-to-analog conversion) output.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle
[in]pDacDataThe pointer to the DAC data

Definition at line 1073 of file boostxldrv8301_revB/f28x/f2806x/src/hal.h.

References _IQtoIQ15, _HAL_Obj_::pwmDacHandle, and _HAL_DacData_t_::value.

void HAL_writeDrvData ( HAL_Handle  handle,
DRV_SPI_8301_Vars_t *  Spi_8301_Vars 
)

Writes data to the driver.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle
[in]Spi_8301_VarsSPI variables

Definition at line 1701 of file boostxldrv8301_revB/f28x/f2806x/src/hal.c.

References _HAL_Obj_::drv8301Handle.

static void HAL_writePwmData ( HAL_Handle  handle,
const HAL_PwmData_t pPwmData 
)
inlinestatic

Writes PWM data to the PWM comparators for motor control.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle
[in]pPwmDataThe pointer to the PWM data

Definition at line 1003 of file drv8301kit_revD/f28x/f2806x/src/float/hal.h.

References MATH_sat(), _HAL_Obj_::pwmHandle, _HAL_PwmData_t_::Vabc_pu, and _MATH_vec3_::value.

static void HAL_writePwmData ( HAL_Handle  handle,
HAL_PwmData_t pPwmData 
)
inlinestatic

Writes PWM data to the PWM comparators for motor control.

Parameters
[in]handleThe hardware abstraction layer (HAL) handle
[in]pPwmDataThe pointer to the PWM data

Definition at line 1096 of file boostxldrv8301_revB/f28x/f2806x/src/hal.h.

References _IQ, _IQmpy, _IQsat, _HAL_Obj_::pwmHandle, _HAL_PwmData_t_::Tabc, and _MATH_vec3_::value.

interrupt void led2ISR ( void  )
interrupt void led3OffISR ( void  )
interrupt void led3OnISR ( void  )
interrupt void mainISR ( void  )

Referenced by HAL_initIntVectorTable().