AM263Px MCU+ SDK  10.01.00
adc/v2/adc.h File Reference

Go to the source code of this file.

Data Structures

struct  ADC_RepeaterConfig
 

Macros

#define ADC_ADCSOCxCTL_STEP   (CSL_ADC_ADCSOC1CTL - CSL_ADC_ADCSOC0CTL)
 Header Files. More...
 
#define ADC_ADCINTSELxNy_STEP   (CSL_ADC_ADCINTSEL3N4 - CSL_ADC_ADCINTSEL1N2)
 Register offset difference between 2 ADCINTSELxNy registers. More...
 
#define ADC_ADCPPBx_STEP   (CSL_ADC_ADCPPB2CONFIG - CSL_ADC_ADCPPB1CONFIG)
 Register offset difference between 2 ADCPPBxCONFIG registers. More...
 
#define ADC_ADCPPBTRIP_MASK
 ADC PPB Trip Mask. More...
 
#define ADC_RESULT_ADCPPBxRESULT_STEP
 Register offset difference between 2 ADCPPBxRESULT registers. More...
 
#define ADC_RESULT_ADCRESULTx_STEP
 Register offset difference between 2 ADCRESULTx registers. More...
 
#define ADC_REPCTL_MASK
 
#define ADC_ADCPPBxCONFIG2_STEP   (CSL_ADC_ADCPPB2CONFIG2 - CSL_ADC_ADCPPB1CONFIG2)
 Register offset difference between 2 ADCPPBxLIMIT registers. More...
 
#define ADC_REPxCTL_STEP   (CSL_ADC_REP2CTL - CSL_ADC_REP1CTL)
 
#define ADC_REPxN_STEP   (CSL_ADC_REP2N - CSL_ADC_REP1N)
 
#define ADC_REPxPHASE_STEP   (CSL_ADC_REP2PHASE - CSL_ADC_REP1PHASE)
 
#define ADC_REPxSPREAD_STEP   (CSL_ADC_REP2SPREAD - CSL_ADC_REP1SPREAD)
 
#define ADC_PPBxTRIPHI_STEP   (CSL_ADC_ADCPPB1TRIPHI - CSL_ADC_ADCPPB1TRIPHI)
 
#define ADC_PPBxTRIPLO_STEP   (CSL_ADC_ADCPPB2TRIPLO - CSL_ADC_ADCPPB1TRIPLO)
 
#define ADC_ADCPPBxLIMIT_STEP   (CSL_ADC_ADCPPB2LIMIT - CSL_ADC_ADCPPB1LIMIT)
 
#define ADC_ADCPPBxPCOUNT_STEP   (CSL_ADC_ADCPPBP2PCOUNT - CSL_ADC_ADCPPBP1PCOUNT)
 
#define ADC_ADCPPBxCONFIG2_STEP   (CSL_ADC_ADCPPB2CONFIG2 - CSL_ADC_ADCPPB1CONFIG2)
 Register offset difference between 2 ADCPPBxLIMIT registers. More...
 
#define ADC_ADCPPBxPSUM_STEP   (CSL_ADC_ADCPPB2PSUM - CSL_ADC_ADCPPB1PSUM)
 
#define ADC_ADCPPBxPMAX_STEP   (CSL_ADC_ADCPPB2PMAX - CSL_ADC_ADCPPB1PMAX)
 
#define ADC_ADCPPBxPMAXI_STEP   (CSL_ADC_ADCPPB2PMAXI - CSL_ADC_ADCPPB1PMAXI)
 
#define ADC_ADCPPBxPMIN_STEP   (CSL_ADC_ADCPPB2PMIN - CSL_ADC_ADCPPB1PMIN)
 
#define ADC_ADCPPBxPMINI_STEP   (CSL_ADC_ADCPPB2PMINI - CSL_ADC_ADCPPB1PMINI)
 
#define ADC_ADCPPBxTRIPLO2_STEP   (CSL_ADC_ADCPPB2TRIPLO2 - CSL_ADC_ADCPPB1TRIPLO2)
 
#define ADC_REPSTATUS_MASK
 
#define ADC_SAFECHECK_STATUS_MASK
 
#define ADC_EVT_TRIPHI   (0x0001U)
 Trip High Event. More...
 
#define ADC_EVT_TRIPLO   (0x0002U)
 Trip Low Event. More...
 
#define ADC_EVT_ZERO   (0x0004U)
 Zero Crossing Event. More...
 
#define ADC_FORCE_SOC0   (0x0001U)
 SW trigger ADC SOC 0. More...
 
#define ADC_FORCE_SOC1   (0x0002U)
 SW trigger ADC SOC 1. More...
 
#define ADC_FORCE_SOC2   (0x0004U)
 SW trigger ADC SOC 2. More...
 
#define ADC_FORCE_SOC3   (0x0008U)
 SW trigger ADC SOC 3. More...
 
#define ADC_FORCE_SOC4   (0x0010U)
 SW trigger ADC SOC 4. More...
 
