Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions
auxadc.h File Reference

Go to the source code of this file.

Macros

#define WM831X_AUX_DATA_SRC_MASK   0xF000 /* AUX_DATA_SRC - [15:12] */
 
#define WM831X_AUX_DATA_SRC_SHIFT   12 /* AUX_DATA_SRC - [15:12] */
 
#define WM831X_AUX_DATA_SRC_WIDTH   4 /* AUX_DATA_SRC - [15:12] */
 
#define WM831X_AUX_DATA_MASK   0x0FFF /* AUX_DATA - [11:0] */
 
#define WM831X_AUX_DATA_SHIFT   0 /* AUX_DATA - [11:0] */
 
#define WM831X_AUX_DATA_WIDTH   12 /* AUX_DATA - [11:0] */
 
#define WM831X_AUX_ENA   0x8000 /* AUX_ENA */
 
#define WM831X_AUX_ENA_MASK   0x8000 /* AUX_ENA */
 
#define WM831X_AUX_ENA_SHIFT   15 /* AUX_ENA */
 
#define WM831X_AUX_ENA_WIDTH   1 /* AUX_ENA */
 
#define WM831X_AUX_CVT_ENA   0x4000 /* AUX_CVT_ENA */
 
#define WM831X_AUX_CVT_ENA_MASK   0x4000 /* AUX_CVT_ENA */
 
#define WM831X_AUX_CVT_ENA_SHIFT   14 /* AUX_CVT_ENA */
 
#define WM831X_AUX_CVT_ENA_WIDTH   1 /* AUX_CVT_ENA */
 
#define WM831X_AUX_SLPENA   0x1000 /* AUX_SLPENA */
 
#define WM831X_AUX_SLPENA_MASK   0x1000 /* AUX_SLPENA */
 
#define WM831X_AUX_SLPENA_SHIFT   12 /* AUX_SLPENA */
 
#define WM831X_AUX_SLPENA_WIDTH   1 /* AUX_SLPENA */
 
#define WM831X_AUX_FRC_ENA   0x0800 /* AUX_FRC_ENA */
 
#define WM831X_AUX_FRC_ENA_MASK   0x0800 /* AUX_FRC_ENA */
 
#define WM831X_AUX_FRC_ENA_SHIFT   11 /* AUX_FRC_ENA */
 
#define WM831X_AUX_FRC_ENA_WIDTH   1 /* AUX_FRC_ENA */
 
#define WM831X_AUX_RATE_MASK   0x003F /* AUX_RATE - [5:0] */
 
#define WM831X_AUX_RATE_SHIFT   0 /* AUX_RATE - [5:0] */
 
#define WM831X_AUX_RATE_WIDTH   6 /* AUX_RATE - [5:0] */
 
#define WM831X_AUX_CAL_SEL   0x8000 /* AUX_CAL_SEL */
 
#define WM831X_AUX_CAL_SEL_MASK   0x8000 /* AUX_CAL_SEL */
 
#define WM831X_AUX_CAL_SEL_SHIFT   15 /* AUX_CAL_SEL */
 
#define WM831X_AUX_CAL_SEL_WIDTH   1 /* AUX_CAL_SEL */
 
#define WM831X_AUX_BKUP_BATT_SEL   0x0400 /* AUX_BKUP_BATT_SEL */
 
#define WM831X_AUX_BKUP_BATT_SEL_MASK   0x0400 /* AUX_BKUP_BATT_SEL */
 
#define WM831X_AUX_BKUP_BATT_SEL_SHIFT   10 /* AUX_BKUP_BATT_SEL */
 
#define WM831X_AUX_BKUP_BATT_SEL_WIDTH   1 /* AUX_BKUP_BATT_SEL */
 
#define WM831X_AUX_WALL_SEL   0x0200 /* AUX_WALL_SEL */
 
#define WM831X_AUX_WALL_SEL_MASK   0x0200 /* AUX_WALL_SEL */
 
#define WM831X_AUX_WALL_SEL_SHIFT   9 /* AUX_WALL_SEL */
 
#define WM831X_AUX_WALL_SEL_WIDTH   1 /* AUX_WALL_SEL */
 
#define WM831X_AUX_BATT_SEL   0x0100 /* AUX_BATT_SEL */
 
#define WM831X_AUX_BATT_SEL_MASK   0x0100 /* AUX_BATT_SEL */
 
#define WM831X_AUX_BATT_SEL_SHIFT   8 /* AUX_BATT_SEL */
 
#define WM831X_AUX_BATT_SEL_WIDTH   1 /* AUX_BATT_SEL */
 
#define WM831X_AUX_USB_SEL   0x0080 /* AUX_USB_SEL */
 
#define WM831X_AUX_USB_SEL_MASK   0x0080 /* AUX_USB_SEL */
 
#define WM831X_AUX_USB_SEL_SHIFT   7 /* AUX_USB_SEL */
 
#define WM831X_AUX_USB_SEL_WIDTH   1 /* AUX_USB_SEL */
 
