Defines | Enumerations

QACR2 register settings

Defines

#define ADC_Q2_COMP_INT_DISABLE   0
 This macro used to disable completion interrupt for Queue-2.
#define ADC_Q2_COMP_INT_ENABLE   1
 This macro used to enable completion interrupt for Queue-2.
#define ADC_Q2_PAUSE_INT_DISABLE   0
 This macro used to disable pause interrupt for Queue-2.
#define ADC_Q2_PAUSE_INT_ENABLE   1
 This macro used to enable pause interrupt for Queue-2.

Enumerations

enum  QADC_Q2_SingleScanOpt {
  ADC_Q2_SINGLE_SCAN_DISABLE,
  ADC_Q2_SINGLE_SCAN_ENABLE
}
 

Provides Queue-2 Single scan operation status.

More...
enum  ADC_Q2_OpModes {
  ADC_OP_Q2_DISABLE,
  ADC_OP_Q2_SW_TRIG_SINGLE_SCAN,
  ADC_OP_Q2_EXT_TRIG_RISING_EDGE_SINGLE_SCAN,
  ADC_OP_Q2_EXT_TRIG_FALLING_EDGE_SINGLE_SCAN,
  ADC_OP_Q2_INTVAL_TIMER_SINGLE_SCAN_128_QCLK,
  ADC_OP_Q2_INTVAL_TIMER_SINGLE_SCAN_256_QCLK,
  ADC_OP_Q2_INTVAL_TIMER_SINGLE_SCAN_512_QCLK,
  ADC_OP_Q2_INTVAL_TIMER_SINGLE_SCAN_1024_QCLK,
  ADC_OP_Q2_INTVAL_TIMER_SINGLE_SCAN_2048_QCLK,
  ADC_OP_Q2_INTVAL_TIMER_SINGLE_SCAN_4096_QCLK,
  ADC_OP_Q2_INTVAL_TIMER_SINGLE_SCAN_8192_QCLK,
  ADC_OP_Q2_INTVAL_TIMER_SINGLE_SCAN_16384_QCLK,
  ADC_OP_Q2_INTVAL_TIMER_SINGLE_SCAN_32768_QCLK,
  ADC_OP_Q2_INTVAL_TIMER_SINGLE_SCAN_65536_QCLK,
  ADC_OP_Q2_INTVAL_TIMER_SINGLE_SCAN_131072_QCLK,
  ADC_OP_Q2_RESERVED_1,
  ADC_OP_Q2_RESERVED_2,
  ADC_OP_Q2_SW_TRIG_CONTINOUS_SCAN,
  ADC_OP_Q2_EXT_TRIG_RISING_EDGE_CONTINOUS_SCAN,
  ADC_OP_Q2_EXT_TRIG_FALLING_EDGE_CONTINOUS_SCAN,
  ADC_OP_Q2_PERIO_TIMER_CONT_SCAN_128_QCLK,
  ADC_OP_Q2_PERIO_TIMER_CONT_SCAN_256_QCLK,
  ADC_OP_Q2_PERIO_TIMER_CONT_SCAN_512_QCLK,
  ADC_OP_Q2_PERIO_TIMER_CONT_SCAN_1024_QCLK,
  ADC_OP_Q2_PERIO_TIMER_CONT_SCAN_2048_QCLK,
  ADC_OP_Q2_PERIO_TIMER_CONT_SCAN_4096_QCLK,
  ADC_OP_Q2_PERIO_TIMER_CONT_SCAN_8192_QCLK,
  ADC_OP_Q2_PERIO_TIMER_CONT_SCAN_16384_QCLK,
  ADC_OP_Q2_PERIO_TIMER_CONT_SCAN_32768_QCLK,
  ADC_OP_Q2_PERIO_TIMER_CONT_SCAN_65536_QCLK,
  ADC_OP_Q2_PERIO_TIMER_CONT_SCAN_131072_QCLK,
  ADC_OP_Q2_EXT_GATED_CONTINOUS_SCAN,
  ADC_OP_Q2_RESERVED_3
}
 

This enum provides all Queue-2 operation modes.

More...
enum  QADC_Q2_ResumePos {
  ADC_Q2_RESUME_FROM_START_POS,
  ADC_Q2_RESUME_FROM_SUSPENDED_POS
}
 

This enum defines the Queue-2 CCW Resume position.

More...

Define Documentation

#define ADC_Q2_COMP_INT_DISABLE   0

This macro used to disable completion interrupt for Queue-2.

Definition at line 81 of file adc_Cfg.h.

#define ADC_Q2_COMP_INT_ENABLE   1

This macro used to enable completion interrupt for Queue-2.

Definition at line 83 of file adc_Cfg.h.

Referenced by ADC_Init().

#define ADC_Q2_PAUSE_INT_DISABLE   0

This macro used to disable pause interrupt for Queue-2.

Definition at line 87 of file adc_Cfg.h.

#define ADC_Q2_PAUSE_INT_ENABLE   1

This macro used to enable pause interrupt for Queue-2.

Definition at line 89 of file adc_Cfg.h.

Referenced by ADC_Init().


Enumeration Type Documentation

This enum provides all Queue-2 operation modes.

Enumerator:
ADC_OP_Q2_DISABLE 

Disabled mode, conversions do not occur.

ADC_OP_Q2_SW_TRIG_SINGLE_SCAN 

Software triggered single-scan mode (started with SSE2)

ADC_OP_Q2_EXT_TRIG_RISING_EDGE_SINGLE_SCAN 