#define ADC_FORCE_SOC5   (0x0020U)
 SW trigger ADC SOC 5. More...
 
#define ADC_FORCE_SOC6   (0x0040U)
 SW trigger ADC SOC 6. More...
 
#define ADC_FORCE_SOC7   (0x0080U)
 SW trigger ADC SOC 7. More...
 
#define ADC_FORCE_SOC8   (0x0100U)
 SW trigger ADC SOC 8. More...
 
#define ADC_FORCE_SOC9   (0x0200U)
 SW trigger ADC SOC 9. More...
 
#define ADC_FORCE_SOC10   (0x0400U)
 SW trigger ADC SOC 10. More...
 
#define ADC_FORCE_SOC11   (0x0800U)
 SW trigger ADC SOC 11. More...
 
#define ADC_FORCE_SOC12   (0x1000U)
 SW trigger ADC SOC 12. More...
 
#define ADC_FORCE_SOC13   (0x2000U)
 SW trigger ADC SOC 13. More...
 
#define ADC_FORCE_SOC14   (0x4000U)
 SW trigger ADC SOC 14. More...
 
#define ADC_FORCE_SOC15   (0x8000U)
 SW trigger ADC SOC 15. More...
 
#define ADC_ADCSOCxCTL_STEP   (CSL_ADC_ADCSOC1CTL - CSL_ADC_ADCSOC0CTL)
 Header Files. More...
 
#define ADC_ADCINTSELxNy_STEP   (CSL_ADC_ADCINTSEL3N4 - CSL_ADC_ADCINTSEL1N2)
 Register offset difference between 2 ADCINTSELxNy registers. More...
 
#define ADC_ADCPPBx_STEP   (CSL_ADC_ADCPPB2CONFIG - CSL_ADC_ADCPPB1CONFIG)
 Register offset difference between 2 ADCPPBxCONFIG registers. More...
 
#define ADC_ADCPPBTRIP_MASK
 ADC PPB Trip Mask. More...
 
#define ADC_RESULT_ADCPPBxRESULT_STEP
 Register offset difference between 2 ADCPPBxRESULT registers. More...
 
#define ADC_RESULT_ADCRESULTx_STEP
 Register offset difference between 2 ADCRESULTx registers. More...
 

Enumerations

enum  ADC_ClkPrescale {
  ADC_CLK_DIV_1_0 = 0, ADC_CLK_DIV_2_0 = 2, ADC_CLK_DIV_2_5 = 3, ADC_CLK_DIV_3_0 = 4,
  ADC_CLK_DIV_3_5 = 5, ADC_CLK_DIV_4_0 = 6, ADC_CLK_DIV_4_5 = 7, ADC_CLK_DIV_5_0 = 8,
  ADC_CLK_DIV_5_5 = 9, ADC_CLK_DIV_6_0 = 10, ADC_CLK_DIV_6_5 = 11, ADC_CLK_DIV_7_0 = 12,
  ADC_CLK_DIV_7_5 = 13, ADC_CLK_DIV_8_0 = 14, ADC_CLK_DIV_8_5 = 15
}
 
enum  ADC_Resolution { ADC_RESOLUTION_12BIT = 0 }
 
enum  ADC_SignalMode { ADC_MODE_SINGLE_ENDED = 0, ADC_MODE_DIFFERENTIAL = 1 }
 
