MotorWare f2806x Module API Documentation
Functions | Variables
drv8301kit_revD/f28x/f2806x/src/hal.c File Reference
#include "hal.h"
#include "user.h"
#include "hal_obj.h"

Go to the source code of this file.

Functions

void HAL_cal (HAL_Handle handle)
 Executes calibration routines. 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...
 
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_AdcOffsetSelfCal (HAL_Handle handle)
 Executes the offset calibration of the ADC. More...
 
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_disableWdog (HAL_Handle halHandle)
 Disables the watch dog. More...
 
void HAL_disableGlobalInts (HAL_Handle handle)
 Disables global interrupts. 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_enableDrv (HAL_Handle handle)
 Enables the 8301 device. More...
 
void HAL_enableGlobalInts (HAL_Handle handle)
 Enables global interrupts. More...
 
void HAL_enablePwmInt (HAL_Handle handle)
 Enables the PWM interrupt. More...
 
void HAL_enableTimer0Int (HAL_Handle handle)
 Enables the Timer 0 interrupt. 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...
 
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_setupGate (HAL_Handle handle)
 Sets up the GATE object. More...
 
void HAL_setupGpios (HAL_Handle handle)
 Sets up the GPIO (General Purpose I/O) pins. More...
 
void HAL_setupPie (HAL_Handle handle)
 Sets up the PIE (Peripheral Interrupt Expansion) More...
 
void HAL_setupPeripheralClks (HAL_Handle handle)
 Sets up the peripheral clocks. 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_setupSpiA (HAL_Handle handle)
 Sets up the spiA peripheral. More...
 
void HAL_setupSpiB (HAL_Handle handle)
 Sets up the spiB peripheral. More...
 
void HAL_setupPwmDacs (HAL_Handle handle)
 Sets up the PWM DACs (Pulse Width Modulator Digital to Analof Converters) More...
 
void HAL_setupTimers (HAL_Handle handle, const float_t systemFreq_MHz)
 Sets up the timers. 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...
 

Variables

HAL_Obj hal
 Defines the HAL object. More...