|
MotorWare f2806x Driver API Documentation
|
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... | |
| struct _ADC_Obj_ |
| #define ADC_ADCCTL1_ADCBGPWD_BITS (1 << 6) |
Defines the location of the ADCBGPWD bits in the ADCTL1 register.
Definition at line 109 of file adc.h.
Referenced by ADC_disableBandGap(), and ADC_enableBandGap().
| #define ADC_ADCCTL1_ADCBSY_BITS (1 << 13) |
| #define ADC_ADCCTL1_ADCBSYCHAN_BITS (31 << 8) |
| #define ADC_ADCCTL1_ADCENABLE_BITS (1 << 14) |
Defines the location of the ADCENABLE bits in the ADCTL1 register.
Definition at line 125 of file adc.h.
Referenced by ADC_disable(), and ADC_enable().
| #define ADC_ADCCTL1_ADCPWDN_BITS (1 << 7) |
Defines the location of the ADCPWDN bits in the ADCTL1 register.
Definition at line 113 of file adc.h.
Referenced by ADC_powerDown(), and ADC_powerUp().
| #define ADC_ADCCTL1_ADCREFPWD_BITS (1 << 5) |
Defines the location of the ADCREFPWD bits in the ADCTL1 register.
Definition at line 105 of file adc.h.
Referenced by ADC_disableRefBuffers(), and ADC_enableRefBuffers().
| #define ADC_ADCCTL1_ADCREFSEL_BITS (1 << 3) |
Defines the location of the ADCREFSEL bits in the ADCTL1 register.
Definition at line 101 of file adc.h.
Referenced by ADC_setVoltRefSrc().
| #define ADC_ADCCTL1_INTPULSEPOS_BITS (1 << 2) |
Defines the location of the INTPULSEPOS bits in the ADCTL1 register.
Definition at line 97 of file adc.h.
Referenced by ADC_setIntPulseGenMode().
| #define ADC_ADCCTL1_RESET_BITS (1 << 15) |
Defines the location of the RESET bits in the ADCTL1 register.
Definition at line 129 of file adc.h.
Referenced by ADC_reset().
| #define ADC_ADCCTL1_TEMPCONV_BITS (1 << 0) |
Defines the location of the TEMPCONV bits in the ADCTL1 register.
Definition at line 89 of file adc.h.
Referenced by ADC_setTempSensorSrc().
| #define ADC_ADCCTL1_VREFLOCONV_BITS (1 << 1) |
Defines the location of the VREFLOCONV bits in the ADCTL1 register.
Definition at line 93 of file adc.h.
Referenced by ADC_disableVoltRefLoConv(), and ADC_enableVoltRefLoConv().
| #define ADC_ADCCTL2_ADCNONOVERLAP_BITS (1 << 1) |
Defines the location of the ADCNONOVERLAP bits in the ADCTL2 register.
Definition at line 141 of file adc.h.
Referenced by ADC_disableNoOverlapMode(), ADC_enableNoOverlapMode(), and ADC_setSampleOverlapMode().
| #define ADC_ADCCTL2_CLKDIV2EN_BITS (1 << 0) |
Defines the location of the CLKDIV2EN bits in the ADCTL2 register.
Definition at line 133 of file adc.h.
Referenced by ADC_getDivideSelect(), and ADC_setDivideSelect().
| #define ADC_ADCCTL2_CLKDIV4EN_BITS (1 << 2) |
Defines the location of the CLKDIV4EN bits in the ADCTL2 register.
Definition at line 137 of file adc.h.
Referenced by ADC_getDivideSelect(), and ADC_setDivideSelect().
| #define ADC_ADCINTSOCSELx_SOCx_BITS 3 |
Defines the location of the SOCx bits in the ADCINTSOCSELx register.
Definition at line 177 of file adc.h.
Referenced by ADC_setupSocTrigSrc().
| #define ADC_ADCSAMPLEMODE_SEPARATE_FLAG 0x100 |
Define for the channel separate flag.
Definition at line 214 of file adc.h.
Referenced by ADC_setSampleMode().
| #define ADC_ADCSAMPLEMODE_SIMULEN0_BITS (1 << 0) |
| #define ADC_ADCSAMPLEMODE_SIMULEN10_BITS (1 << 5) |
| #define ADC_ADCSAMPLEMODE_SIMULEN12_BITS (1 << 6) |
| #define ADC_ADCSAMPLEMODE_SIMULEN14_BITS (1 << 7) |
| #define ADC_ADCSAMPLEMODE_SIMULEN2_BITS (1 << 1) |
| #define ADC_ADCSAMPLEMODE_SIMULEN4_BITS (1 << 2) |
| #define ADC_ADCSAMPLEMODE_SIMULEN6_BITS (1 << 3) |
| #define ADC_ADCSAMPLEMODE_SIMULEN8_BITS (1 << 4) |
| #define ADC_ADCSOCxCTL_ACQPS_BITS (63 << 0) |
Defines the location of the ACQPS bits in the ADCSOCxCTL register.
Definition at line 165 of file adc.h.
Referenced by ADC_getSocSampleDelay(), and ADC_setSocSampleDelay().
| #define ADC_ADCSOCxCTL_CHSEL_BITS (15 << 6) |
Defines the location of the CHSEL bits in the ADCSOCxCTL register.
Definition at line 169 of file adc.h.
Referenced by ADC_setSocChanNumber().
| #define ADC_ADCSOCxCTL_TRIGSEL_BITS (31 << 11) |
Defines the location of the TRIGSEL bits in the ADCSOCxCTL register.
Definition at line 173 of file adc.h.
Referenced by ADC_setSocTrigSrc().
| #define ADC_BASE_ADDR (0x00000B00) |
| #define ADC_dataBias (1 << (ADC_numBits - 1)) |
| #define ADC_DELAY_usec 10000L |
| #define ADC_INTSELxNy_INTCONT_BITS (1 << 6) |
Defines the location of the INTCONT bits in the INTSELxNy register.
Definition at line 161 of file adc.h.
Referenced by ADC_setIntMode().
| #define ADC_INTSELxNy_INTE_BITS (1 << 5) |
Defines the location of the INTE bits in the INTSELxNy register.
Definition at line 157 of file adc.h.
Referenced by ADC_disableInt(), and ADC_enableInt().
| #define ADC_INTSELxNy_INTSEL_BITS (31 << 0) |
Defines the location of the INTSEL bits in the INTSELxNy register.
Definition at line 153 of file adc.h.
Referenced by ADC_setIntSrc().
| #define ADC_INTSELxNy_LOG2_NUMBITS_PER_REG 3 |
Defines the log2() of the number of bits per INTSELxNy register.
Definition at line 149 of file adc.h.
Referenced by ADC_disableInt(), ADC_enableInt(), ADC_setIntMode(), and ADC_setIntSrc().
| #define ADC_INTSELxNy_NUMBITS_PER_REG 8 |
Defines the number of bits per INTSELxNy register.
Definition at line 145 of file adc.h.
Referenced by ADC_disableInt(), ADC_enableInt(), ADC_setIntMode(), and ADC_setIntSrc().
| typedef struct _ADC_Obj_* ADC_Handle |
| enum ADC_DivideSelect_e |
| enum ADC_IntMode_e |
| enum ADC_IntNumber_e |
Enumeration to define the analog-to-digital converter (ADC) interrupt number.
| Enumerator | |
|---|---|
| ADC_IntNumber_1 |
Denotes ADCINT1. |
| ADC_IntNumber_2 |
Denotes ADCINT2. |
| ADC_IntNumber_3 |
Denotes ADCINT3. |
| ADC_IntNumber_4 |
Denotes ADCINT4. |
| ADC_IntNumber_5 |
Denotes ADCINT5. |
| ADC_IntNumber_6 |
Denotes ADCINT6. |
| ADC_IntNumber_7 |
Denotes ADCINT7. |
| ADC_IntNumber_8 |
Denotes ADCINT8. |
| ADC_IntNumber_9 |
Denotes ADCINT9. |
| ADC_IntNumber_1HP |
Denotes ADCINT1 High Priority for use with PIE_enableAdcInt() only. |
| ADC_IntNumber_2HP |
Denotes ADCINT2 High Priority for use with PIE_enableAdcInt() only. |
| ADC_IntNumber_9HP |
Denotes ADCINT9 High Priority for use with PIE_enableAdcInt() only. |
Enumeration to define the analog-to-digital converter (ADC) interrupt pulse generation mode.
| enum ADC_IntSrc_e |
Enumeration to define the analog-to-digital converter (ADC) interrupt source.
| enum ADC_IntTriggerSOC_e |
Enumeration to define the analog-to-digital converter (ADC) input trigger SOC Select 1 Register group of bits.
| enum ADC_ResultNumber_e |
Enumeration to define the analog-to-digital converter (ADC) result number.
| enum ADC_SampleMode_e |
Enumeration to define the analog-to-digital converter (ADC) sample modes.
| enum ADC_SocChanNumber_e |
Enumeration to define the start of conversion (SOC) channel numbers.
| enum ADC_SocFrc_e |
Enumeration to define the soc force values.
| enum ADC_SocNumber_e |
Enumeration to define the start of conversion (SOC) numbers.
| enum ADC_SocSampleDelay_e |
Enumeration to define the start of conversion (SOC) sample delays.
| enum ADC_SocTrigSrc_e |
Enumeration to define the start of conversion (SOC) trigger source.
| enum ADC_TempSensorSrc_e |
| enum ADC_VoltageRefSrc_e |
|
inlinestatic |
Clears the analog-to-digital converter (ADC) interrupt flag.
| [in] | adcHandle | The analog-to-digital converter (ADC) object handle |
| [in] | intNumber | The ADC interrupt number |
Definition at line 578 of file adc.h.
References _ADC_Obj_::ADCINTFLGCLR.
| void ADC_disable | ( | ADC_Handle | adcHandle | ) |
Disables the analog-to-digital converter (ADC)
| [in] | adcHandle | The analog-to-digital converter (ADC) object handle |
Definition at line 59 of file adc.c.
References ADC_ADCCTL1_ADCENABLE_BITS, _ADC_Obj_::ADCCTL1, DISABLE_PROTECTED_REGISTER_WRITE_MODE, and ENABLE_PROTECTED_REGISTER_WRITE_MODE.
| void ADC_disableBandGap | ( | ADC_Handle | adcHandle | ) |
Disables the analog-to-digital converter (ADC) band gap circuit.
| [in] | adcHandle | The analog-to-digital converter (ADC) object handle |
Definition at line 74 of file adc.c.
References ADC_ADCCTL1_ADCBGPWD_BITS, _ADC_Obj_::ADCCTL1, DISABLE_PROTECTED_REGISTER_WRITE_MODE, and ENABLE_PROTECTED_REGISTER_WRITE_MODE.
| void ADC_disableInt | ( | ADC_Handle | adcHandle, |
| const ADC_IntNumber_e | intNumber | ||
| ) |
Disables the analog-to-digital converter (ADC) interrupt.
| [in] | adcHandle | The analog-to-digital converter (ADC) object handle |
| [in] | intNumber | The interrupt number |
Definition at line 90 of file adc.c.
References ADC_INTSELxNy_INTE_BITS, ADC_INTSELxNy_LOG2_NUMBITS_PER_REG, ADC_INTSELxNy_NUMBITS_PER_REG, DISABLE_PROTECTED_REGISTER_WRITE_MODE, ENABLE_PROTECTED_REGISTER_WRITE_MODE, and _ADC_Obj_::INTSELxNy.
| void ADC_disableNoOverlapMode | ( | ADC_Handle | adcHandle | ) |
Disables no overlap mode.
| [in] | adcHandle | The analog-to-digital converter (ADC) object handle |
Definition at line 550 of file adc.c.
References ADC_ADCCTL2_ADCNONOVERLAP_BITS, _ADC_Obj_::ADCCTL2, DISABLE_PROTECTED_REGISTER_WRITE_MODE, and ENABLE_PROTECTED_REGISTER_WRITE_MODE.
| void ADC_disableRefBuffers | ( | ADC_Handle | adcHandle | ) |
Disables the analog-to-digital converter (ADC) reference buffers circuit.
| [in] | adcHandle | The analog-to-digital converter (ADC) object handle |
Definition at line 109 of file adc.c.
References ADC_ADCCTL1_ADCREFPWD_BITS, _ADC_Obj_::ADCCTL1, DISABLE_PROTECTED_REGISTER_WRITE_MODE, and ENABLE_PROTECTED_REGISTER_WRITE_MODE.
| void ADC_disableVoltRefLoConv | ( | ADC_Handle | adcHandle | ) |
Disables conversion of the voltage reference low signal for calibration.
| [in] | adcHandle | The analog-to-digital converter (ADC) object handle |
Definition at line 635 of file adc.c.
References ADC_ADCCTL1_VREFLOCONV_BITS, _ADC_Obj_::ADCCTL1, DISABLE_PROTECTED_REGISTER_WRITE_MODE, and ENABLE_PROTECTED_REGISTER_WRITE_MODE.
| void ADC_enable | ( | ADC_Handle | adcHandle | ) |
Enables the analog-to-digital converter (ADC)
| [in] | adcHandle | The analog-to-digital converter (ADC) object handle |
Definition at line 125 of file adc.c.
References ADC_ADCCTL1_ADCENABLE_BITS, _ADC_Obj_::ADCCTL1, DISABLE_PROTECTED_REGISTER_WRITE_MODE, and ENABLE_PROTECTED_REGISTER_WRITE_MODE.
| void ADC_enableBandGap | ( | ADC_Handle | adcHandle | ) |
Enables the analog-to-digital converter (ADC) band gap circuit.
| [in] | adcHandle | The analog-to-digital converter (ADC) object handle |
Definition at line 141 of file adc.c.
References ADC_ADCCTL1_ADCBGPWD_BITS, _ADC_Obj_::ADCCTL1, DISABLE_PROTECTED_REGISTER_WRITE_MODE, and ENABLE_PROTECTED_REGISTER_WRITE_MODE.
| void ADC_enableInt | ( | ADC_Handle | adcHandle, |
| const ADC_IntNumber_e | intNumber | ||
| ) |
Enables the analog-to-digital converter (ADC) interrupt.
| [in] | adcHandle | The analog-to-digital converter (ADC) object handle |
| [in] | intNumber | The interrupt number |
Definition at line 157 of file adc.c.
References ADC_INTSELxNy_INTE_BITS, ADC_INTSELxNy_LOG2_NUMBITS_PER_REG, ADC_INTSELxNy_NUMBITS_PER_REG, DISABLE_PROTECTED_REGISTER_WRITE_MODE, ENABLE_PROTECTED_REGISTER_WRITE_MODE, and _ADC_Obj_::INTSELxNy.
| void ADC_enableNoOverlapMode | ( | ADC_Handle | adcHandle | ) |
Enables no overlap mode.
| [in] | adcHandle | The analog-to-digital converter (ADC) object handle |
Definition at line 534 of file adc.c.
References ADC_ADCCTL2_ADCNONOVERLAP_BITS, _ADC_Obj_::ADCCTL2, DISABLE_PROTECTED_REGISTER_WRITE_MODE, and ENABLE_PROTECTED_REGISTER_WRITE_MODE.
| void ADC_enableRefBuffers | ( | ADC_Handle | adcHandle | ) |
Enables the analog-to-digital converter (ADC) reference buffers circuit.
| [in] | adcHandle | The analog-to-digital converter (ADC) object handle |
Definition at line 176 of file adc.c.
References ADC_ADCCTL1_ADCREFPWD_BITS, _ADC_Obj_::ADCCTL1, DISABLE_PROTECTED_REGISTER_WRITE_MODE, and ENABLE_PROTECTED_REGISTER_WRITE_MODE.
| void ADC_enableVoltRefLoConv | ( | ADC_Handle | adcHandle | ) |
Enables conversion of the voltage reference low signal for calibration.
| [in] | adcHandle | The analog-to-digital converter (ADC) object handle |
Definition at line 620 of file adc.c.
References ADC_ADCCTL1_VREFLOCONV_BITS, _ADC_Obj_::ADCCTL1, DISABLE_PROTECTED_REGISTER_WRITE_MODE, and ENABLE_PROTECTED_REGISTER_WRITE_MODE.
| ADC_DivideSelect_e ADC_getDivideSelect | ( | ADC_Handle | adcHandle | ) |
Gets the analog-to-digital converter (ADC) divide select value.
| [in] | adcHandle | The analog-to-digital converter (ADC) object handle |
Definition at line 500 of file adc.c.
References ADC_ADCCTL2_CLKDIV2EN_BITS, ADC_ADCCTL2_CLKDIV4EN_BITS, ADC_DivideSelect_ClkIn_by_1, and _ADC_Obj_::ADCCTL2.
|
inlinestatic |
Gets the analog-to-digital converter (ADC) interrupt flag.
| [in] | adcHandle | The analog-to-digital converter (ADC) object handle |
| [in] | intNumber | The ADC interrupt number |
Definition at line 594 of file adc.h.
References _ADC_Obj_::ADCINTFLG.
|
inlinestatic |
Gets the analog-to-digital converter (ADC) start-of-conversion (SOC) sample delay value.
| [in] | adcHandle | The analog-to-digital converter (ADC) object handle |
| [in] | socNumber | The SOC number |
Definition at line 659 of file adc.h.
References ADC_ADCSOCxCTL_ACQPS_BITS, and _ADC_Obj_::ADCSOCxCTL.
| ADC_Handle ADC_init | ( | void * | pMemory, |
| const size_t | numBytes | ||
| ) |
Initializes the analog-to-digital converter (ADC) object handle.
| [in] | pMemory | A pointer to the base address of the ADC registers |
| [in] | numBytes | The number of bytes allocated for the ADC object, bytes |
| void ADC_powerDown | ( | ADC_Handle | adcHandle | ) |
Powers down the analog-to-digital converter (ADC)
| [in] | adcHandle | The analog-to-digital converter (ADC) object handle |
Definition at line 209 of file adc.c.
References ADC_ADCCTL1_ADCPWDN_BITS, _ADC_Obj_::ADCCTL1, DISABLE_PROTECTED_REGISTER_WRITE_MODE, and ENABLE_PROTECTED_REGISTER_WRITE_MODE.
| void ADC_powerUp | ( | ADC_Handle | adcHandle | ) |
Powers up the analog-to-digital converter (ADC)
| [in] | adcHandle | The analog-to-digital converter (ADC) object handle |
Definition at line 225 of file adc.c.
References ADC_ADCCTL1_ADCPWDN_BITS, _ADC_Obj_::ADCCTL1, DISABLE_PROTECTED_REGISTER_WRITE_MODE, and ENABLE_PROTECTED_REGISTER_WRITE_MODE.
|
inlinestatic |
Reads the specified ADC result (i.e. value)
| [in] | adcHandle | The ADC handle |
| [in] | resultNumber | The result number for the ADCRESULT registers |
Definition at line 693 of file adc.h.
References _ADC_Obj_::ADCRESULT.
| void ADC_reset | ( | ADC_Handle | adcHandle | ) |
Resets the analog-to-digital converter (ADC)
| [in] | adcHandle | The analog-to-digital converter (ADC) object handle |
Definition at line 241 of file adc.c.
References ADC_ADCCTL1_RESET_BITS, _ADC_Obj_::ADCCTL1, DISABLE_PROTECTED_REGISTER_WRITE_MODE, and ENABLE_PROTECTED_REGISTER_WRITE_MODE.
| void ADC_setDivideSelect | ( | ADC_Handle | adcHandle, |
| const ADC_DivideSelect_e | divSelect | ||
| ) |
Sets the analog-to-digital converter (ADC) divide select value.
| [in] | adcHandle | The analog-to-digital converter (ADC) object handle |
| [in] | divSelect | The scale reference source |
Definition at line 514 of file adc.c.
References ADC_ADCCTL2_CLKDIV2EN_BITS, ADC_ADCCTL2_CLKDIV4EN_BITS, _ADC_Obj_::ADCCTL2, DISABLE_PROTECTED_REGISTER_WRITE_MODE, and ENABLE_PROTECTED_REGISTER_WRITE_MODE.
| void ADC_setIntMode | ( | ADC_Handle | adcHandle, |
| const ADC_IntNumber_e | intNumber, | ||
| const ADC_IntMode_e | intMode | ||
| ) |
Sets the interrupt mode.
| [in] | adcHandle | The analog-to-digital converter (ADC) object handle |
| [in] | intNumber | The interrupt number |
| [in] | intMode | The interrupt mode |
Definition at line 276 of file adc.c.
References ADC_INTSELxNy_INTCONT_BITS, ADC_INTSELxNy_LOG2_NUMBITS_PER_REG, ADC_INTSELxNy_NUMBITS_PER_REG, DISABLE_PROTECTED_REGISTER_WRITE_MODE, ENABLE_PROTECTED_REGISTER_WRITE_MODE, and _ADC_Obj_::INTSELxNy.
| void ADC_setIntPulseGenMode | ( | ADC_Handle | adcHandle, |
| const ADC_IntPulseGenMode_e | pulseMode | ||
| ) |
Sets the interrupt pulse generation mode.
| [in] | adcHandle | The analog-to-digital converter (ADC) object handle |
| [in] | pulseMode | The pulse generation mode |
Definition at line 300 of file adc.c.
References ADC_ADCCTL1_INTPULSEPOS_BITS, _ADC_Obj_::ADCCTL1, DISABLE_PROTECTED_REGISTER_WRITE_MODE, and ENABLE_PROTECTED_REGISTER_WRITE_MODE.
| void ADC_setIntSrc | ( | ADC_Handle | adcHandle, |
| const ADC_IntNumber_e | intNumber, | ||
| const ADC_IntSrc_e | intSrc | ||
| ) |
Sets the interrupt source.
| [in] | adcHandle | The analog-to-digital converter (ADC) object handle |
| [in] | intNumber | The interrupt number |
| [in] | intSrc | The interrupt source |
Definition at line 320 of file adc.c.
References ADC_INTSELxNy_INTSEL_BITS, ADC_INTSELxNy_LOG2_NUMBITS_PER_REG, ADC_INTSELxNy_NUMBITS_PER_REG, DISABLE_PROTECTED_REGISTER_WRITE_MODE, ENABLE_PROTECTED_REGISTER_WRITE_MODE, and _ADC_Obj_::INTSELxNy.
| void ADC_setOffTrim | ( | ADC_Handle | adcHandle, |
| const uint16_t | offtrim | ||
| ) |
Sets the offset trim register.
| [in] | adcHandle | The analog-to-digital converter (ADC) object handle |
| [in] | offtrim | The offset trim value |
Definition at line 605 of file adc.c.
References _ADC_Obj_::ADCOFFTRIM, DISABLE_PROTECTED_REGISTER_WRITE_MODE, and ENABLE_PROTECTED_REGISTER_WRITE_MODE.
| void ADC_setSampleMode | ( | ADC_Handle | adcHandle, |
| const ADC_SampleMode_e | sampleMode | ||
| ) |
Sets the sample mode.
| [in] | adcHandle | The analog-to-digital converter (ADC) object handle |
| [in] | sampleMode | The sample mode |
Definition at line 346 of file adc.c.
References ADC_ADCSAMPLEMODE_SEPARATE_FLAG, _ADC_Obj_::ADCSAMPLEMODE, DISABLE_PROTECTED_REGISTER_WRITE_MODE, and ENABLE_PROTECTED_REGISTER_WRITE_MODE.
| void ADC_setSocChanNumber | ( | ADC_Handle | adcHandle, |
| const ADC_SocNumber_e | socNumber, | ||
| const ADC_SocChanNumber_e | chanNumber | ||
| ) |
Sets the start-of-conversion (SOC) channel number.
| [in] | adcHandle | The analog-to-digital converter (ADC) object handle |
| [in] | socNumber | The SOC number |
| [in] | chanNumber | The channel number |
Definition at line 368 of file adc.c.
References ADC_ADCSOCxCTL_CHSEL_BITS, _ADC_Obj_::ADCSOCxCTL, DISABLE_PROTECTED_REGISTER_WRITE_MODE, and ENABLE_PROTECTED_REGISTER_WRITE_MODE.
| void ADC_setSocFrc | ( | ADC_Handle | adcHandle, |
| const ADC_SocFrc_e | socFrc | ||
| ) |
Sets the start-of-conversion (SOC) force register.
| [in] | adcHandle | The analog-to-digital converter (ADC) object handle |
| [in] | socFrc | The SOC to be forced a conversion |
Definition at line 428 of file adc.c.
References _ADC_Obj_::ADCSOCFRC1, DISABLE_PROTECTED_REGISTER_WRITE_MODE, and ENABLE_PROTECTED_REGISTER_WRITE_MODE.
| void ADC_setSocFrcWord | ( | ADC_Handle | adcHandle, |
| const uint16_t | socFrc | ||
| ) |
Sets the entire start of conversion (SOC) force register.
| [in] | adcHandle | The analog-to-digital converter (ADC) object handle |
| [in] | socFrc | The desired start of conversion force value |
Definition at line 444 of file adc.c.
References _ADC_Obj_::ADCSOCFRC1, DISABLE_PROTECTED_REGISTER_WRITE_MODE, and ENABLE_PROTECTED_REGISTER_WRITE_MODE.
| void ADC_setSocSampleDelay | ( | ADC_Handle | adcHandle, |
| const ADC_SocNumber_e | socNumber, | ||
| const ADC_SocSampleDelay_e | sampleDelay | ||
| ) |
Sets the start-of-conversion (SOC) sample delay.
| [in] | adcHandle | The analog-to-digital converter (ADC) object handle |
| [in] | socNumber | The SOC number |
| [in] | sampleDelay | The sample delay |
Definition at line 388 of file adc.c.
References ADC_ADCSOCxCTL_ACQPS_BITS, _ADC_Obj_::ADCSOCxCTL, DISABLE_PROTECTED_REGISTER_WRITE_MODE, and ENABLE_PROTECTED_REGISTER_WRITE_MODE.
| void ADC_setSocTrigSrc | ( | ADC_Handle | adcHandle, |
| const ADC_SocNumber_e | socNumber, | ||
| const ADC_SocTrigSrc_e | trigSrc | ||
| ) |
Sets the start-of-conversion (SOC) trigger source.
| [in] | adcHandle | The analog-to-digital converter (ADC) object handle |
| [in] | socNumber | The SOC number |
| [in] | trigSrc | The trigger delay |
Definition at line 408 of file adc.c.
References ADC_ADCSOCxCTL_TRIGSEL_BITS, _ADC_Obj_::ADCSOCxCTL, DISABLE_PROTECTED_REGISTER_WRITE_MODE, and ENABLE_PROTECTED_REGISTER_WRITE_MODE.
| void ADC_setTempSensorSrc | ( | ADC_Handle | adcHandle, |
| const ADC_TempSensorSrc_e | sensorSrc | ||
| ) |
Sets the temperature sensor source.
| [in] | adcHandle | The analog-to-digital converter (ADC) object handle |
| [in] | sensorSrc | The temperature sensor source |
Definition at line 460 of file adc.c.
References ADC_ADCCTL1_TEMPCONV_BITS, _ADC_Obj_::ADCCTL1, DISABLE_PROTECTED_REGISTER_WRITE_MODE, and ENABLE_PROTECTED_REGISTER_WRITE_MODE.
| void ADC_setupSocTrigSrc | ( | ADC_Handle | adcHandle, |
| const ADC_SocNumber_e | socNumber, | ||
| const ADC_IntTriggerSOC_e | intTrigSrc | ||
| ) |
Sets the start of conversion (SOC) trigger source.
| [in] | adcHandle | The analog-to-digital converter (ADC) object handle |
| [in] | socNumber | The start of conversion (SOC) number |
| [in] | intTrigSrc | The interrupt trigger source |
Definition at line 566 of file adc.c.
References ADC_ADCINTSOCSELx_SOCx_BITS, ADC_SocNumber_8, _ADC_Obj_::ADCINTSOCSEL1, _ADC_Obj_::ADCINTSOCSEL2, DISABLE_PROTECTED_REGISTER_WRITE_MODE, and ENABLE_PROTECTED_REGISTER_WRITE_MODE.
| void ADC_setVoltRefSrc | ( | ADC_Handle | adcHandle, |
| const ADC_VoltageRefSrc_e | voltRef | ||
| ) |
Sets the voltage reference source.
| [in] | adcHandle | The analog-to-digital converter (ADC) object handle |
| [in] | voltRef | The voltage reference source |
Definition at line 480 of file adc.c.
References ADC_ADCCTL1_ADCREFSEL_BITS, _ADC_Obj_::ADCCTL1, DISABLE_PROTECTED_REGISTER_WRITE_MODE, and ENABLE_PROTECTED_REGISTER_WRITE_MODE.
1.8.9.1