|
MotorWare f2806x Driver API Documentation
|
Contains public interface to various functions related to the analog-to-digital converter (ADC) object. More...
Go to the source code of this file.
Data Structures | |
| struct | _ADC_Obj_ |
| Defines the analog-to-digital converter (ADC) object. More... | |
Macros | |
| #define | ADC_BASE_ADDR (0x00000B00) |
| Defines the base address of the analog-to-digital converter (ADC) registers. More... | |
| #define | ADC_DELAY_usec 10000L |
| Defines the ADC delay for part of the ADC initialization. More... | |
| #define | ADC_numBits 12 |
| Defines the number of ADC bits. More... | |
| #define | ADC_dataBias (1 << (ADC_numBits - 1)) |
| Defines the bias value corresponding to a voltage bias of 1.65V on the input data (3.3V input, 12 bit ADC) More... | |
| #define | ADC_ADCCTL1_TEMPCONV_BITS (1 << 0) |
| Defines the location of the TEMPCONV bits in the ADCTL1 register. More... | |
| #define | ADC_ADCCTL1_VREFLOCONV_BITS (1 << 1) |
| Defines the location of the VREFLOCONV bits in the ADCTL1 register. More... | |
| #define | ADC_ADCCTL1_INTPULSEPOS_BITS (1 << 2) |
| Defines the location of the INTPULSEPOS bits in the ADCTL1 register. More... | |
| #define | ADC_ADCCTL1_ADCREFSEL_BITS (1 << 3) |
| Defines the location of the ADCREFSEL bits in the ADCTL1 register. More... | |
| #define | ADC_ADCCTL1_ADCREFPWD_BITS (1 << 5) |
| Defines the location of the ADCREFPWD bits in the ADCTL1 register. More... | |
| #define | ADC_ADCCTL1_ADCBGPWD_BITS (1 << 6) |
| Defines the location of the ADCBGPWD bits in the ADCTL1 register. More... | |
| #define | ADC_ADCCTL1_ADCPWDN_BITS (1 << 7) |
| Defines the location of the ADCPWDN bits in the ADCTL1 register. More... | |
| #define | ADC_ADCCTL1_ADCBSYCHAN_BITS (31 << 8) |
| Defines the location of the ADCBSYCHAN bits in the ADCTL1 register. More... | |
| #define | ADC_ADCCTL1_ADCBSY_BITS (1 << 13) |
| Defines the location of the ADCBSY bits in the ADCTL1 register. More... | |
| #define | ADC_ADCCTL1_ADCENABLE_BITS (1 << 14) |
| Defines the location of the ADCENABLE bits in the ADCTL1 register. More... | |
| #define | ADC_ADCCTL1_RESET_BITS (1 << 15) |
| Defines the location of the RESET bits in the ADCTL1 register. More... | |
| #define | ADC_ADCCTL2_CLKDIV2EN_BITS (1 << 0) |
| Defines the location of the CLKDIV2EN bits in the ADCTL2 register. More... | |
| #define | ADC_ADCCTL2_CLKDIV4EN_BITS (1 << 2) |
| Defines the location of the CLKDIV4EN bits in the ADCTL2 register. More... | |
| #define | ADC_ADCCTL2_ADCNONOVERLAP_BITS (1 << 1) |
| Defines the location of the ADCNONOVERLAP bits in the ADCTL2 register. More... | |
| #define | ADC_INTSELxNy_NUMBITS_PER_REG 8 |
| Defines the number of bits per INTSELxNy register. More... | |
| #define | ADC_INTSELxNy_LOG2_NUMBITS_PER_REG 3 |
| Defines the log2() of the number of bits per INTSELxNy register. More... | |
| #define | ADC_INTSELxNy_INTSEL_BITS (31 << 0) |
| Defines the location of the INTSEL bits in the INTSELxNy register. More... | |
| #define | ADC_INTSELxNy_INTE_BITS (1 << 5) |
| Defines the location of the INTE bits in the INTSELxNy register. More... | |
| #define | ADC_INTSELxNy_INTCONT_BITS (1 << 6) |
| Defines the location of the INTCONT bits in the INTSELxNy register. More... | |
| #define | ADC_ADCSOCxCTL_ACQPS_BITS (63 << 0) |
| Defines the location of the ACQPS bits in the ADCSOCxCTL register. More... | |
| #define | ADC_ADCSOCxCTL_CHSEL_BITS (15 << 6) |
| Defines the location of the CHSEL bits in the ADCSOCxCTL register. More... | |
| #define | ADC_ADCSOCxCTL_TRIGSEL_BITS (31 << 11) |
| Defines the location of the TRIGSEL bits in the ADCSOCxCTL register. More... | |
| #define | ADC_ADCINTSOCSELx_SOCx_BITS 3 |
| Defines the location of the SOCx bits in the ADCINTSOCSELx register. More... | |
| #define | ADC_ADCSAMPLEMODE_SIMULEN0_BITS (1 << 0) |
| Defines the location of the SIMULEN0 bits in the ADCSAMPLEMODE register. More... | |
| #define | ADC_ADCSAMPLEMODE_SIMULEN2_BITS (1 << 1) |
| Defines the location of the SIMULEN2 bits in the ADCSAMPLEMODE register. More... | |
| #define | ADC_ADCSAMPLEMODE_SIMULEN4_BITS (1 << 2) |
| Defines the location of the SIMULEN4 bits in the ADCSAMPLEMODE register. More... | |
| #define | ADC_ADCSAMPLEMODE_SIMULEN6_BITS (1 << 3) |
| Defines the location of the SIMULEN6 bits in the ADCSAMPLEMODE register. More... | |
| #define | ADC_ADCSAMPLEMODE_SIMULEN8_BITS (1 << 4) |
| Defines the location of the SIMULEN8 bits in the ADCSAMPLEMODE register. More... | |
| #define | ADC_ADCSAMPLEMODE_SIMULEN10_BITS (1 << 5) |
| Defines the location of the SIMULEN10 bits in the ADCSAMPLEMODE register. More... | |
| #define | ADC_ADCSAMPLEMODE_SIMULEN12_BITS (1 << 6) |
| Defines the location of the SIMULEN12 bits in the ADCSAMPLEMODE register. More... | |
| #define | ADC_ADCSAMPLEMODE_SIMULEN14_BITS (1 << 7) |
| Defines the location of the SIMULEN14 bits in the ADCSAMPLEMODE register. More... | |
| #define | ADC_ADCSAMPLEMODE_SEPARATE_FLAG 0x100 |
| Define for the channel separate flag. More... | |
Typedefs | |
| typedef struct _ADC_Obj_ | ADC_Obj |
| Defines the analog-to-digital converter (ADC) object. More... | |
| typedef struct _ADC_Obj_ * | ADC_Handle |
| Defines the analog-to-digital converter (ADC) handle. More... | |
Functions | |
| static void | ADC_clearIntFlag (ADC_Handle adcHandle, const ADC_IntNumber_e intNumber) |
| Clears the analog-to-digital converter (ADC) interrupt flag. More... | |
| static bool | ADC_getIntFlag (ADC_Handle adcHandle, const ADC_IntNumber_e intNumber) |
| Gets the analog-to-digital converter (ADC) interrupt flag. More... | |
| void | ADC_disable (ADC_Handle adcHandle) |
| Disables the analog-to-digital converter (ADC) More... | |
| void | ADC_disableBandGap (ADC_Handle adcHandle) |
| Disables the analog-to-digital converter (ADC) band gap circuit. More... | |
| void | ADC_disableInt (ADC_Handle adcHandle, const ADC_IntNumber_e intNumber) |
| Disables the analog-to-digital converter (ADC) interrupt. More... | |
| void | ADC_disableRefBuffers (ADC_Handle adcHandle) |
| Disables the analog-to-digital converter (ADC) reference buffers circuit. More... | |
| void | ADC_enable (ADC_Handle adcHandle) |
| Enables the analog-to-digital converter (ADC) More... | |
| void | ADC_enableBandGap (ADC_Handle adcHandle) |
| Enables the analog-to-digital converter (ADC) band gap circuit. More... | |
| void | ADC_enableInt (ADC_Handle adcHandle, const ADC_IntNumber_e intNumber) |
| Enables the analog-to-digital converter (ADC) interrupt. More... | |
| void | ADC_enableRefBuffers (ADC_Handle adcHandle) |
| Enables the analog-to-digital converter (ADC) reference buffers circuit. More... | |
| ADC_DivideSelect_e | ADC_getDivideSelect (ADC_Handle adcHandle) |
| Gets the analog-to-digital converter (ADC) divide select value. More... | |
| static ADC_SocSampleDelay_e | ADC_getSocSampleDelay (ADC_Handle adcHandle, const ADC_SocNumber_e socNumber) |
| Gets the analog-to-digital converter (ADC) start-of-conversion (SOC) sample delay value. More... | |
| ADC_Handle | ADC_init (void *pMemory, const size_t numBytes) |
| Initializes the analog-to-digital converter (ADC) object handle. More... | |
| void | ADC_powerDown (ADC_Handle adcHandle) |
| Powers down the analog-to-digital converter (ADC) More... | |
| void | ADC_powerUp (ADC_Handle adcHandle) |
| Powers up the analog-to-digital converter (ADC) More... | |
| static uint_least16_t | ADC_readResult (ADC_Handle adcHandle, const ADC_ResultNumber_e resultNumber) |
| Reads the specified ADC result (i.e. value) More... | |
| void | ADC_reset (ADC_Handle adcHandle) |
| Resets the analog-to-digital converter (ADC) More... | |
| void | ADC_setDivideSelect (ADC_Handle adcHandle, const ADC_DivideSelect_e divSelect) |
| Sets the analog-to-digital converter (ADC) divide select value. More... | |
| void | ADC_setIntMode (ADC_Handle adcHandle, const ADC_IntNumber_e intNumber, const ADC_IntMode_e intMode) |
| Sets the interrupt mode. More... | |
| void | ADC_setIntPulseGenMode (ADC_Handle adcHandle, const ADC_IntPulseGenMode_e pulseMode) |
| Sets the interrupt pulse generation mode. More... | |
| void | ADC_setIntSrc (ADC_Handle adcHandle, const ADC_IntNumber_e intNumber, const ADC_IntSrc_e intSrc) |
| Sets the interrupt source. More... | |
| void | ADC_setSampleMode (ADC_Handle adcHandle, const ADC_SampleMode_e sampleMode) |
| Sets the sample mode. More... | |
| void | ADC_setSocChanNumber (ADC_Handle adcHandle, const ADC_SocNumber_e socNumber, const ADC_SocChanNumber_e chanNumber) |
| Sets the start-of-conversion (SOC) channel number. More... | |
| void | ADC_setSocSampleDelay (ADC_Handle adcHandle, const ADC_SocNumber_e socNumber, const ADC_SocSampleDelay_e sampleDelay) |
| Sets the start-of-conversion (SOC) sample delay. More... | |
| void | ADC_setSocTrigSrc (ADC_Handle adcHandle, const ADC_SocNumber_e socNumber, const ADC_SocTrigSrc_e trigSrc) |
| Sets the start-of-conversion (SOC) trigger source. More... | |
| void | ADC_setSocFrc (ADC_Handle adcHandle, const ADC_SocFrc_e socFrc) |
| Sets the start-of-conversion (SOC) force register. More... | |
| void | ADC_setTempSensorSrc (ADC_Handle adcHandle, const ADC_TempSensorSrc_e sensorSrc) |
| Sets the temperature sensor source. More... | |
| void | ADC_setVoltRefSrc (ADC_Handle adcHandle, const ADC_VoltageRefSrc_e voltRef) |
| Sets the voltage reference source. More... | |
| void | ADC_setOffTrim (ADC_Handle adcHandle, const uint16_t offtrim) |
| Sets the offset trim register. More... | |
| void | ADC_enableVoltRefLoConv (ADC_Handle adcHandle) |
| Enables conversion of the voltage reference low signal for calibration. More... | |
| void | ADC_disableVoltRefLoConv (ADC_Handle adcHandle) |
| Disables conversion of the voltage reference low signal for calibration. More... | |
| void | ADC_setupSocTrigSrc (ADC_Handle adcHandle, const ADC_SocNumber_e socNumber, const ADC_IntTriggerSOC_e intTrigSrc) |
| Sets the start of conversion (SOC) trigger source. More... | |
| void | ADC_setSocFrcWord (ADC_Handle adcHandle, const uint16_t socFrc) |
| Sets the entire start of conversion (SOC) force register. More... | |
| void | ADC_enableNoOverlapMode (ADC_Handle adcHandle) |
| Enables no overlap mode. More... | |
| void | ADC_disableNoOverlapMode (ADC_Handle adcHandle) |
| Disables no overlap mode. More... | |
Contains public interface to various functions related to the analog-to-digital converter (ADC) object.
(C) Copyright 2015, Texas Instruments, Inc.
Definition in file adc.h.
1.8.9.1