enum  ADC_Trigger {
  ADC_TRIGGER_SW_ONLY = 0x00, ADC_TRIGGER_RTI0 = 0x01, ADC_TRIGGER_RTI1 = 0x02, ADC_TRIGGER_RTI2 = 0x03,
  ADC_TRIGGER_RTI3 = 0x04, ADC_TRIGGER_INPUT_XBAR_OUT5 = 0x05, ADC_TRIGGER_EPWM0_SOCA = 0x08, ADC_TRIGGER_EPWM0_SOCB = 0x09,
  ADC_TRIGGER_EPWM1_SOCA = 0x0A, ADC_TRIGGER_EPWM1_SOCB = 0x0B, ADC_TRIGGER_EPWM2_SOCA = 0x0C, ADC_TRIGGER_EPWM2_SOCB = 0x0D,
  ADC_TRIGGER_EPWM3_SOCA = 0x0E, ADC_TRIGGER_EPWM3_SOCB = 0x0F, ADC_TRIGGER_EPWM4_SOCA = 0x10, ADC_TRIGGER_EPWM4_SOCB = 0x11,
  ADC_TRIGGER_EPWM5_SOCA = 0x12, ADC_TRIGGER_EPWM5_SOCB = 0x13, ADC_TRIGGER_EPWM6_SOCA = 0x14, ADC_TRIGGER_EPWM6_SOCB = 0x15,
  ADC_TRIGGER_EPWM7_SOCA = 0x16, ADC_TRIGGER_EPWM7_SOCB = 0x17, ADC_TRIGGER_EPWM8_SOCA = 0x18, ADC_TRIGGER_EPWM8_SOCB = 0x19,
  ADC_TRIGGER_EPWM9_SOCA = 0x1A, ADC_TRIGGER_EPWM9_SOCB = 0x1B, ADC_TRIGGER_EPWM10_SOCA = 0x1C, ADC_TRIGGER_EPWM10_SOCB = 0x1D,
  ADC_TRIGGER_EPWM11_SOCA = 0x1E, ADC_TRIGGER_EPWM11_SOCB = 0x1F, ADC_TRIGGER_EPWM12_SOCA = 0x20, ADC_TRIGGER_EPWM12_SOCB = 0x21,
  ADC_TRIGGER_EPWM13_SOCA = 0x22, ADC_TRIGGER_EPWM13_SOCB = 0x23, ADC_TRIGGER_EPWM14_SOCA = 0x24, ADC_TRIGGER_EPWM14_SOCB = 0x25,
  ADC_TRIGGER_EPWM15_SOCA = 0x26, ADC_TRIGGER_EPWM15_SOCB = 0x27, ADC_TRIGGER_EPWM16_SOCA = 0x28, ADC_TRIGGER_EPWM16_SOCB = 0x29,
  ADC_TRIGGER_EPWM17_SOCA = 0x2A, ADC_TRIGGER_EPWM17_SOCB = 0x2B, ADC_TRIGGER_EPWM18_SOCA = 0x2C, ADC_TRIGGER_EPWM18_SOCB = 0x2D,
  ADC_TRIGGER_EPWM19_SOCA = 0x2E, ADC_TRIGGER_EPWM19_SOCB = 0x2F, ADC_TRIGGER_EPWM20_SOCA = 0x30, ADC_TRIGGER_EPWM20_SOCB = 0x31,
  ADC_TRIGGER_EPWM21_SOCA = 0x32, ADC_TRIGGER_EPWM21_SOCB = 0x33, ADC_TRIGGER_EPWM22_SOCA = 0x34, ADC_TRIGGER_EPWM22_SOCB = 0x35,
  ADC_TRIGGER_EPWM23_SOCA = 0x36, ADC_TRIGGER_EPWM23_SOCB = 0x37, ADC_TRIGGER_EPWM24_SOCA = 0x38, ADC_TRIGGER_EPWM24_SOCB = 0x39,
  ADC_TRIGGER_EPWM25_SOCA = 0x3A, ADC_TRIGGER_EPWM25_SOCB = 0x3B, ADC_TRIGGER_EPWM26_SOCA = 0x3C, ADC_TRIGGER_EPWM26_SOCB = 0x3D,
  ADC_TRIGGER_EPWM27_SOCA = 0x3E, ADC_TRIGGER_EPWM27_SOCB = 0x3F, ADC_TRIGGER_EPWM28_SOCA = 0x40, ADC_TRIGGER_EPWM28_SOCB = 0x41,
  ADC_TRIGGER_EPWM29_SOCA = 0x42, ADC_TRIGGER_EPWM29_SOCB = 0x43, ADC_TRIGGER_EPWM30_SOCA = 0x44, ADC_TRIGGER_EPWM30_SOCB = 0x45,
  ADC_TRIGGER_EPWM31_SOCA = 0x46, ADC_TRIGGER_EPWM31_SOCB = 0x47, ADC_TRIGGER_ECAP0_SOCEVT = 0x48, ADC_TRIGGER_ECAP1_SOCEVT = 0x49,
  ADC_TRIGGER_ECAP2_SOCEVT = 0x4A, ADC_TRIGGER_ECAP3_SOCEVT = 0x4B, ADC_TRIGGER_ECAP4_SOCEVT = 0x4C, ADC_TRIGGER_ECAP5_SOCEVT = 0x4D,
  ADC_TRIGGER_ECAP6_SOCEVT = 0x4E, ADC_TRIGGER_ECAP7_SOCEVT = 0x4F, ADC_TRIGGER_ECAP8_SOCEVT = 0x50, ADC_TRIGGER_ECAP9_SOCEVT = 0x51,
  ADC_TRIGGER_ECAP10_SOCEVT = 0x52, ADC_TRIGGER_ECAP11_SOCEVT = 0x53, ADC_TRIGGER_ECAP12_SOCEVT = 0x54, ADC_TRIGGER_ECAP13_SOCEVT = 0x55,
  ADC_TRIGGER_ECAP14_SOCEVT = 0x56, ADC_TRIGGER_ECAP15_SOCEVT = 0x57, ADC_TRIGGER_RTI4 = 0x58, ADC_TRIGGER_RTI5 = 0x59,
  ADC_TRIGGER_RTI6 = 0x5A, ADC_TRIGGER_RTI7 = 0x5B, ADC_TRIGGER_REPEATER1 = 0x7E, ADC_TRIGGER_REPEATER2 = 0x7F
}
 
