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