Group ns-energy-monitor
Public Functions
Type | Name |
---|---|
void | ns_init_power_monitor_state (void) Configure GPIO, then initialize to NS_IDLE. |
void | ns_set_power_monitor_state (uint8_t state) Set GPIOs to indicate current state. |
Macros
Type | Name |
---|---|
define | NS_DATA_COLLECTION 1 |
define | NS_FEATURE_EXTRACTION 2 |
define | NS_IDLE 0 |
define | NS_INFERING 3 |
define | NS_POWER_MONITOR_GPIO_0 22 |
define | NS_POWER_MONITOR_GPIO_1 23 |
Public Functions Documentation
function ns_init_power_monitor_state
void ns_init_power_monitor_state (
void
)
function ns_set_power_monitor_state
Set GPIOs to indicate current state.
void ns_set_power_monitor_state (
uint8_t state
)
Parameters:
state
Macro Definition Documentation
define NS_DATA_COLLECTION
#define NS_DATA_COLLECTION 1
define NS_FEATURE_EXTRACTION
#define NS_FEATURE_EXTRACTION 2
define NS_IDLE
#define NS_IDLE 0
define NS_INFERING
#define NS_INFERING 3
define NS_POWER_MONITOR_GPIO_0
#define NS_POWER_MONITOR_GPIO_0 22
define NS_POWER_MONITOR_GPIO_1
#define NS_POWER_MONITOR_GPIO_1 23