enum  ADC_Channel {
  ADC_CH_ADCIN0 = 0, ADC_CH_ADCIN1 = 1, ADC_CH_ADCIN2 = 2, ADC_CH_ADCIN3 = 3,
  ADC_CH_ADCIN4 = 4, ADC_CH_ADCIN5 = 5, ADC_CH_ADCIN6 = 7, ADC_CH_CAL0 = 6,
  ADC_CH_CAL1 = 7, ADC_CH_ADCIN0_ADCIN1 = 0, ADC_CH_ADCIN1_ADCIN0 = 1, ADC_CH_ADCIN2_ADCIN3 = 2,
  ADC_CH_ADCIN3_ADCIN2 = 3, ADC_CH_ADCIN4_ADCIN5 = 4, ADC_CH_ADCIN5_ADCIN4 = 5, ADC_CH_CAL0_CAL1 = 6,
  ADC_CH_CAL1_CAL0 = 7, ADC_CH_CAL0_ADCIN6 = 6, ADC_CH_ADCIN6_CAL0 = 7
}
 
enum  ADC_PulseMode { ADC_PULSE_END_OF_ACQ_WIN = 0, ADC_PULSE_END_OF_CONV = 1 }
 
enum  ADC_IntNumber { ADC_INT_NUMBER1 = 0, ADC_INT_NUMBER2 = 1, ADC_INT_NUMBER3 = 2, ADC_INT_NUMBER4 = 3 }
 
enum  ADC_PPBNumber { ADC_PPB_NUMBER1 = 0, ADC_PPB_NUMBER2 = 1, ADC_PPB_NUMBER3 = 2, ADC_PPB_NUMBER4 = 3 }
 
enum  ADC_SOCNumber {
  ADC_SOC_NUMBER0 = 0, ADC_SOC_NUMBER1 = 1, ADC_SOC_NUMBER2 = 2, ADC_SOC_NUMBER3 = 3,
  ADC_SOC_NUMBER4 = 4, ADC_SOC_NUMBER5 = 5, ADC_SOC_NUMBER6 = 6, ADC_SOC_NUMBER7 = 7,
  ADC_SOC_NUMBER8 = 8, ADC_SOC_NUMBER9 = 9, ADC_SOC_NUMBER10 = 10, ADC_SOC_NUMBER11 = 11,
  ADC_SOC_NUMBER12 = 12, ADC_SOC_NUMBER13 = 13, ADC_SOC_NUMBER14 = 14, ADC_SOC_NUMBER15 = 15
}
 
enum  ADC_IntSOCTrigger { ADC_INT_SOC_TRIGGER_NONE = 0, ADC_INT_SOC_TRIGGER_ADCINT1 = 1, ADC_INT_SOC_TRIGGER_ADCINT2 = 2 }
 
enum  ADC_PriorityMode {
  ADC_PRI_ALL_ROUND_ROBIN = 0, ADC_PRI_SOC0_HIPRI = 1, ADC_PRI_THRU_SOC1_HIPRI = 2, ADC_PRI_THRU_SOC2_HIPRI = 3,
  ADC_PRI_THRU_SOC3_HIPRI = 4, ADC_PRI_THRU_SOC4_HIPRI = 5, ADC_PRI_THRU_SOC5_HIPRI = 6, ADC_PRI_THRU_SOC6_HIPRI = 7,
  ADC_PRI_THRU_SOC7_HIPRI = 8, ADC_PRI_THRU_SOC8_HIPRI = 9, ADC_PRI_THRU_SOC9_HIPRI = 10, ADC_PRI_THRU_SOC10_HIPRI = 11,
  ADC_PRI_THRU_SOC11_HIPRI = 12, ADC_PRI_THRU_SOC12_HIPRI = 13, ADC_PRI_THRU_SOC13_HIPRI = 14, ADC_PRI_THRU_SOC14_HIPRI = 15,
  ADC_PRI_ALL_HIPRI = 16
}
 
enum  ADC_OSDetectMode {
  ADC_OSDETECT_MODE_DISABLED = 0x0U, ADC_OSDETECT_MODE_VSSA = 0x1U, ADC_OSDETECT_MODE_VDDA = 0x2U, ADC_OSDETECT_MODE_5BY12_VDDA = 0x3U,
  ADC_OSDETECT_MODE_7BY12_VDDA = 0x4U, ADC_OSDETECT_MODE_5K_PULLDOWN_TO_VSSA = 0x5U, ADC_OSDETECT_MODE_5K_PULLUP_TO_VDDA = 0x6U, ADC_OSDETECT_MODE_7K_PULLDOWN_TO_VSSA = 0x7U
}
 
enum  ADC_OffsetTrim { ADC_OFFSET_TRIM_COMMON = 0x0000U, ADC_OFFSET_TRIM_INDIVIDUAL = 0x0100U }
 
