7 static const uint8_t ATM90E26_REGISTER_SOFTRESET = 0x00;
8 static const uint8_t ATM90E26_REGISTER_SYSSTATUS = 0x01;
9 static const uint8_t ATM90E26_REGISTER_FUNCEN = 0x02;
10 static const uint8_t ATM90E26_REGISTER_SAGTH = 0x03;
11 static const uint8_t ATM90E26_REGISTER_SMALLPMOD = 0x04;
12 static const uint8_t ATM90E26_REGISTER_LASTDATA = 0x06;
15 static const uint8_t ATM90E26_REGISTER_LSB = 0x08;
16 static const uint8_t ATM90E26_REGISTER_CALSTART = 0x20;
17 static const uint8_t ATM90E26_REGISTER_PLCONSTH = 0x21;
18 static const uint8_t ATM90E26_REGISTER_PLCONSTL = 0x22;
19 static const uint8_t ATM90E26_REGISTER_LGAIN = 0x23;
20 static const uint8_t ATM90E26_REGISTER_LPHI = 0x24;
21 static const uint8_t ATM90E26_REGISTER_NGAIN = 0x25;
22 static const uint8_t ATM90E26_REGISTER_NPHI = 0x26;
23 static const uint8_t ATM90E26_REGISTER_PSTARTTH = 0x27;
24 static const uint8_t ATM90E26_REGISTER_PNOLTH = 0x28;
25 static const uint8_t ATM90E26_REGISTER_QSTARTTH = 0x29;
26 static const uint8_t ATM90E26_REGISTER_QNOLTH = 0x2A;
27 static const uint8_t ATM90E26_REGISTER_MMODE = 0x2B;
28 static const uint8_t ATM90E26_REGISTER_CS1 = 0x2C;
31 static const uint8_t ATM90E26_REGISTER_ADJSTART = 0x30;
32 static const uint8_t ATM90E26_REGISTER_UGAIN = 0x31;
33 static const uint8_t ATM90E26_REGISTER_IGAINL = 0x32;
34 static const uint8_t ATM90E26_REGISTER_IGAINN = 0x33;
35 static const uint8_t ATM90E26_REGISTER_UOFFSET = 0x34;
36 static const uint8_t ATM90E26_REGISTER_IOFFSETL = 0x35;
37 static const uint8_t ATM90E26_REGISTER_IOFFSETN = 0x36;
38 static const uint8_t ATM90E26_REGISTER_POFFSETL = 0x37;
39 static const uint8_t ATM90E26_REGISTER_QOFFSETL = 0x38;
40 static const uint8_t ATM90E26_REGISTER_POFFSETN = 0x39;
41 static const uint8_t ATM90E26_REGISTER_QOFFSETN = 0x3A;
42 static const uint8_t ATM90E26_REGISTER_CS2 = 0x3B;
45 static const uint8_t ATM90E26_REGISTER_APENERGY = 0x40;
46 static const uint8_t ATM90E26_REGISTER_ANENERGY = 0x41;
47 static const uint8_t ATM90E26_REGISTER_ATENERGY = 0x42;
48 static const uint8_t ATM90E26_REGISTER_RPENERGY = 0x43;
49 static const uint8_t ATM90E26_REGISTER_RNENERG = 0x44;
50 static const uint8_t ATM90E26_REGISTER_RTENERGY = 0x45;
51 static const uint8_t ATM90E26_REGISTER_ENSTATUS = 0x46;
54 static const uint8_t ATM90E26_REGISTER_IRMS = 0x48;
55 static const uint8_t ATM90E26_REGISTER_URMS = 0x49;
56 static const uint8_t ATM90E26_REGISTER_PMEAN = 0x4A;
57 static const uint8_t ATM90E26_REGISTER_QMEAN = 0x4B;
58 static const uint8_t ATM90E26_REGISTER_FREQ = 0x4C;
59 static const uint8_t ATM90E26_REGISTER_POWERF = 0x4D;
60 static const uint8_t ATM90E26_REGISTER_PANGLE = 0x4E;
61 static const uint8_t ATM90E26_REGISTER_SMEAN = 0x4F;
62 static const uint8_t ATM90E26_REGISTER_IRMS2 = 0x68;
63 static const uint8_t ATM90E26_REGISTER_PMEAN2 = 0x6A;
64 static const uint8_t ATM90E26_REGISTER_QMEAN2 = 0x6B;
65 static const uint8_t ATM90E26_REGISTER_POWERF2 = 0x6D;
66 static const uint8_t ATM90E26_REGISTER_PANGLE2 = 0x6E;
67 static const uint8_t ATM90E26_REGISTER_SMEAN2 = 0x6F;
Implementation of SPI Controller mode.