File ns_energy_monitor.c
FileList > neuralSPOT > neuralspot > ns-utils > src > ns_energy_monitor.c
Go to the source code of this file
#include "ns_energy_monitor.h"#include "am_bsp.h"#include "am_mcu_apollo.h"#include "am_util.h"#include "ns_ambiqsuite_harness.h"
Public Static Attributes
| Type | Name |
|---|---|
| bool | g_ns_power_monitor_enabled = false |
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. |
Public Static Attributes Documentation
variable g_ns_power_monitor_enabled
bool g_ns_power_monitor_enabled;
Public Functions Documentation
function ns_init_power_monitor_state
Configure GPIO, then initialize to NS_IDLE.
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
The documentation for this class was generated from the following file neuralSPOT/neuralspot/ns-utils/src/ns_energy_monitor.c