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

Go to the source code of this file.

Data Structures

struct  ade7753_state
 

Macros

#define ADE7753_WAVEFORM   0x01
 
#define ADE7753_AENERGY   0x02
 
#define ADE7753_RAENERGY   0x03
 
#define ADE7753_LAENERGY   0x04
 
#define ADE7753_VAENERGY   0x05
 
#define ADE7753_RVAENERGY   0x06
 
#define ADE7753_LVAENERGY   0x07
 
#define ADE7753_LVARENERGY   0x08
 
#define ADE7753_MODE   0x09
 
#define ADE7753_IRQEN   0x0A
 
#define ADE7753_STATUS   0x0B
 
#define ADE7753_RSTSTATUS   0x0C
 
#define ADE7753_CH1OS   0x0D
 
#define ADE7753_CH2OS   0x0E
 
#define ADE7753_GAIN   0x0F
 
#define ADE7753_PHCAL   0x10
 
#define ADE7753_APOS   0x11
 
#define ADE7753_WGAIN   0x12
 
#define ADE7753_WDIV   0x13
 
#define ADE7753_CFNUM   0x14
 
#define ADE7753_CFDEN   0x15
 
#define ADE7753_IRMS   0x16
 
#define ADE7753_VRMS   0x17
 
#define ADE7753_IRMSOS   0x18
 
#define ADE7753_VRMSOS   0x19
 
#define ADE7753_VAGAIN   0x1A
 
#define ADE7753_VADIV   0x1B
 
#define ADE7753_LINECYC   0x1C
 
#define ADE7753_ZXTOUT   0x1D
 
#define ADE7753_SAGCYC   0x1E
 
#define ADE7753_SAGLVL   0x1F
 
#define ADE7753_IPKLVL   0x20
 
#define ADE7753_VPKLVL   0x21
 
#define ADE7753_IPEAK   0x22
 
#define ADE7753_RSTIPEAK   0x23
 
#define ADE7753_VPEAK   0x24
 
#define ADE7753_RSTVPEAK   0x25
 
#define ADE7753_TEMP   0x26
 
#define ADE7753_PERIOD   0x27
 
#define ADE7753_TMODE   0x3D
 
#define ADE7753_CHKSUM   0x3E
 
#define ADE7753_DIEREV   0x3F
 
#define ADE7753_READ_REG(a)   a
 
#define ADE7753_WRITE_REG(a)   ((a) | 0x80)
 
#define ADE7753_MAX_TX   4
 
#define ADE7753_MAX_RX   4
 
#define ADE7753_STARTUP_DELAY   1
 
#define ADE7753_SPI_SLOW   (u32)(300 * 1000)
 
#define ADE7753_SPI_BURST   (u32)(1000 * 1000)
 
#define ADE7753_SPI_FAST   (u32)(2000 * 1000)
 
#define DRIVER_NAME   "ade7753"
 

Macro Definition Documentation

#define ADE7753_AENERGY   0x02

Definition at line 5 of file ade7753.h.

#define ADE7753_APOS   0x11

Definition at line 20 of file ade7753.h.

#define ADE7753_CFDEN   0x15

Definition at line 24 of file ade7753.h.

#define ADE7753_CFNUM   0x14

Definition at line 23 of file ade7753.h.

#define ADE7753_CH1OS   0x0D

Definition at line 16 of file ade7753.h.

#define ADE7753_CH2OS   0x0E

Definition at line 17 of file ade7753.h.

#define ADE7753_CHKSUM   0x3E

Definition at line 44 of file ade7753.h.

#define ADE7753_DIEREV   0x3F

Definition at line 45 of file ade7753.h.

#define ADE7753_GAIN   0x0F

Definition at line 18 of file ade7753.h.

#define ADE7753_IPEAK   0x22

Definition at line 37 of file ade7753.h.

#define ADE7753_IPKLVL   0x20

Definition at line 35 of file ade7753.h.

#define ADE7753_IRMS   0x16

Definition at line 25 of file ade7753.h.

#define ADE7753_IRMSOS   0x18

Definition at line 27 of file ade7753.h.

#define ADE7753_IRQEN   0x0A

Definition at line 13 of file ade7753.h.

#define ADE7753_LAENERGY   0x04

Definition at line 7 of file ade7753.h.

#define ADE7753_LINECYC   0x1C

Definition at line 31 of file ade7753.h.

#define ADE7753_LVAENERGY   0x07

Definition at line 10 of file ade7753.h.

#define ADE7753_LVARENERGY   0x08

Definition at line 11 of file ade7753.h.

#define ADE7753_MAX_RX   4

Definition at line 51 of file ade7753.h.

#define ADE7753_MAX_TX   4

Definition at line 50 of file ade7753.h.

#define ADE7753_MODE   0x09

Definition at line 12 of file ade7753.h.

#define ADE7753_PERIOD   0x27

Definition at line 42 of file ade7753.h.

#define ADE7753_PHCAL   0x10

Definition at line 19 of file ade7753.h.

#define ADE7753_RAENERGY   0x03

Definition at line 6 of file ade7753.h.

#define ADE7753_READ_REG (   a)    a

Definition at line 47 of file ade7753.h.

#define ADE7753_RSTIPEAK   0x23

Definition at line 38 of file ade7753.h.

#define ADE7753_RSTSTATUS   0x0C

Definition at line 15 of file ade7753.h.

#define ADE7753_RSTVPEAK   0x25

Definition at line 40 of file ade7753.h.

#define ADE7753_RVAENERGY   0x06

Definition at line 9 of file ade7753.h.

#define ADE7753_SAGCYC   0x1E

Definition at line 33 of file ade7753.h.

#define ADE7753_SAGLVL   0x1F

Definition at line 34 of file ade7753.h.

#define ADE7753_SPI_BURST   (u32)(1000 * 1000)

Definition at line 55 of file ade7753.h.

#define ADE7753_SPI_FAST   (u32)(2000 * 1000)

Definition at line 56 of file ade7753.h.

#define ADE7753_SPI_SLOW   (u32)(300 * 1000)

Definition at line 54 of file ade7753.h.

#define ADE7753_STARTUP_DELAY   1

Definition at line 52 of file ade7753.h.

#define ADE7753_STATUS   0x0B

Definition at line 14 of file ade7753.h.

#define ADE7753_TEMP   0x26

Definition at line 41 of file ade7753.h.

#define ADE7753_TMODE   0x3D

Definition at line 43 of file ade7753.h.

#define ADE7753_VADIV   0x1B

Definition at line 30 of file ade7753.h.

#define ADE7753_VAENERGY   0x05

Definition at line 8 of file ade7753.h.

#define ADE7753_VAGAIN   0x1A

Definition at line 29 of file ade7753.h.

#define ADE7753_VPEAK   0x24

Definition at line 39 of file ade7753.h.

#define ADE7753_VPKLVL   0x21

Definition at line 36 of file ade7753.h.

#define ADE7753_VRMS   0x17

Definition at line 26 of file ade7753.h.

#define ADE7753_VRMSOS   0x19

Definition at line 28 of file ade7753.h.

#define ADE7753_WAVEFORM   0x01

Definition at line 4 of file ade7753.h.

#define ADE7753_WDIV   0x13

Definition at line 22 of file ade7753.h.

#define ADE7753_WGAIN   0x12

Definition at line 21 of file ade7753.h.

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

Definition at line 48 of file ade7753.h.

#define ADE7753_ZXTOUT   0x1D

Definition at line 32 of file ade7753.h.

#define DRIVER_NAME   "ade7753"

Definition at line 58 of file ade7753.h.