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

Go to the source code of this file.

Data Structures

struct  ade7758_state
 

Macros

#define ADE7758_AWATTHR   0x01
 
#define ADE7758_BWATTHR   0x02
 
#define ADE7758_CWATTHR   0x03
 
#define ADE7758_AVARHR   0x04
 
#define ADE7758_BVARHR   0x05
 
#define ADE7758_CVARHR   0x06
 
#define ADE7758_AVAHR   0x07
 
#define ADE7758_BVAHR   0x08
 
#define ADE7758_CVAHR   0x09
 
#define ADE7758_AIRMS   0x0A
 
#define ADE7758_BIRMS   0x0B
 
#define ADE7758_CIRMS   0x0C
 
#define ADE7758_AVRMS   0x0D
 
#define ADE7758_BVRMS   0x0E
 
#define ADE7758_CVRMS   0x0F
 
#define ADE7758_FREQ   0x10
 
#define ADE7758_TEMP   0x11
 
#define ADE7758_WFORM   0x12
 
#define ADE7758_OPMODE   0x13
 
#define ADE7758_MMODE   0x14
 
#define ADE7758_WAVMODE   0x15
 
#define ADE7758_COMPMODE   0x16
 
#define ADE7758_LCYCMODE   0x17
 
#define ADE7758_MASK   0x18
 
#define ADE7758_STATUS   0x19
 
#define ADE7758_RSTATUS   0x1A
 
#define ADE7758_ZXTOUT   0x1B
 
#define ADE7758_LINECYC   0x1C
 
#define ADE7758_SAGCYC   0x1D
 
#define ADE7758_SAGLVL   0x1E
 
#define ADE7758_VPINTLVL   0x1F
 
#define ADE7758_IPINTLVL   0x20
 
#define ADE7758_VPEAK   0x21
 
#define ADE7758_IPEAK   0x22
 
#define ADE7758_GAIN   0x23
 
#define ADE7758_AVRMSGAIN   0x24
 
#define ADE7758_BVRMSGAIN   0x25
 
#define ADE7758_CVRMSGAIN   0x26
 
#define ADE7758_AIGAIN   0x27
 
#define ADE7758_BIGAIN   0x28
 
#define ADE7758_CIGAIN   0x29
 
#define ADE7758_AWG   0x2A
 
#define ADE7758_BWG   0x2B
 
#define ADE7758_CWG   0x2C
 
#define ADE7758_AVARG   0x2D
 
#define ADE7758_BVARG   0x2E
 
#define ADE7758_CVARG   0x2F
 
#define ADE7758_AVAG   0x30
 
#define ADE7758_BVAG   0x31
 
#define ADE7758_CVAG   0x32
 
#define ADE7758_AVRMSOS   0x33
 
#define ADE7758_BVRMSOS   0x34
 
#define ADE7758_CVRMSOS   0x35
 
#define ADE7758_AIRMSOS   0x36
 
#define ADE7758_BIRMSOS   0x37
 
#define ADE7758_CIRMSOS   0x38
 
#define ADE7758_AWAITOS   0x39
 
#define ADE7758_BWAITOS   0x3A
 
#define ADE7758_CWAITOS   0x3B
 
#define ADE7758_AVAROS   0x3C
 
#define ADE7758_BVAROS   0x3D
 
#define ADE7758_CVAROS   0x3E
 
#define ADE7758_APHCAL   0x3F
 
#define ADE7758_BPHCAL   0x40
 
#define ADE7758_CPHCAL   0x41
 
#define ADE7758_WDIV   0x42
 
#define ADE7758_VADIV   0x44
 
#define ADE7758_VARDIV   0x43
 
#define ADE7758_APCFNUM   0x45
 
#define ADE7758_APCFDEN   0x46
 
#define ADE7758_VARCFNUM   0x47
 
#define ADE7758_VARCFDEN   0x48
 
#define ADE7758_CHKSUM   0x7E
 
#define ADE7758_VERSION   0x7F
 
#define ADE7758_READ_REG(a)   a
 
#define ADE7758_WRITE_REG(a)   ((a) | 0x80)
 
#define ADE7758_MAX_TX   8
 
#define ADE7758_MAX_RX   4
 
#define ADE7758_STARTUP_DELAY   1
 
#define AD7758_NUM_WAVSEL   5
 
#define AD7758_NUM_PHSEL   3
 
#define AD7758_NUM_WAVESRC   (AD7758_NUM_WAVSEL * AD7758_NUM_PHSEL)
 
#define AD7758_PHASE_A   0
 