enum  ADC_SyncInput {
  ADC_SYNCIN_DISABLE = 0x00, ADC_SYNCIN_EPWM0SYNCOUT = 0x01, ADC_SYNCIN_EPWM1SYNCOUT = 0x02, ADC_SYNCIN_EPWM2SYNCOUT = 0x03,
  ADC_SYNCIN_EPWM3SYNCOUT = 0x04, ADC_SYNCIN_EPWM4SYNCOUT = 0x05, ADC_SYNCIN_EPWM5SYNCOUT = 0x06, ADC_SYNCIN_EPWM6SYNCOUT = 0x07,
  ADC_SYNCIN_EPWM7SYNCOUT = 0x08, ADC_SYNCIN_EPWM8SYNCOUT = 0x09, ADC_SYNCIN_EPWM9SYNCOUT = 0x0A, ADC_SYNCIN_EPWM10SYNCOUT = 0x0B,
  ADC_SYNCIN_EPWM11SYNCOUT = 0x0C, ADC_SYNCIN_EPWM12SYNCOUT = 0x0D, ADC_SYNCIN_EPWM13SYNCOUT = 0x0E, ADC_SYNCIN_EPWM14SYNCOUT = 0x0F,
  ADC_SYNCIN_EPWM15SYNCOUT = 0x10, ADC_SYNCIN_EPWM16SYNCOUT = 0x11, ADC_SYNCIN_EPWM17SYNCOUT = 0x12, ADC_SYNCIN_EPWM18SYNCOUT = 0x13,
  ADC_SYNCIN_EPWM19SYNCOUT = 0x14, ADC_SYNCIN_EPWM20SYNCOUT = 0x15, ADC_SYNCIN_EPWM21SYNCOUT = 0x16, ADC_SYNCIN_EPWM22SYNCOUT = 0x17,
  ADC_SYNCIN_EPWM23SYNCOUT = 0x18, ADC_SYNCIN_EPWM24SYNCOUT = 0x19, ADC_SYNCIN_EPWM25SYNCOUT = 0x1A, ADC_SYNCIN_EPWM26SYNCOUT = 0x1B,
  ADC_SYNCIN_EPWM27SYNCOUT = 0x1C, ADC_SYNCIN_EPWM28SYNCOUT = 0x1D, ADC_SYNCIN_EPWM29SYNCOUT = 0x1E, ADC_SYNCIN_EPWM30SYNCOUT = 0x1F,
  ADC_SYNCIN_EPWM31SYNCOUT = 0x20, ADC_SYNCIN_ECAP0SYNCOUT = 0x21, ADC_SYNCIN_ECAP1SYNCOUT = 0x22, ADC_SYNCIN_ECAP2SYNCOUT = 0x23,
  ADC_SYNCIN_ECAP3SYNCOUT = 0x24, ADC_SYNCIN_ECAP4SYNCOUT = 0x25, ADC_SYNCIN_ECAP5SYNCOUT = 0x26, ADC_SYNCIN_ECAP6SYNCOUT = 0x27,
  ADC_SYNCIN_ECAP7SYNCOUT = 0x28, ADC_SYNCIN_ECAP8SYNCOUT = 0x29, ADC_SYNCIN_ECAP9SYNCOUT = 0x2A, ADC_SYNCIN_ECAP10SYNCOUT = 0x2B,
  ADC_SYNCIN_ECAP11SYNCOUT = 0x2C, ADC_SYNCIN_ECAP12SYNCOUT = 0x2D, ADC_SYNCIN_ECAP13SYNCOUT = 0x2E, ADC_SYNCIN_ECAP14SYNCOUT = 0x2F,
  ADC_SYNCIN_ECAP15SYNCOUT = 0x30, ADC_SYNCIN_INPUTXBAROUTPUT6 = 0x31, ADC_SYNCIN_INPUTXBAROUTPUT7 = 0x32, ADC_SYNCIN_CPSW_CTPS_SYNC = 0x33
}
 
enum  ADC_PPBIntSrcSelect { ADC_PPB_OS_INT_1 = 0x0U, ADC_PPB_OS_INT_2 = 0x1U }
 
enum  ADC_ExtChannel { ADC_CH_ADCINX_0 = 0x0, ADC_CH_ADCINX_1 = 0x1, ADC_CH_ADCINX_2 = 0x2, ADC_CH_ADCINX_3 = 0x3 }
 
enum  ADC_IntTrigger {
  ADC_INT_TRIGGER_EOC0 = 0, ADC_INT_TRIGGER_EOC1 = 1, ADC_INT_TRIGGER_EOC2 = 2, ADC_INT_TRIGGER_EOC3 = 3,
  ADC_INT_TRIGGER_EOC4 = 4, ADC_INT_TRIGGER_EOC5 = 5, ADC_INT_TRIGGER_EOC6 = 6, ADC_INT_TRIGGER_EOC7 = 7,
  ADC_INT_TRIGGER_EOC8 = 8, ADC_INT_TRIGGER_EOC9 = 9, ADC_INT_TRIGGER_EOC10 = 10, ADC_INT_TRIGGER_EOC11 = 11,
  ADC_INT_TRIGGER_EOC12 = 12, ADC_INT_TRIGGER_EOC13 = 13, ADC_INT_TRIGGER_EOC14 = 14, ADC_INT_TRIGGER_EOC15 = 15,
  ADC_INT_TRIGGER_OSINT1 = 16, ADC_INT_TRIGGER_OSINT2 = 17, ADC_INT_TRIGGER_OSINT3 = 18, ADC_INT_TRIGGER_OSINT4 = 19
}
 