#define WM831X_AUX_SYSVDD_SEL   0x0040 /* AUX_SYSVDD_SEL */
 
#define WM831X_AUX_SYSVDD_SEL_MASK   0x0040 /* AUX_SYSVDD_SEL */
 
#define WM831X_AUX_SYSVDD_SEL_SHIFT   6 /* AUX_SYSVDD_SEL */
 
#define WM831X_AUX_SYSVDD_SEL_WIDTH   1 /* AUX_SYSVDD_SEL */
 
#define WM831X_AUX_BATT_TEMP_SEL   0x0020 /* AUX_BATT_TEMP_SEL */
 
#define WM831X_AUX_BATT_TEMP_SEL_MASK   0x0020 /* AUX_BATT_TEMP_SEL */
 
#define WM831X_AUX_BATT_TEMP_SEL_SHIFT   5 /* AUX_BATT_TEMP_SEL */
 
#define WM831X_AUX_BATT_TEMP_SEL_WIDTH   1 /* AUX_BATT_TEMP_SEL */
 
#define WM831X_AUX_CHIP_TEMP_SEL   0x0010 /* AUX_CHIP_TEMP_SEL */
 
#define WM831X_AUX_CHIP_TEMP_SEL_MASK   0x0010 /* AUX_CHIP_TEMP_SEL */
 
#define WM831X_AUX_CHIP_TEMP_SEL_SHIFT   4 /* AUX_CHIP_TEMP_SEL */
 
#define WM831X_AUX_CHIP_TEMP_SEL_WIDTH   1 /* AUX_CHIP_TEMP_SEL */
 
#define WM831X_AUX_AUX4_SEL   0x0008 /* AUX_AUX4_SEL */
 
#define WM831X_AUX_AUX4_SEL_MASK   0x0008 /* AUX_AUX4_SEL */
 
#define WM831X_AUX_AUX4_SEL_SHIFT   3 /* AUX_AUX4_SEL */
 
#define WM831X_AUX_AUX4_SEL_WIDTH   1 /* AUX_AUX4_SEL */
 
#define WM831X_AUX_AUX3_SEL   0x0004 /* AUX_AUX3_SEL */
 
#define WM831X_AUX_AUX3_SEL_MASK   0x0004 /* AUX_AUX3_SEL */
 
#define WM831X_AUX_AUX3_SEL_SHIFT   2 /* AUX_AUX3_SEL */
 
#define WM831X_AUX_AUX3_SEL_WIDTH   1 /* AUX_AUX3_SEL */
 
#define WM831X_AUX_AUX2_SEL   0x0002 /* AUX_AUX2_SEL */
 
#define WM831X_AUX_AUX2_SEL_MASK   0x0002 /* AUX_AUX2_SEL */
 
#define WM831X_AUX_AUX2_SEL_SHIFT   1 /* AUX_AUX2_SEL */
 
#define WM831X_AUX_AUX2_SEL_WIDTH   1 /* AUX_AUX2_SEL */
 
#define WM831X_AUX_AUX1_SEL   0x0001 /* AUX_AUX1_SEL */
 
#define WM831X_AUX_AUX1_SEL_MASK   0x0001 /* AUX_AUX1_SEL */
 
#define WM831X_AUX_AUX1_SEL_SHIFT   0 /* AUX_AUX1_SEL */
 
#define WM831X_AUX_AUX1_SEL_WIDTH   1 /* AUX_AUX1_SEL */
 
#define WM831X_DCOMP4_STS   0x0800 /* DCOMP4_STS */
 
#define WM831X_DCOMP4_STS_MASK   0x0800 /* DCOMP4_STS */
 
#define WM831X_DCOMP4_STS_SHIFT   11 /* DCOMP4_STS */
 
#define WM831X_DCOMP4_STS_WIDTH   1 /* DCOMP4_STS */
 
#define WM831X_DCOMP3_STS   0x0400 /* DCOMP3_STS */
 
#define WM831X_DCOMP3_STS_MASK   0x0400 /* DCOMP3_STS */
 
#define WM831X_DCOMP3_STS_SHIFT   10 /* DCOMP3_STS */
 
#define WM831X_DCOMP3_STS_WIDTH   1 /* DCOMP3_STS */
 
#define WM831X_DCOMP2_STS   0x0200 /* DCOMP2_STS */
 
#define WM831X_DCOMP2_STS_MASK   0x0200 /* DCOMP2_STS */
 
#define WM831X_DCOMP2_STS_SHIFT   9 /* DCOMP2_STS */
 
#define WM831X_DCOMP2_STS_WIDTH   1 /* DCOMP2_STS */
 
#define WM831X_DCOMP1_STS   0x0100 /* DCOMP1_STS */
 
#define WM831X_DCOMP1_STS_MASK   0x0100 /* DCOMP1_STS */
 
#define WM831X_DCOMP1_STS_SHIFT   8 /* DCOMP1_STS */
 
#define WM831X_DCOMP1_STS_WIDTH   1 /* DCOMP1_STS */
 