#define AD7758_PHASE_B   1
 
#define AD7758_PHASE_C   2
 
#define AD7758_CURRENT   0
 
#define AD7758_VOLTAGE   1
 
#define AD7758_ACT_PWR   2
 
#define AD7758_REACT_PWR   3
 
#define AD7758_APP_PWR   4
 
#define AD7758_WT(p, w)   (((w) << 2) | (p))
 
#define DRIVER_NAME   "ade7758"
 

Macro Definition Documentation

#define AD7758_ACT_PWR   2

Definition at line 103 of file ade7758.h.

#define AD7758_APP_PWR   4

Definition at line 105 of file ade7758.h.

#define AD7758_CURRENT   0

Definition at line 101 of file ade7758.h.

#define AD7758_NUM_PHSEL   3

Definition at line 95 of file ade7758.h.

#define AD7758_NUM_WAVESRC   (AD7758_NUM_WAVSEL * AD7758_NUM_PHSEL)

Definition at line 96 of file ade7758.h.

#define AD7758_NUM_WAVSEL   5

Definition at line 94 of file ade7758.h.

#define AD7758_PHASE_A   0

Definition at line 98 of file ade7758.h.

#define AD7758_PHASE_B   1

Definition at line 99 of file ade7758.h.

#define AD7758_PHASE_C   2

Definition at line 100 of file ade7758.h.

#define AD7758_REACT_PWR   3

Definition at line 104 of file ade7758.h.

#define AD7758_VOLTAGE   1

Definition at line 102 of file ade7758.h.

#define AD7758_WT (   p,
  w 
)    (((w) << 2) | (p))

Definition at line 106 of file ade7758.h.

#define ADE7758_AIGAIN   0x27

Definition at line 50 of file ade7758.h.

#define ADE7758_AIRMS   0x0A

Definition at line 21 of file ade7758.h.

#define ADE7758_AIRMSOS   0x36

Definition at line 65 of file ade7758.h.

#define ADE7758_APCFDEN   0x46

Definition at line 81 of file ade7758.h.

#define ADE7758_APCFNUM   0x45

Definition at line 80 of file ade7758.h.

#define ADE7758_APHCAL   0x3F

Definition at line 74 of file ade7758.h.

#define ADE7758_AVAG   0x30

Definition at line 59 of file ade7758.h.

#define ADE7758_AVAHR   0x07

Definition at line 18 of file ade7758.h.

#define ADE7758_AVARG   0x2D

Definition at line 56 of file ade7758.h.

#define ADE7758_AVARHR   0x04

Definition at line 15 of file ade7758.h.

#define ADE7758_AVAROS   0x3C

Definition at line 71 of file ade7758.h.

#define ADE7758_AVRMS   0x0D

Definition at line 24 of file ade7758.h.

#define ADE7758_AVRMSGAIN   0x24

Definition at line 47 of file ade7758.h.

#define ADE7758_AVRMSOS   0x33

Definition at line 62 of file ade7758.h.

#define ADE7758_AWAITOS   0x39

Definition at line 68 of file ade7758.h.

#define ADE7758_AWATTHR   0x01

Definition at line 12 of file ade7758.h.

#define ADE7758_AWG   0x2A

Definition at line 53 of file ade7758.h.

#define ADE7758_BIGAIN   0x28

Definition at line 51 of file ade7758.h.

#define ADE7758_BIRMS   0x0B

Definition at line 22 of file ade7758.h.

#define ADE7758_BIRMSOS   0x37

Definition at line 66 of file ade7758.h.

#define ADE7758_BPHCAL   0x40

Definition at line 75 of file ade7758.h.

#define ADE7758_BVAG   0x31

Definition at line 60 of file ade7758.h.

#define ADE7758_BVAHR   0x08

Definition at line 19 of file ade7758.h.

#define ADE7758_BVARG   0x2E

Definition at line 57 of file ade7758.h.

#define ADE7758_BVARHR   0x05

Definition at line 16 of file ade7758.h.

#define ADE7758_BVAROS   0x3D

Definition at line 72 of file ade7758.h.

#define ADE7758_BVRMS   0x0E

Definition at line 25 of file ade7758.h.

#define ADE7758_BVRMSGAIN   0x25

Definition at line 48 of file ade7758.h.

#define ADE7758_BVRMSOS   0x34

Definition at line 63 of file ade7758.h.

#define ADE7758_BWAITOS   0x3A

Definition at line 69 of file ade7758.h.

#define ADE7758_BWATTHR   0x02

Definition at line 13 of file ade7758.h.

