File ns_energy_monitor.h
FileList > includes-api > ns_energy_monitor.h
Go to the source code of this file
#include "am_bsp.h"
#include "am_mcu_apollo.h"
#include "am_util.h"
#include "ns_core.h"
#include "ns_ambiqsuite_harness.h"
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
The documentation for this class was generated from the following file neuralSPOT/neuralspot/ns-utils/includes-api/ns_energy_monitor.h