enum  ADC_PPBCompSource { ADC_PPB_COMPSOURCE_RESULT = 0x0, ADC_PPB_COMPSOURCE_PSUM = 0x1, ADC_PPB_COMPSOURCE_SUM = 0x2 }
 
enum  ADC_Select {
  ADC_0 = 0, ADC_1 = 1, ADC_2 = 2, ADC_3 = 3,
  ADC_4 = 4
}
 
enum  ADC_ResultSelect {
  ADC_RESULT0 = 0, ADC_RESULT1 = 1, ADC_RESULT2 = 2, ADC_RESULT3 = 3,
  ADC_RESULT4 = 4, ADC_RESULT5 = 5, ADC_RESULT6 = 6, ADC_RESULT7 = 7,
  ADC_RESULT8 = 8, ADC_RESULT9 = 9, ADC_RESULT10 = 10, ADC_RESULT11 = 11,
  ADC_RESULT12 = 12, ADC_RESULT13 = 13, ADC_RESULT14 = 14, ADC_RESULT15 = 15
}
 
enum  ADC_SafetyCheckerInput { ADC_SAFETY_CHECKER_INPUT_DISABLE = 0x0, ADC_SAFETY_CHECKER_INPUT_SOCx = 0x1, ADC_SAFETY_CHECKER_INPUT_PPBx = 0x2, ADC_SAFETY_CHECKER_INPUT_PPBSUMx = 0x3 }
 
enum  ADC_SafetyCheckInst { ADC_SAFETY_CHECK1 = 0x0, ADC_SAFETY_CHECK2 = 0x4 }
 
enum  ADC_SafetyCheckEvent { ADC_SAFETY_CHECK_EVENT1 = 0, ADC_SAFETY_CHECK_EVENT2 = 16, ADC_SAFETY_CHECK_EVENT3 = 32, ADC_SAFETY_CHECK_EVENT4 = 48 }
 
enum  ADC_SafetyCheckResult { ADC_SAFETY_CHECK_RES1OVF = 0, ADC_SAFETY_CHECK_RES2OVF = 4, ADC_SAFETY_CHECK_OOT = 8 }
 
enum  ADC_Checker {
  ADC_SAFETY_CHECKER1 = 0, ADC_SAFETY_CHECKER2 = 1, ADC_SAFETY_CHECKER3 = 2, ADC_SAFETY_CHECKER4 = 3,
  ADC_SAFETY_CHECKER5 = 4, ADC_SAFETY_CHECKER6 = 5, ADC_SAFETY_CHECKER7 = 6, ADC_SAFETY_CHECKER8 = 7,
  ADC_SAFETY_CHECKER9 = 8, ADC_SAFETY_CHECKER10 = 9, ADC_SAFETY_CHECKER11 = 10, ADC_SAFETY_CHECKER12 = 11
}
 
enum  ADC_SafetyCheckFlag { ADC_SAFETY_CHECK_OOT_FLG = 0, ADC_SAFETY_CHECK_RES1OVF_FLG = 4, ADC_SAFETY_CHECK_RES2OVF_FLG = 8 }
 
enum  ADC_RepInstance { ADC_REPINST1 = 0x0, ADC_REPINST2 = 0x1 }
 
enum  ADC_RepMode { ADC_REPMODE_OVERSAMPLING = 0x0, ADC_REPMODE_UNDERSAMPLING = 0x1 }
 

Functions

static void ADC_setPrescaler (uint32_t base, ADC_ClkPrescale clkPrescale)
 
static void ADC_setupSOC (uint32_t base, ADC_SOCNumber socNumber, ADC_Trigger trigger, ADC_Channel channel, uint32_t sampleWindow)
 
static void ADC_selectSOCExtChannel (uint32_t base, ADC_SOCNumber socNumber, uint16_t extChannel)
 
static void ADC_forceRepeaterTrigger (uint32_t base, uint16_t repInstance)
 
static uint16_t ADC_getRepeaterStatus (uint32_t base, uint16_t repInstance)
 
static void ADC_setInterruptSOCTrigger (uint32_t base, ADC_SOCNumber socNumber, ADC_IntSOCTrigger trigger)
 
static void ADC_setInterruptPulseMode (uint32_t base, ADC_PulseMode pulseMode)
 
static void ADC_setInterruptCycleOffset (uint32_t base, uint16_t cycleOffset)
 
static void ADC_enableAltDMATiming (uint32_t base)
 
static void ADC_disableAltDMATiming (uint32_t base)
 
static void ADC_enableExtMuxPreselect (uint32_t base)
 
static void ADC_disableExtMuxPreselect (uint32_t base)
 
static void ADC_selectOffsetTrimMode (uint32_t base, ADC_OffsetTrim mode)
 
static bool ADC_getIntResultStatus (uint32_t base, ADC_IntNumber adcIntNum)
 
static void ADC_enableConverter (uint32_t base)
 