#define WM831X_DCMP4_ENA   0x0008 /* DCMP4_ENA */
 
#define WM831X_DCMP4_ENA_MASK   0x0008 /* DCMP4_ENA */
 
#define WM831X_DCMP4_ENA_SHIFT   3 /* DCMP4_ENA */
 
#define WM831X_DCMP4_ENA_WIDTH   1 /* DCMP4_ENA */
 
#define WM831X_DCMP3_ENA   0x0004 /* DCMP3_ENA */
 
#define WM831X_DCMP3_ENA_MASK   0x0004 /* DCMP3_ENA */
 
#define WM831X_DCMP3_ENA_SHIFT   2 /* DCMP3_ENA */
 
#define WM831X_DCMP3_ENA_WIDTH   1 /* DCMP3_ENA */
 
#define WM831X_DCMP2_ENA   0x0002 /* DCMP2_ENA */
 
#define WM831X_DCMP2_ENA_MASK   0x0002 /* DCMP2_ENA */
 
#define WM831X_DCMP2_ENA_SHIFT   1 /* DCMP2_ENA */
 
#define WM831X_DCMP2_ENA_WIDTH   1 /* DCMP2_ENA */
 
#define WM831X_DCMP1_ENA   0x0001 /* DCMP1_ENA */
 
#define WM831X_DCMP1_ENA_MASK   0x0001 /* DCMP1_ENA */
 
#define WM831X_DCMP1_ENA_SHIFT   0 /* DCMP1_ENA */
 
#define WM831X_DCMP1_ENA_WIDTH   1 /* DCMP1_ENA */
 
#define WM831X_DCMP1_SRC_MASK   0xE000 /* DCMP1_SRC - [15:13] */
 
#define WM831X_DCMP1_SRC_SHIFT   13 /* DCMP1_SRC - [15:13] */
 
#define WM831X_DCMP1_SRC_WIDTH   3 /* DCMP1_SRC - [15:13] */
 
#define WM831X_DCMP1_GT   0x1000 /* DCMP1_GT */
 
#define WM831X_DCMP1_GT_MASK   0x1000 /* DCMP1_GT */
 
#define WM831X_DCMP1_GT_SHIFT   12 /* DCMP1_GT */
 
#define WM831X_DCMP1_GT_WIDTH   1 /* DCMP1_GT */
 
#define WM831X_DCMP1_THR_MASK   0x0FFF /* DCMP1_THR - [11:0] */
 
#define WM831X_DCMP1_THR_SHIFT   0 /* DCMP1_THR - [11:0] */
 
#define WM831X_DCMP1_THR_WIDTH   12 /* DCMP1_THR - [11:0] */
 
#define WM831X_DCMP2_SRC_MASK   0xE000 /* DCMP2_SRC - [15:13] */
 
#define WM831X_DCMP2_SRC_SHIFT   13 /* DCMP2_SRC - [15:13] */
 
#define WM831X_DCMP2_SRC_WIDTH   3 /* DCMP2_SRC - [15:13] */
 
#define WM831X_DCMP2_GT   0x1000 /* DCMP2_GT */
 
#define WM831X_DCMP2_GT_MASK   0x1000 /* DCMP2_GT */
 
#define WM831X_DCMP2_GT_SHIFT   12 /* DCMP2_GT */
 
#define WM831X_DCMP2_GT_WIDTH   1 /* DCMP2_GT */
 
#define WM831X_DCMP2_THR_MASK   0x0FFF /* DCMP2_THR - [11:0] */
 
#define WM831X_DCMP2_THR_SHIFT   0 /* DCMP2_THR - [11:0] */
 
#define WM831X_DCMP2_THR_WIDTH   12 /* DCMP2_THR - [11:0] */
 
#define WM831X_DCMP3_SRC_MASK   0xE000 /* DCMP3_SRC - [15:13] */
 
#define WM831X_DCMP3_SRC_SHIFT   13 /* DCMP3_SRC - [15:13] */
 
#define WM831X_DCMP3_SRC_WIDTH   3 /* DCMP3_SRC - [15:13] */
 
#define WM831X_DCMP3_GT   0x1000 /* DCMP3_GT */
 
#define WM831X_DCMP3_GT_MASK   0x1000 /* DCMP3_GT */
 
#define WM831X_DCMP3_GT_SHIFT   12 /* DCMP3_GT */
 
#define WM831X_DCMP3_GT_WIDTH   1 /* DCMP3_GT */
 
#define WM831X_DCMP3_THR_MASK   0x0FFF /* DCMP3_THR - [11:0] */
 
#define WM831X_DCMP3_THR_SHIFT   0 /* DCMP3_THR - [11:0] */
 
#define WM831X_DCMP3_THR_WIDTH   12 /* DCMP3_THR - [11:0] */
 
#define WM831X_DCMP4_SRC_MASK   0xE000 /* DCMP4_SRC - [15:13] */
 
