Logo Search packages:      
Sourcecode: linux-fsl-imx51 version File versions  Download package

pmic_adc_defs.h File Reference


Detailed Description

This header contains all defines for PMIC(mc13783) ADC driver.

Definition in file pmic_adc_defs.h.

Go to the source code of this file.

Classes

struct  t_adc_param
struct  t_monitoring_param

Defines

#define ADC_ADSEL   0x000008
#define ADC_ATO   0x080000
#define ADC_BIS   0x800000
#define ADC_CH_0_MASK   0x0000E0
#define ADC_CH_0_POS   5
#define ADC_CH_1_MASK   0x000700
#define ADC_CH_1_POS   8
#define ADC_CHRGRAW_D5   0x008000
#define ADC_DELAY_MASK   0x07F800
#define ADC_DELAY_POS   11
#define ADC_EN   0x000001
#define ADC_INC   0x030000
#define ADC_INT_BISDONEI   0x02
#define ADC_MODE_MASK   0x00003F
#define ADC_NB_AVAILABLE   2
#define ADC_NO_ADTRIG   0x200000
#define ADC_SGL_CH   0x000002
#define ADC_TS_MASK   0x00FFCFFC
#define ADC_WAIT_TSI_0   0x001C00
#define ADC_WAIT_TSI_1   0x300001
#define ADC_WCOMP   0x040000
#define ADC_WCOMP_H_MASK   0x00003F
#define ADC_WCOMP_H_POS   0
#define ADC_WCOMP_L_MASK   0x007E00
#define ADC_WCOMP_L_POS   9
#define ADD1_RESULT_MASK   0x00000FFC
#define ADD2_RESULT_MASK   0x00FFC000
#define ASC_ADC   0x100000
#define DEF_ADC_0   0x008000
#define DEF_ADC_3   0x000080
#define DELTA_X_MAX   50
#define DELTA_Y_MAX   50
#define FILTER_MIN_DELAY   4
#define FILTLEN   3
#define MAX_CHANNEL   7
#define MC13783_ADC0_TS_M_LSH   14
#define MC13783_ADC0_TS_M_WID   3
#define MC13783_ADC_DEVICE   "/dev/mc13783_adc"
#define TS_X_MAX   1000
#define TS_X_MIN   80
#define TS_Y_MAX   1000
#define TS_Y_MIN   80

Typedefs

typedef enum adc_state t_adc_state
typedef enum check_mode t_check_mode
typedef enum reading_mode t_reading_mode

Enumerations

enum  adc_state {
  ADC_FREE, ADC_USED, ADC_MONITORING, ADC_FREE,
  ADC_USED, ADC_MONITORING
}
enum  check_mode { CHECK_LOW, CHECK_HIGH, CHECK_LOW_OR_HIGH }
enum  reading_mode {
  M_LITHIUM_CELL = 0x000001, M_CHARGE_CURRENT = 0x000002, M_BATTERY_CURRENT = 0x000004, M_THERMISTOR = 0x000008,
  M_DIE_TEMPERATURE = 0x000010, M_UID = 0x000020, M_LITHIUM_CELL = 0x000001, M_CHARGE_CURRENT = 0x000002,
  M_BATTERY_CURRENT = 0x000004
}

Functions

PMIC_STATUS mc13783_adc_read_ts (t_touch_screen *touch_sample, int wait_tsi)
int mc13783_adc_release (int adc_index)
int mc13783_adc_request (bool read_ts)
t_reading_mode mc13783_set_read_mode (t_channel channel)
static int pmic_adc_filter (t_touch_screen *ts_curr)
void update_buffer (void)


Generated by  Doxygen 1.6.0   Back to index