static void ADC_disableConverter (uint32_t base)
 
static void ADC_forceSOC (uint32_t base, ADC_SOCNumber socNumber)
 
static void ADC_forceMultipleSOC (uint32_t base, uint16_t socMask)
 
static bool ADC_getInterruptStatus (uint32_t base, ADC_IntNumber adcIntNum)
 
static void ADC_clearInterruptStatus (uint32_t base, ADC_IntNumber adcIntNum)
 
static bool ADC_getInterruptOverflowStatus (uint32_t base, ADC_IntNumber adcIntNum)
 
static void ADC_clearInterruptOverflowStatus (uint32_t base, ADC_IntNumber adcIntNum)
 
static uint16_t ADC_readResult (uint32_t resultBase, ADC_SOCNumber socNumber)
 
static bool ADC_isBusy (uint32_t base)
 
static void ADC_setBurstModeConfig (uint32_t base, ADC_Trigger trigger, uint16_t burstSize)
 
static void ADC_enableBurstMode (uint32_t base)
 
static void ADC_disableBurstMode (uint32_t base)
 
static void ADC_setSOCPriority (uint32_t base, ADC_PriorityMode priMode)
 
static void ADC_configOSDetectMode (uint32_t base, ADC_OSDetectMode modeVal)
 
static void ADC_setupPPB (uint32_t base, ADC_PPBNumber ppbNumber, ADC_SOCNumber socNumber)
 
static void ADC_enablePPBEvent (uint32_t base, ADC_PPBNumber ppbNumber, uint16_t evtFlags)
 
static void ADC_disablePPBEvent (uint32_t base, ADC_PPBNumber ppbNumber, uint16_t evtFlags)
 
static void ADC_enablePPBEventInterrupt (uint32_t base, ADC_PPBNumber ppbNumber, uint16_t intFlags)
 
static void ADC_disablePPBEventInterrupt (uint32_t base, ADC_PPBNumber ppbNumber, uint16_t intFlags)
 
static uint16_t ADC_getPPBEventStatus (uint32_t base, ADC_PPBNumber ppbNumber)
 
static void ADC_clearPPBEventStatus (uint32_t base, ADC_PPBNumber ppbNumber, uint16_t evtFlags)
 
static void ADC_enablePPBEventCBCClear (uint32_t base, ADC_PPBNumber ppbNumber)
 
static void ADC_disablePPBEventCBCClear (uint32_t base, ADC_PPBNumber ppbNumber)
 
static void ADC_setPPBCountLimit (uint32_t base, ADC_PPBNumber ppbNumber, uint16_t limit)
 
static uint16_t ADC_getPPBCountLimit (uint32_t base, ADC_PPBNumber ppbNumber)
 
static uint16_t ADC_readPPBPCount (uint32_t base, ADC_PPBNumber ppbNumber)
 
static int32_t ADC_readPPBPSum (uint32_t base, ADC_PPBNumber ppbNumber)
 
static int32_t ADC_readPPBPMax (uint32_t base, ADC_PPBNumber ppbNumber)
 
static int32_t ADC_readPPBPMin (uint32_t base, ADC_PPBNumber ppbNumber)
 
static uint16_t ADC_readPPBPMaxIndex (uint32_t base, ADC_PPBNumber ppbNumber)
 
static uint16_t ADC_readPPBPMinIndex (uint32_t base, ADC_PPBNumber ppbNumber)
 
static void ADC_enablePPBAbsoluteValue (uint32_t base, ADC_PPBNumber ppbNumber)
 
static void ADC_disablePPBAbsoluteValue (uint32_t base, ADC_PPBNumber ppbNumber)
 
static void ADC_setPPBShiftValue (uint32_t base, ADC_PPBNumber ppbNumber, uint16_t shiftVal)
 
static void ADC_selectPPBSyncInput (uint32_t base, ADC_PPBNumber ppbNumber, uint16_t syncInput)
 
static void ADC_forcePPBSync (uint32_t base, ADC_PPBNumber ppbNumber)
 
static void ADC_selectPPBOSINTSource (uint32_t base, ADC_PPBNumber ppbNumber, uint16_t osIntSrc)
 
static void ADC_selectPPBCompareSource (uint32_t base, ADC_PPBNumber ppbNumber, uint16_t compSrc)
 
static int32_t ADC_readPPBSum (uint32_t resultBase, ADC_PPBNumber ppbNumber)
 
static uint32_t ADC_readPPBCount (uint32_t resultBase, ADC_PPBNumber ppbNumber)
 
static int32_t ADC_readPPBMax (uint32_t resultBase, ADC_PPBNumber ppbNumber)
 
static int32_t ADC_readPPBMin (uint32_t resultBase, ADC_PPBNumber ppbNumber)
 
static uint16_t ADC_readPPBMaxIndex (uint32_t resultBase, ADC_PPBNumber ppbNumber)
 
static uint16_t ADC_readPPBMinIndex (uint32_t resultBase, ADC_PPBNumber ppbNumber)
 
