Skip to content

File ns_power_profile.h

FileList > includes-api > ns_power_profile.h

Go to the source code of this file

Functions to aid power profiling and debugging.

  • #include "am_bsp.h"
  • #include "am_mcu_apollo.h"
  • #include "am_util.h"
  • #include <stdbool.h>
  • #include <stdint.h>

Classes

Type Name
struct am_bsp_pp_b1_t
struct am_bsp_pp_b2_t
struct am_bsp_pp_b3_t
struct am_bsp_pp_b4_t

Public Functions

Type Name
void ns_pp_snapshot (bool bDebug, uint32_t uNumber)
void ns_print_JSON ()
Prints the filled up JSON to serial port.

Macros

Type Name
define AI0 (*(volatile uint32_t *)0x400401FC)
define AI1 (*(volatile uint32_t *)0x400400F8)
define AI2 (*(volatile uint32_t *)0x40040144)
define AI3 (*(volatile uint32_t *)0x40040278)

Public Functions Documentation

function ns_pp_snapshot

void ns_pp_snapshot (
    bool bDebug,
    uint32_t uNumber
) 

function ns_print_JSON

Prints the filled up JSON to serial port.

void ns_print_JSON () 

Parameters:

  • void

This function will print filled JSON fields to serial port.

Note:

  • before use this function, make sure the UART or SWO is enabled

Returns:

None

Macro Definition Documentation

define AI0

#define AI0 (*(volatile uint32_t *)0x400401FC)

define AI1

#define AI1 (*(volatile uint32_t *)0x400400F8)

define AI2

#define AI2 (*(volatile uint32_t *)0x40040144)

define AI3

#define AI3 (*(volatile uint32_t *)0x40040278)

The documentation for this class was generated from the following file neuralSPOT/neuralspot/ns-utils/includes-api/ns_power_profile.h