#define WM831X_DCMP4_SRC_SHIFT   13 /* DCMP4_SRC - [15:13] */
 
#define WM831X_DCMP4_SRC_WIDTH   3 /* DCMP4_SRC - [15:13] */
 
#define WM831X_DCMP4_GT   0x1000 /* DCMP4_GT */
 
#define WM831X_DCMP4_GT_MASK   0x1000 /* DCMP4_GT */
 
#define WM831X_DCMP4_GT_SHIFT   12 /* DCMP4_GT */
 
#define WM831X_DCMP4_GT_WIDTH   1 /* DCMP4_GT */
 
#define WM831X_DCMP4_THR_MASK   0x0FFF /* DCMP4_THR - [11:0] */
 
#define WM831X_DCMP4_THR_SHIFT   0 /* DCMP4_THR - [11:0] */
 
#define WM831X_DCMP4_THR_WIDTH   12 /* DCMP4_THR - [11:0] */
 
#define WM831X_AUX_CAL_FACTOR   0xfff
 
#define WM831X_AUX_CAL_NOMINAL   0x222
 

Enumerations

enum  wm831x_auxadc {
  WM831X_AUX_CAL = 15, WM831X_AUX_BKUP_BATT = 10, WM831X_AUX_WALL = 9, WM831X_AUX_BATT = 8,
  WM831X_AUX_USB = 7, WM831X_AUX_SYSVDD = 6, WM831X_AUX_BATT_TEMP = 5, WM831X_AUX_CHIP_TEMP = 4,
  WM831X_AUX_AUX4 = 3, WM831X_AUX_AUX3 = 2, WM831X_AUX_AUX2 = 1, WM831X_AUX_AUX1 = 0
}
 

Functions

int wm831x_auxadc_read (struct wm831x *wm831x, enum wm831x_auxadc input)
 
int wm831x_auxadc_read_uv (struct wm831x *wm831x, enum wm831x_auxadc input)
 

Macro Definition Documentation

#define WM831X_AUX_AUX1_SEL   0x0001 /* AUX_AUX1_SEL */

Definition at line 98 of file auxadc.h.

#define WM831X_AUX_AUX1_SEL_MASK   0x0001 /* AUX_AUX1_SEL */

Definition at line 99 of file auxadc.h.

#define WM831X_AUX_AUX1_SEL_SHIFT   0 /* AUX_AUX1_SEL */

Definition at line 100 of file auxadc.h.

#define WM831X_AUX_AUX1_SEL_WIDTH   1 /* AUX_AUX1_SEL */

Definition at line 101 of file auxadc.h.

#define WM831X_AUX_AUX2_SEL   0x0002 /* AUX_AUX2_SEL */

Definition at line 94 of file auxadc.h.

#define WM831X_AUX_AUX2_SEL_MASK   0x0002 /* AUX_AUX2_SEL */

Definition at line 95 of file auxadc.h.

#define WM831X_AUX_AUX2_SEL_SHIFT   1 /* AUX_AUX2_SEL */

Definition at line 96 of file auxadc.h.

#define WM831X_AUX_AUX2_SEL_WIDTH   1 /* AUX_AUX2_SEL */

Definition at line 97 of file auxadc.h.

#define WM831X_AUX_AUX3_SEL   0x0004 /* AUX_AUX3_SEL */

Definition at line 90 of file auxadc.h.

#define WM831X_AUX_AUX3_SEL_MASK   0x0004 /* AUX_AUX3_SEL */

Definition at line 91 of file auxadc.h.

#define WM831X_AUX_AUX3_SEL_SHIFT   2 /* AUX_AUX3_SEL */

Definition at line 92 of file auxadc.h.

#define WM831X_AUX_AUX3_SEL_WIDTH   1 /* AUX_AUX3_SEL */

Definition at line 93 of file auxadc.h.

#define WM831X_AUX_AUX4_SEL   0x0008 /* AUX_AUX4_SEL */

Definition at line 86 of file auxadc.h.

#define WM831X_AUX_AUX4_SEL_MASK   0x0008 /* AUX_AUX4_SEL */

Definition at line 87 of file auxadc.h.

#define WM831X_AUX_AUX4_SEL_SHIFT   3 /* AUX_AUX4_SEL */

Definition at line 88 of file auxadc.h.

#define WM831X_AUX_AUX4_SEL_WIDTH   1 /* AUX_AUX4_SEL */

Definition at line 89 of file auxadc.h.

#define WM831X_AUX_BATT_SEL   0x0100 /* AUX_BATT_SEL */

Definition at line 66 of file auxadc.h.

#define WM831X_AUX_BATT_SEL_MASK   0x0100 /* AUX_BATT_SEL */

Definition at line 67 of file auxadc.h.

#define WM831X_AUX_BATT_SEL_SHIFT   8 /* AUX_BATT_SEL */

Definition at line 68 of file auxadc.h.

#define WM831X_AUX_BATT_SEL_WIDTH   1 /* AUX_BATT_SEL */

Definition at line 69 of file auxadc.h.