#define ADE7758_BWG   0x2B

Definition at line 54 of file ade7758.h.

#define ADE7758_CHKSUM   0x7E

Definition at line 84 of file ade7758.h.

#define ADE7758_CIGAIN   0x29

Definition at line 52 of file ade7758.h.

#define ADE7758_CIRMS   0x0C

Definition at line 23 of file ade7758.h.

#define ADE7758_CIRMSOS   0x38

Definition at line 67 of file ade7758.h.

#define ADE7758_COMPMODE   0x16

Definition at line 33 of file ade7758.h.

#define ADE7758_CPHCAL   0x41

Definition at line 76 of file ade7758.h.

#define ADE7758_CVAG   0x32

Definition at line 61 of file ade7758.h.

#define ADE7758_CVAHR   0x09

Definition at line 20 of file ade7758.h.

#define ADE7758_CVARG   0x2F

Definition at line 58 of file ade7758.h.

#define ADE7758_CVARHR   0x06

Definition at line 17 of file ade7758.h.

#define ADE7758_CVAROS   0x3E

Definition at line 73 of file ade7758.h.

#define ADE7758_CVRMS   0x0F

Definition at line 26 of file ade7758.h.

#define ADE7758_CVRMSGAIN   0x26

Definition at line 49 of file ade7758.h.

#define ADE7758_CVRMSOS   0x35

Definition at line 64 of file ade7758.h.

#define ADE7758_CWAITOS   0x3B

Definition at line 70 of file ade7758.h.

#define ADE7758_CWATTHR   0x03

Definition at line 14 of file ade7758.h.

#define ADE7758_CWG   0x2C

Definition at line 55 of file ade7758.h.

#define ADE7758_FREQ   0x10

Definition at line 27 of file ade7758.h.

#define ADE7758_GAIN   0x23

Definition at line 46 of file ade7758.h.

#define ADE7758_IPEAK   0x22

Definition at line 45 of file ade7758.h.

#define ADE7758_IPINTLVL   0x20

Definition at line 43 of file ade7758.h.

#define ADE7758_LCYCMODE   0x17

Definition at line 34 of file ade7758.h.

#define ADE7758_LINECYC   0x1C

Definition at line 39 of file ade7758.h.

#define ADE7758_MASK   0x18

Definition at line 35 of file ade7758.h.

#define ADE7758_MAX_RX   4

Definition at line 91 of file ade7758.h.

#define ADE7758_MAX_TX   8

Definition at line 90 of file ade7758.h.

#define ADE7758_MMODE   0x14

Definition at line 31 of file ade7758.h.

#define ADE7758_OPMODE   0x13

Definition at line 30 of file ade7758.h.

#define ADE7758_READ_REG (   a)    a

Definition at line 87 of file ade7758.h.

#define ADE7758_RSTATUS   0x1A

Definition at line 37 of file ade7758.h.

#define ADE7758_SAGCYC   0x1D

Definition at line 40 of file ade7758.h.

#define ADE7758_SAGLVL   0x1E

Definition at line 41 of file ade7758.h.

#define ADE7758_STARTUP_DELAY   1

Definition at line 92 of file ade7758.h.

#define ADE7758_STATUS   0x19

Definition at line 36 of file ade7758.h.

#define ADE7758_TEMP   0x11

Definition at line 28 of file ade7758.h.

#define ADE7758_VADIV   0x44

Definition at line 78 of file ade7758.h.

#define ADE7758_VARCFDEN   0x48

Definition at line 83 of file ade7758.h.

#define ADE7758_VARCFNUM   0x47

Definition at line 82 of file ade7758.h.

#define ADE7758_VARDIV   0x43

Definition at line 79 of file ade7758.h.

#define ADE7758_VERSION   0x7F

Definition at line 85 of file ade7758.h.

#define ADE7758_VPEAK   0x21

Definition at line 44 of file ade7758.h.

#define ADE7758_VPINTLVL   0x1F

Definition at line 42 of file ade7758.h.

#define ADE7758_WAVMODE   0x15

Definition at line 32 of file ade7758.h.

#define ADE7758_WDIV   0x42

Definition at line 77 of file ade7758.h.

#define ADE7758_WFORM   0x12

Definition at line 29 of file ade7758.h.

#define ADE7758_WRITE_REG (   a)    ((a) | 0x80)

Definition at line 88 of file ade7758.h.

#define ADE7758_ZXTOUT   0x1B

Definition at line 38 of file ade7758.h.

#define DRIVER_NAME   "ade7758"

Definition at line 108 of file ade7758.h.