static int32_t ADC_readPPBResult (uint32_t resultBase, ADC_PPBNumber ppbNumber)
 
static uint16_t ADC_getPPBDelayTimeStamp (uint32_t base, ADC_PPBNumber ppbNumber)
 
static void ADC_setPPBCalibrationOffset (uint32_t base, ADC_PPBNumber ppbNumber, int16_t offset)
 
static void ADC_setPPBReferenceOffset (uint32_t base, ADC_PPBNumber ppbNumber, uint16_t offset)
 
static void ADC_enablePPBTwosComplement (uint32_t base, ADC_PPBNumber ppbNumber)
 
static void ADC_disablePPBTwosComplement (uint32_t base, ADC_PPBNumber ppbNumber)
 
static void ADC_enablePPBExtendedLowLimit (uint32_t base, ADC_PPBNumber ppbNumber)
 
static void ADC_disablePPBExtendedLowLimit (uint32_t base, ADC_PPBNumber ppbNumber)
 
static void ADC_enableInterrupt (uint32_t base, ADC_IntNumber adcIntNum)
 
static void ADC_disableInterrupt (uint32_t base, ADC_IntNumber adcIntNum)
 
static void ADC_setInterruptSource (uint32_t base, ADC_IntNumber adcIntNum, uint16_t intTrigger)
 
static void ADC_enableContinuousMode (uint32_t base, ADC_IntNumber adcIntNum)
 
static void ADC_disableContinuousMode (uint32_t base, ADC_IntNumber adcIntNum)
 
static void ADC_configSOCSafetyCheckerInput (uint32_t base, ADC_SOCNumber socNumber, ADC_SafetyCheckerInput scInput)
 
static void ADC_enableSafetyChecker (uint32_t scBase)
 
static void ADC_disableSafetyChecker (uint32_t scBase)
 
static void ADC_forceSafetyCheckerSync (uint32_t scBase)
 
static uint16_t ADC_getSafetyCheckerStatus (uint32_t scBase)
 
static void ADC_configureSafetyChecker (uint32_t scBase, ADC_SafetyCheckInst checkInst, ADC_Select adcInst, ADC_ResultSelect adcResultInst)
 
static void ADC_setSafetyCheckerTolerance (uint32_t scBase, uint32_t tolerance)
 
static uint32_t ADC_getSafetyCheckerResult (uint32_t scBase, ADC_SafetyCheckInst checkInst)
 
static void ADC_enableSafetyCheckEvt (uint32_t scIntEvtBase, ADC_Checker checkerNumber, ADC_SafetyCheckEvent checkEvent, ADC_SafetyCheckResult checkResult)
 
static void ADC_disableSafetyCheckEvt (uint32_t scIntEvtBase, ADC_Checker checkerNumber, ADC_SafetyCheckEvent checkEvent, ADC_SafetyCheckResult checkResult)
 
static void ADC_enableSafetyCheckInt (uint32_t scIntEvtBase, ADC_Checker checkerNumber, ADC_SafetyCheckResult checkResult)
 
static void ADC_disableSafetyCheckInt (uint32_t scIntEvtBase, ADC_Checker checkerNumber, ADC_SafetyCheckResult checkResult)
 
static bool ADC_getSafetyCheckStatus (uint32_t scIntEvtBase, ADC_Checker checkerNumber, ADC_SafetyCheckFlag checkerFlag)
 
static void ADC_clearSafetyCheckStatus (uint32_t scIntEvtBase, ADC_Checker checkerNumber, ADC_SafetyCheckFlag checkerFlag)
 
static uint32_t ADC_getSafetyCheckIntStatus (uint32_t scIntEvtBase)
 
static void ADC_clearSafetyCheckIntStatus (uint32_t scIntEvtBase)
 
static void ADC_triggerRepeaterMode (uint32_t base, uint32_t repInstance, ADC_RepMode mode)
 
static bool ADC_triggerRepeaterActiveMode (uint32_t base, uint32_t repInstance)
 
static bool ADC_triggerRepeaterModuleBusy (uint32_t base, uint32_t repInstance)
 
static void ADC_triggerRepeaterSelect (uint32_t base, uint16_t repInstance, ADC_Trigger trigger)
 
static void ADC_triggerRepeaterSyncIn (uint32_t base, uint16_t repInstance, ADC_SyncInput syncInput)
 
static void ADC_forceRepeaterTriggerSync (uint32_t base, uint16_t repInstance)
 
static void ADC_triggerRepeaterCount (uint32_t base, uint16_t repInstance, uint16_t repCount)
 
static void ADC_triggerRepeaterPhase (uint32_t base, uint16_t repInstance, uint16_t repPhase)
 
static void ADC_triggerRepeaterSpread (uint32_t base, uint16_t repInstance, uint16_t repSpread)
 
void ADC_setMode (uint32_t base, ADC_Resolution resolution, ADC_SignalMode signalMode)
 
void ADC_setPPBTripLimits (uint32_t base, ADC_PPBNumber ppbNumber, int32_t tripHiLimit, int32_t tripLoLimit)