#define WM831X_AUX_BATT_TEMP_SEL   0x0020 /* AUX_BATT_TEMP_SEL */

Definition at line 78 of file auxadc.h.

#define WM831X_AUX_BATT_TEMP_SEL_MASK   0x0020 /* AUX_BATT_TEMP_SEL */

Definition at line 79 of file auxadc.h.

#define WM831X_AUX_BATT_TEMP_SEL_SHIFT   5 /* AUX_BATT_TEMP_SEL */

Definition at line 80 of file auxadc.h.

#define WM831X_AUX_BATT_TEMP_SEL_WIDTH   1 /* AUX_BATT_TEMP_SEL */

Definition at line 81 of file auxadc.h.

#define WM831X_AUX_BKUP_BATT_SEL   0x0400 /* AUX_BKUP_BATT_SEL */

Definition at line 58 of file auxadc.h.

#define WM831X_AUX_BKUP_BATT_SEL_MASK   0x0400 /* AUX_BKUP_BATT_SEL */

Definition at line 59 of file auxadc.h.

#define WM831X_AUX_BKUP_BATT_SEL_SHIFT   10 /* AUX_BKUP_BATT_SEL */

Definition at line 60 of file auxadc.h.

#define WM831X_AUX_BKUP_BATT_SEL_WIDTH   1 /* AUX_BKUP_BATT_SEL */

Definition at line 61 of file auxadc.h.

#define WM831X_AUX_CAL_FACTOR   0xfff

Definition at line 195 of file auxadc.h.

#define WM831X_AUX_CAL_NOMINAL   0x222

Definition at line 196 of file auxadc.h.

#define WM831X_AUX_CAL_SEL   0x8000 /* AUX_CAL_SEL */

Definition at line 54 of file auxadc.h.

#define WM831X_AUX_CAL_SEL_MASK   0x8000 /* AUX_CAL_SEL */

Definition at line 55 of file auxadc.h.

#define WM831X_AUX_CAL_SEL_SHIFT   15 /* AUX_CAL_SEL */

Definition at line 56 of file auxadc.h.

#define WM831X_AUX_CAL_SEL_WIDTH   1 /* AUX_CAL_SEL */

Definition at line 57 of file auxadc.h.

#define WM831X_AUX_CHIP_TEMP_SEL   0x0010 /* AUX_CHIP_TEMP_SEL */

Definition at line 82 of file auxadc.h.

#define WM831X_AUX_CHIP_TEMP_SEL_MASK   0x0010 /* AUX_CHIP_TEMP_SEL */

Definition at line 83 of file auxadc.h.

#define WM831X_AUX_CHIP_TEMP_SEL_SHIFT   4 /* AUX_CHIP_TEMP_SEL */

Definition at line 84 of file auxadc.h.

#define WM831X_AUX_CHIP_TEMP_SEL_WIDTH   1 /* AUX_CHIP_TEMP_SEL */

Definition at line 85 of file auxadc.h.

#define WM831X_AUX_CVT_ENA   0x4000 /* AUX_CVT_ENA */

Definition at line 35 of file auxadc.h.

#define WM831X_AUX_CVT_ENA_MASK   0x4000 /* AUX_CVT_ENA */

Definition at line 36 of file auxadc.h.

#define WM831X_AUX_CVT_ENA_SHIFT   14 /* AUX_CVT_ENA */

Definition at line 37 of file auxadc.h.

#define WM831X_AUX_CVT_ENA_WIDTH   1 /* AUX_CVT_ENA */

Definition at line 38 of file auxadc.h.

#define WM831X_AUX_DATA_MASK   0x0FFF /* AUX_DATA - [11:0] */

Definition at line 24 of file auxadc.h.

#define WM831X_AUX_DATA_SHIFT   0 /* AUX_DATA - [11:0] */

Definition at line 25 of file auxadc.h.

#define WM831X_AUX_DATA_SRC_MASK   0xF000 /* AUX_DATA_SRC - [15:12] */

Definition at line 21 of file auxadc.h.

#define WM831X_AUX_DATA_SRC_SHIFT   12 /* AUX_DATA_SRC - [15:12] */

Definition at line 22 of file auxadc.h.

#define WM831X_AUX_DATA_SRC_WIDTH   4 /* AUX_DATA_SRC - [15:12] */

Definition at line 23 of file auxadc.h.

#define WM831X_AUX_DATA_WIDTH   12 /* AUX_DATA - [11:0] */

Definition at line 26 of file auxadc.h.

#define WM831X_AUX_ENA   0x8000 /* AUX_ENA */

Definition at line 31 of file auxadc.h.

#define WM831X_AUX_ENA_MASK   0x8000 /* AUX_ENA */

Definition at line 32 of file auxadc.h.

#define WM831X_AUX_ENA_SHIFT   15 /* AUX_ENA */

Definition at line 33 of file auxadc.h.

#define WM831X_AUX_ENA_WIDTH   1 /* AUX_ENA */

Definition at line 34 of file auxadc.h.

