forked from whatnick/ADE7816_Arduino
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathADE7816.cpp
More file actions
26 lines (21 loc) · 673 Bytes
/
ADE7816.cpp
File metadata and controls
26 lines (21 loc) · 673 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*************************************************************/
/* Shared base class implementation for both SPI and I2C */
/* modes of the ADE7816 IC. */
/*************************************************************/
#include "ADE7816.h"
int ADE7816::init()
{
int cal_result = writeCalConstants();
int config_result = writeMultipleRegisters();
return (cal_result + config_result);
}
int ADE7816::writeCalConstants()
{
// TODO: Hardcode and batch write calibration constants
return 0;
}
int ADE7816::writeMultipleRegisters()
{
// TODO: Hardcode and batch write config writeMultipleRegisters
return 0;
}