NHS31xx SW API

Detailed Description

The application can adapt the battery impedance check module to fit its use case through the use of diversity flags in the form of defines below. Safe defaults are chosen; to override the default settings, place the defines with their desired values in the application app_sel.h header file: the compiler will pick up your defines before parsing this file.

These flags may be overridden:

Macros

#define BATIMP_WAIT_TIME   10
 
#define BATIMP_USE_PIO3   0
 
#define BATIMP_USE_PIO7   0
 
#define BATIMP_USE_PIO10   1
 
#define BATIMP_USE_PIO11   1
 

Macro Definition Documentation

◆ BATIMP_WAIT_TIME

#define BATIMP_WAIT_TIME   10

Time in milliseconds to wait each time after changing the current DAC quiescent, before checking the BOD. Determines the maximum time it takes for BatImp_Check to complete.

  • 1 pin enabled: 4 * BATIMP_WAIT_TIME
  • 2 pins enabled: 10 * BATIMP_WAIT_TIME
  • 3 pins enabled: 20 * BATIMP_WAIT_TIME
  • 4 pins enabled: 35 * BATIMP_WAIT_TIME
    Note
    The choice of pins that can be used in this module depends on your layout.

◆ BATIMP_USE_PIO3

#define BATIMP_USE_PIO3   0

Enabling more pins for use in the battery impedance check module allows for a more complete check.

Note
The choice of pins that can be used in this module depends on your layout.

◆ BATIMP_USE_PIO7

#define BATIMP_USE_PIO7   0

Enabling more pins for use in the battery impedance check module allows for a more complete check.

Note
The choice of pins that can be used in this module depends on your layout.

◆ BATIMP_USE_PIO10

#define BATIMP_USE_PIO10   1

Enabling more pins for use in the battery impedance check module allows for a more complete check.

Note
The choice of pins that can be used in this module depends on your layout.
Take care when enabling this, as a possible ongoing debugging session will loose its connection when used.

◆ BATIMP_USE_PIO11

#define BATIMP_USE_PIO11   1

Enabling more pins for use in the battery impedance check module allows for a more complete check.

Note
The choice of pins that can be used in this module depends on your layout.
Take care when enabling this, as a possible ongoing debugging session will loose its connection when used.