#define WM831X_AUX_FRC_ENA   0x0800 /* AUX_FRC_ENA */

Definition at line 43 of file auxadc.h.

#define WM831X_AUX_FRC_ENA_MASK   0x0800 /* AUX_FRC_ENA */

Definition at line 44 of file auxadc.h.

#define WM831X_AUX_FRC_ENA_SHIFT   11 /* AUX_FRC_ENA */

Definition at line 45 of file auxadc.h.

#define WM831X_AUX_FRC_ENA_WIDTH   1 /* AUX_FRC_ENA */

Definition at line 46 of file auxadc.h.

#define WM831X_AUX_RATE_MASK   0x003F /* AUX_RATE - [5:0] */

Definition at line 47 of file auxadc.h.

#define WM831X_AUX_RATE_SHIFT   0 /* AUX_RATE - [5:0] */

Definition at line 48 of file auxadc.h.

#define WM831X_AUX_RATE_WIDTH   6 /* AUX_RATE - [5:0] */

Definition at line 49 of file auxadc.h.

#define WM831X_AUX_SLPENA   0x1000 /* AUX_SLPENA */

Definition at line 39 of file auxadc.h.

#define WM831X_AUX_SLPENA_MASK   0x1000 /* AUX_SLPENA */

Definition at line 40 of file auxadc.h.

#define WM831X_AUX_SLPENA_SHIFT   12 /* AUX_SLPENA */

Definition at line 41 of file auxadc.h.

#define WM831X_AUX_SLPENA_WIDTH   1 /* AUX_SLPENA */

Definition at line 42 of file auxadc.h.

#define WM831X_AUX_SYSVDD_SEL   0x0040 /* AUX_SYSVDD_SEL */

Definition at line 74 of file auxadc.h.

#define WM831X_AUX_SYSVDD_SEL_MASK   0x0040 /* AUX_SYSVDD_SEL */

Definition at line 75 of file auxadc.h.

#define WM831X_AUX_SYSVDD_SEL_SHIFT   6 /* AUX_SYSVDD_SEL */

Definition at line 76 of file auxadc.h.

#define WM831X_AUX_SYSVDD_SEL_WIDTH   1 /* AUX_SYSVDD_SEL */

Definition at line 77 of file auxadc.h.

#define WM831X_AUX_USB_SEL   0x0080 /* AUX_USB_SEL */

Definition at line 70 of file auxadc.h.

#define WM831X_AUX_USB_SEL_MASK   0x0080 /* AUX_USB_SEL */

Definition at line 71 of file auxadc.h.

#define WM831X_AUX_USB_SEL_SHIFT   7 /* AUX_USB_SEL */

Definition at line 72 of file auxadc.h.

#define WM831X_AUX_USB_SEL_WIDTH   1 /* AUX_USB_SEL */

Definition at line 73 of file auxadc.h.

#define WM831X_AUX_WALL_SEL   0x0200 /* AUX_WALL_SEL */

Definition at line 62 of file auxadc.h.

#define WM831X_AUX_WALL_SEL_MASK   0x0200 /* AUX_WALL_SEL */

Definition at line 63 of file auxadc.h.

#define WM831X_AUX_WALL_SEL_SHIFT   9 /* AUX_WALL_SEL */

Definition at line 64 of file auxadc.h.

#define WM831X_AUX_WALL_SEL_WIDTH   1 /* AUX_WALL_SEL */

Definition at line 65 of file auxadc.h.

#define WM831X_DCMP1_ENA   0x0001 /* DCMP1_ENA */

Definition at line 134 of file auxadc.h.

#define WM831X_DCMP1_ENA_MASK   0x0001 /* DCMP1_ENA */

Definition at line 135 of file auxadc.h.

#define WM831X_DCMP1_ENA_SHIFT   0 /* DCMP1_ENA */

Definition at line 136 of file auxadc.h.

#define WM831X_DCMP1_ENA_WIDTH   1 /* DCMP1_ENA */

Definition at line 137 of file auxadc.h.

#define WM831X_DCMP1_GT   0x1000 /* DCMP1_GT */

Definition at line 145 of file auxadc.h.

#define WM831X_DCMP1_GT_MASK   0x1000 /* DCMP1_GT */

Definition at line 146 of file auxadc.h.

#define WM831X_DCMP1_GT_SHIFT   12 /* DCMP1_GT */

Definition at line 147 of file auxadc.h.

#define WM831X_DCMP1_GT_WIDTH   1 /* DCMP1_GT */

Definition at line 148 of file auxadc.h.

#define WM831X_DCMP1_SRC_MASK   0xE000 /* DCMP1_SRC - [15:13] */

Definition at line 142 of file auxadc.h.

#define WM831X_DCMP1_SRC_SHIFT   13 /* DCMP1_SRC - [15:13] */

Definition at line 143 of file auxadc.h.

#define WM831X_DCMP1_SRC_WIDTH   3 /* DCMP1_SRC - [15:13] */