External trigger rising edge single-scan mode.

ADC_OP_Q2_EXT_TRIG_FALLING_EDGE_SINGLE_SCAN 

External trigger falling edge single-scan mode.

ADC_OP_Q2_INTVAL_TIMER_SINGLE_SCAN_128_QCLK 

Interval timer single-scan mode: time = QCLK period x (2^7)

ADC_OP_Q2_INTVAL_TIMER_SINGLE_SCAN_256_QCLK 

Interval timer single-scan mode: time = QCLK period x (2^8)

ADC_OP_Q2_INTVAL_TIMER_SINGLE_SCAN_512_QCLK 

Interval timer single-scan mode: time = QCLK period x (2^9)

ADC_OP_Q2_INTVAL_TIMER_SINGLE_SCAN_1024_QCLK 

Interval timer single-scan mode: time = QCLK period x (2^10)

ADC_OP_Q2_INTVAL_TIMER_SINGLE_SCAN_2048_QCLK 

Interval timer single-scan mode: time = QCLK period x (2^11)

ADC_OP_Q2_INTVAL_TIMER_SINGLE_SCAN_4096_QCLK 

Interval timer single-scan mode: time = QCLK period x (2^12)

ADC_OP_Q2_INTVAL_TIMER_SINGLE_SCAN_8192_QCLK 

Interval timer single-scan mode: time = QCLK period x (2^13)

ADC_OP_Q2_INTVAL_TIMER_SINGLE_SCAN_16384_QCLK 

Interval timer single-scan mode: time = QCLK period x (2^14)

ADC_OP_Q2_INTVAL_TIMER_SINGLE_SCAN_32768_QCLK 

Interval timer single-scan mode: time = QCLK period x (2^15)

ADC_OP_Q2_INTVAL_TIMER_SINGLE_SCAN_65536_QCLK 

Interval timer single-scan mode: time = QCLK period x (2^16)

ADC_OP_Q2_INTVAL_TIMER_SINGLE_SCAN_131072_QCLK 

Interval timer single-scan mode: time = QCLK period x (2^17)

ADC_OP_Q2_RESERVED_1 

Reserved mode.

ADC_OP_Q2_RESERVED_2 

Reserved mode.

ADC_OP_Q2_SW_TRIG_CONTINOUS_SCAN 

Software triggered continuous-scan mode.

ADC_OP_Q2_EXT_TRIG_RISING_EDGE_CONTINOUS_SCAN 

External trigger rising edge continuous-scan mode.

ADC_OP_Q2_EXT_TRIG_FALLING_EDGE_CONTINOUS_SCAN 

External trigger falling edge continuous-scan mode.

ADC_OP_Q2_PERIO_TIMER_CONT_SCAN_128_QCLK 

Periodic timer continuous-scan mode: time = QCLK period x (2^7)

ADC_OP_Q2_PERIO_TIMER_CONT_SCAN_256_QCLK 

Periodic timer continuous-scan mode: time = QCLK period x (2^8)

ADC_OP_Q2_PERIO_TIMER_CONT_SCAN_512_QCLK 

Periodic timer continuous-scan mode: time = QCLK period x (2^9)

ADC_OP_Q2_PERIO_TIMER_CONT_SCAN_1024_QCLK 

Periodic timer continuous-scan mode: time = QCLK period x (2^10)

ADC_OP_Q2_PERIO_TIMER_CONT_SCAN_2048_QCLK 

Periodic timer continuous-scan mode: time = QCLK period x (2^11)

ADC_OP_Q2_PERIO_TIMER_CONT_SCAN_4096_QCLK 

Periodic timer continuous-scan mode: time = QCLK period x (2^12)

ADC_OP_Q2_PERIO_TIMER_CONT_SCAN_8192_QCLK 

Periodic timer continuous-scan mode: time = QCLK period x (2^13)

ADC_OP_Q2_PERIO_TIMER_CONT_SCAN_16384_QCLK 

Periodic timer continuous-scan mode: time = QCLK period x (2^14)

ADC_OP_Q2_PERIO_TIMER_CONT_SCAN_32768_QCLK 

Periodic timer continuous-scan mode: time = QCLK period x (2^15)

ADC_OP_Q2_PERIO_TIMER_CONT_SCAN_65536_QCLK 

Periodic timer continuous-scan mode: time = QCLK period x (2^16)

ADC_OP_Q2_PERIO_TIMER_CONT_SCAN_131072_QCLK 

Periodic timer continuous-scan mode: time = QCLK period x (2^17)

ADC_OP_Q2_EXT_GATED_CONTINOUS_SCAN 

External gated continuous-scan mode.

ADC_OP_Q2_RESERVED_3 

Reserved mode.

Definition at line 227 of file adc.h.

This enum defines the Queue-2 CCW Resume position.

Enumerator:
ADC_Q2_RESUME_FROM_START_POS 

Begin executing with the first CCW in queue 2 or the current sub-queue, After suspension

ADC_Q2_RESUME_FROM_SUSPENDED_POS 

Begin executing with the aborted CCW in queue 2, After suspension

Definition at line 298 of file adc.h.

Provides Queue-2 Single scan operation status.

Enumerator:
ADC_Q2_SINGLE_SCAN_DISABLE 

Disables single scan operation for Queue-2

ADC_Q2_SINGLE_SCAN_ENABLE 

Enables single scan operation for Queue-2

Definition at line 217 of file adc.h.