- Main Page
- Modules
- Data Structures
- Files

Enumerations
SAR Enumerated Data Types
SAR

## Enumerations
enum | CSL_SarChanSel { CSL_SAR_CHAN_0 = 0, CSL_SAR_CHAN_1 = 1, CSL_SAR_CHAN_2 = 2, CSL_SAR_CHAN_3 = 3, CSL_SAR_CHAN_4 = 4, CSL_SAR_CHAN_5 = 5, CSL_SAR_NO_CHAN = 6 }
| Enumeration for SAR channel selection. More...
enum | CSL_SarOpMode { CSL_SAR_POLLING = 0, CSL_SAR_INTERRUPT = 1, CSL_SAR_DMA = 2 }
| Enumeration for Selection mode of SAR - To configure Status bit in SAR A/D Reference and Pin Register. More...
enum | CSL_SarChanCyc { CSL_SAR_CONTINUOUS_CONVERSION = 0, CSL_SAR_SINGLE_CONVERSION = 1 }
| Enumeration for SAR Single Cycle Operation To configure SingleCyc bit in SAR A/D Control Register. More...
enum | CSL_SarMultiCh { CSL_SAR_NO_DISCHARGE = 0, CSL_SAR_DISCHARGE_ARRAY = 1 }
| Enumeration for SAR Multi Channel Operation To configure MultiCh bit in SAR A/D Control Register. More...
enum | CSL_RefVoltage { CSL_SAR_REF_0_8v = 0, CSL_SAR_REF_1v = 1, CSL_SAR_REF_VIN = 2 }
| Enumeration for SAR Reference voltage selection. More...
enum | CSL_SarGPOPinSel { CSL_SAR_GPO_0 = 0, CSL_SAR_GPO_1 = 1, CSL_SAR_GPO_2 = 2, CSL_SAR_GPO_3 = 3 }
| Enumeration for SAR GPAIN Pin Index. More...
enum | CSL_SarGPODir { CSL_SAR_GPO_IN = 0, CSL_SAR_GPO_OUT = 1 }
| Enumeration for SAR General Purpose Pin Direction. More...
enum | CSL_SARMeasParam { CSL_KEYPAD_MEAS = 0, CSL_BATTRY_MEAS = 1, CSL_INT_VOLT_MEAS = 2, CSL_VOLUME_CTRL = 3, CSL_TOUCH_SCREEN_XAXIS = 4, CSL_TOUCH_SCREEN_YAXIS = 5, CSL_PEN_PRESS_DOWN = 6 }
| Enumeration for Selecting type of A/D conversion. More...

## Enumeration Type Documentation

enum CSL_RefVoltage

Enumeration for SAR Reference voltage selection.

Enumerator:

  CSL_SAR_REF_0_8v | Select Reference voltage 0.8 volts
  CSL_SAR_REF_1v | Select Reference voltage 1 volts
  CSL_SAR_REF_VIN | Select Reference voltage as Input voltage

enum CSL_SarChanCyc

Enumeration for SAR Single Cycle Operation To configure SingleCyc bit in SAR A/D Control Register.

Enumerator:

  CSL_SAR_CONTINUOUS_CONVERSION | Continously perform Conversion
  CSL_SAR_SINGLE_CONVERSION | Single Conversion

enum CSL_SarChanSel

Enumeration for SAR channel selection.

Enumerator:

  CSL_SAR_CHAN_0 | SAR Channel Number 0
  CSL_SAR_CHAN_1 | SAR Channel Number 1
  CSL_SAR_CHAN_2 | SAR Channel Number 2
  CSL_SAR_CHAN_3 | SAR Channel Number 3
  CSL_SAR_CHAN_4 | SAR Channel Number 4
  CSL_SAR_CHAN_5 | SAR Channel Number 5
  CSL_SAR_NO_CHAN | No channel Allocated

enum CSL_SarGPODir

Enumeration for SAR General Purpose Pin Direction.

Enumerator:

  CSL_SAR_GPO_IN | GPAIN as i/p
  CSL_SAR_GPO_OUT | GPAIN as o/p

enum CSL_SarGPOPinSel

Enumeration for SAR GPAIN Pin Index.

Enumerator:

  CSL_SAR_GPO_0 | GPAIN 0
  CSL_SAR_GPO_1 | GPAIN 1
  CSL_SAR_GPO_2 | GPAIN 2
  CSL_SAR_GPO_3 | GPAIN 3

enum CSL_SARMeasParam

Enumeration for Selecting type of A/D conversion.

Enumerator:

  CSL_KEYPAD_MEAS | For Measuring keypad voltage
  CSL_BATTRY_MEAS | For Measuring battery voltage
  CSL_INT_VOLT_MEAS | For Measuring Internal Voltage
  CSL_VOLUME_CTRL | For Volume control Measurement
  CSL_TOUCH_SCREEN_XAXIS | For Measuring X-Position of LCD
  CSL_TOUCH_SCREEN_YAXIS | For Measuring Y-Postion of LCD
  CSL_PEN_PRESS_DOWN | For Measuring pen press down

enum CSL_SarMultiCh

Enumeration for SAR Multi Channel Operation To configure MultiCh bit in SAR A/D Control Register.

Enumerator:

  CSL_SAR_NO_DISCHARGE | No dischage of array
  CSL_SAR_DISCHARGE_ARRAY | Discharge of array

enum CSL_SarOpMode

Enumeration for Selection mode of SAR - To configure Status bit in SAR A/D Reference and Pin Register.

Enumerator:

  CSL_SAR_POLLING | Polling Mode
  CSL_SAR_INTERRUPT | Interrupt Mode
  CSL_SAR_DMA | DMA mode