Definition at line 144 of file auxadc.h.

#define WM831X_DCMP1_THR_MASK   0x0FFF /* DCMP1_THR - [11:0] */

Definition at line 149 of file auxadc.h.

#define WM831X_DCMP1_THR_SHIFT   0 /* DCMP1_THR - [11:0] */

Definition at line 150 of file auxadc.h.

#define WM831X_DCMP1_THR_WIDTH   12 /* DCMP1_THR - [11:0] */

Definition at line 151 of file auxadc.h.

#define WM831X_DCMP2_ENA   0x0002 /* DCMP2_ENA */

Definition at line 130 of file auxadc.h.

#define WM831X_DCMP2_ENA_MASK   0x0002 /* DCMP2_ENA */

Definition at line 131 of file auxadc.h.

#define WM831X_DCMP2_ENA_SHIFT   1 /* DCMP2_ENA */

Definition at line 132 of file auxadc.h.

#define WM831X_DCMP2_ENA_WIDTH   1 /* DCMP2_ENA */

Definition at line 133 of file auxadc.h.

#define WM831X_DCMP2_GT   0x1000 /* DCMP2_GT */

Definition at line 159 of file auxadc.h.

#define WM831X_DCMP2_GT_MASK   0x1000 /* DCMP2_GT */

Definition at line 160 of file auxadc.h.

#define WM831X_DCMP2_GT_SHIFT   12 /* DCMP2_GT */

Definition at line 161 of file auxadc.h.

#define WM831X_DCMP2_GT_WIDTH   1 /* DCMP2_GT */

Definition at line 162 of file auxadc.h.

#define WM831X_DCMP2_SRC_MASK   0xE000 /* DCMP2_SRC - [15:13] */

Definition at line 156 of file auxadc.h.

#define WM831X_DCMP2_SRC_SHIFT   13 /* DCMP2_SRC - [15:13] */

Definition at line 157 of file auxadc.h.

#define WM831X_DCMP2_SRC_WIDTH   3 /* DCMP2_SRC - [15:13] */

Definition at line 158 of file auxadc.h.

#define WM831X_DCMP2_THR_MASK   0x0FFF /* DCMP2_THR - [11:0] */

Definition at line 163 of file auxadc.h.

#define WM831X_DCMP2_THR_SHIFT   0 /* DCMP2_THR - [11:0] */

Definition at line 164 of file auxadc.h.

#define WM831X_DCMP2_THR_WIDTH   12 /* DCMP2_THR - [11:0] */

Definition at line 165 of file auxadc.h.

#define WM831X_DCMP3_ENA   0x0004 /* DCMP3_ENA */

Definition at line 126 of file auxadc.h.

#define WM831X_DCMP3_ENA_MASK   0x0004 /* DCMP3_ENA */

Definition at line 127 of file auxadc.h.

#define WM831X_DCMP3_ENA_SHIFT   2 /* DCMP3_ENA */

Definition at line 128 of file auxadc.h.

#define WM831X_DCMP3_ENA_WIDTH   1 /* DCMP3_ENA */

Definition at line 129 of file auxadc.h.

#define WM831X_DCMP3_GT   0x1000 /* DCMP3_GT */

Definition at line 173 of file auxadc.h.

#define WM831X_DCMP3_GT_MASK   0x1000 /* DCMP3_GT */

Definition at line 174 of file auxadc.h.

#define WM831X_DCMP3_GT_SHIFT   12 /* DCMP3_GT */

Definition at line 175 of file auxadc.h.

#define WM831X_DCMP3_GT_WIDTH   1 /* DCMP3_GT */

Definition at line 176 of file auxadc.h.

#define WM831X_DCMP3_SRC_MASK   0xE000 /* DCMP3_SRC - [15:13] */

Definition at line 170 of file auxadc.h.

#define WM831X_DCMP3_SRC_SHIFT   13 /* DCMP3_SRC - [15:13] */

Definition at line 171 of file auxadc.h.

#define WM831X_DCMP3_SRC_WIDTH   3 /* DCMP3_SRC - [15:13] */

Definition at line 172 of file auxadc.h.

#define WM831X_DCMP3_THR_MASK   0x0FFF /* DCMP3_THR - [11:0] */

Definition at line 177 of file auxadc.h.

#define WM831X_DCMP3_THR_SHIFT   0 /* DCMP3_THR - [11:0] */

Definition at line 178 of file auxadc.h.

#define WM831X_DCMP3_THR_WIDTH   12 /* DCMP3_THR - [11:0] */

Definition at line 179 of file auxadc.h.

#define WM831X_DCMP4_ENA   0x0008 /* DCMP4_ENA */

Definition at line 122 of file auxadc.h.

#define WM831X_DCMP4_ENA_MASK   0x0008 /* DCMP4_ENA */

Definition at line 123 of file auxadc.h.

#define WM831X_DCMP4_ENA_SHIFT   3 /* DCMP4_ENA */

Definition at line 124 of file auxadc.h.

