MotorWare f2806x Module API Documentation
Functions
hvkit_rev1p1/f28x/f2806x/src/float/hal.c File Reference

Contains the various functions related to the HAL object. More...

#include "hal.h"
#include "user.h"
#include "hal_obj.h"

Go to the source code of this file.

Functions

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...
 
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 halHandle)
 Disables the watch dog. 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_enablePwmInt (HAL_Handle handle)
 Enables the PWM interrupt. More...
 
HAL_Handle HAL_init (void *pMemory, const size_t numBytes)
 Initializes the hardware abstraction layer (HAL) object. 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_computeOscTrimValue (int16_t coarse, int16_t fine)
 
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_setupFaults (HAL_Handle handle)
 Configures the fault protection logic. 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_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_setupTimers (HAL_Handle handle, const float_t systemFreq_MHz)
 Sets up the timers. More...
 

Detailed Description

Contains the various functions related to the HAL object.

(C) Copyright 2014, Texas Instruments, Inc.

Definition in file hvkit_rev1p1/f28x/f2806x/src/float/hal.c.