#define WM831X_DCMP4_ENA_WIDTH   1 /* DCMP4_ENA */

Definition at line 125 of file auxadc.h.

#define WM831X_DCMP4_GT   0x1000 /* DCMP4_GT */

Definition at line 187 of file auxadc.h.

#define WM831X_DCMP4_GT_MASK   0x1000 /* DCMP4_GT */

Definition at line 188 of file auxadc.h.

#define WM831X_DCMP4_GT_SHIFT   12 /* DCMP4_GT */

Definition at line 189 of file auxadc.h.

#define WM831X_DCMP4_GT_WIDTH   1 /* DCMP4_GT */

Definition at line 190 of file auxadc.h.

#define WM831X_DCMP4_SRC_MASK   0xE000 /* DCMP4_SRC - [15:13] */

Definition at line 184 of file auxadc.h.

#define WM831X_DCMP4_SRC_SHIFT   13 /* DCMP4_SRC - [15:13] */

Definition at line 185 of file auxadc.h.

#define WM831X_DCMP4_SRC_WIDTH   3 /* DCMP4_SRC - [15:13] */

Definition at line 186 of file auxadc.h.

#define WM831X_DCMP4_THR_MASK   0x0FFF /* DCMP4_THR - [11:0] */

Definition at line 191 of file auxadc.h.

#define WM831X_DCMP4_THR_SHIFT   0 /* DCMP4_THR - [11:0] */

Definition at line 192 of file auxadc.h.

#define WM831X_DCMP4_THR_WIDTH   12 /* DCMP4_THR - [11:0] */

Definition at line 193 of file auxadc.h.

#define WM831X_DCOMP1_STS   0x0100 /* DCOMP1_STS */

Definition at line 118 of file auxadc.h.

#define WM831X_DCOMP1_STS_MASK   0x0100 /* DCOMP1_STS */

Definition at line 119 of file auxadc.h.

#define WM831X_DCOMP1_STS_SHIFT   8 /* DCOMP1_STS */

Definition at line 120 of file auxadc.h.

#define WM831X_DCOMP1_STS_WIDTH   1 /* DCOMP1_STS */

Definition at line 121 of file auxadc.h.

#define WM831X_DCOMP2_STS   0x0200 /* DCOMP2_STS */

Definition at line 114 of file auxadc.h.

#define WM831X_DCOMP2_STS_MASK   0x0200 /* DCOMP2_STS */

Definition at line 115 of file auxadc.h.

#define WM831X_DCOMP2_STS_SHIFT   9 /* DCOMP2_STS */

Definition at line 116 of file auxadc.h.

#define WM831X_DCOMP2_STS_WIDTH   1 /* DCOMP2_STS */

Definition at line 117 of file auxadc.h.

#define WM831X_DCOMP3_STS   0x0400 /* DCOMP3_STS */

Definition at line 110 of file auxadc.h.

#define WM831X_DCOMP3_STS_MASK   0x0400 /* DCOMP3_STS */

Definition at line 111 of file auxadc.h.

#define WM831X_DCOMP3_STS_SHIFT   10 /* DCOMP3_STS */

Definition at line 112 of file auxadc.h.

#define WM831X_DCOMP3_STS_WIDTH   1 /* DCOMP3_STS */

Definition at line 113 of file auxadc.h.

#define WM831X_DCOMP4_STS   0x0800 /* DCOMP4_STS */

Definition at line 106 of file auxadc.h.

#define WM831X_DCOMP4_STS_MASK   0x0800 /* DCOMP4_STS */

Definition at line 107 of file auxadc.h.

#define WM831X_DCOMP4_STS_SHIFT   11 /* DCOMP4_STS */

Definition at line 108 of file auxadc.h.

#define WM831X_DCOMP4_STS_WIDTH   1 /* DCOMP4_STS */

Definition at line 109 of file auxadc.h.

Enumeration Type Documentation

Enumerator:
WM831X_AUX_CAL 
WM831X_AUX_BKUP_BATT 
WM831X_AUX_WALL 
WM831X_AUX_BATT 
WM831X_AUX_USB 
WM831X_AUX_SYSVDD 
WM831X_AUX_BATT_TEMP 
WM831X_AUX_CHIP_TEMP 
WM831X_AUX_AUX4 
WM831X_AUX_AUX3 
WM831X_AUX_AUX2 
WM831X_AUX_AUX1 

Definition at line 198 of file auxadc.h.

Function Documentation

int wm831x_auxadc_read ( struct wm831x wm831x,
enum wm831x_auxadc  input 
)

wm831x_auxadc_read: Read a value from the WM831x AUXADC

: Device to read from. : AUXADC input to read.

Definition at line 250 of file wm831x-auxadc.c.

int wm831x_auxadc_read_uv ( struct wm831x wm831x,
enum wm831x_auxadc  input 
)

wm831x_auxadc_read_uv: Read a voltage from the WM831x AUXADC

: Device to read from. : AUXADC input to read.

Definition at line 262 of file wm831x-auxadc.c.