Infuse-IoT SDK API 0.0.1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
Power validation API

Enumerations

enum  {
  VALIDATION_PWR_POWER_UP = 0 , VALIDATION_PWR_BATTERY_VOLTAGE = BIT(0) , VALIDATION_PWR_BATTERY_SOC = BIT(1) , VALIDATION_PWR_BATTERY_CURRENT = BIT(2) ,
  VALIDATION_PWR_BATTERY_TEMPERATURE = BIT(3)
}
 

Functions

int infuse_validation_pwr (const struct device *fuel_gauge, uint8_t flags)
 Validate the behaviour of a power sensors.
 

Detailed Description

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

#include <infuse/validation/pwr.h>

Enumerator
VALIDATION_PWR_POWER_UP 

Validate that fuel-gauge power up.

VALIDATION_PWR_BATTERY_VOLTAGE 

Check reported battery voltage.

VALIDATION_PWR_BATTERY_SOC 

Check reported battery charge percentage.

VALIDATION_PWR_BATTERY_CURRENT 

Check reported battery current.

VALIDATION_PWR_BATTERY_TEMPERATURE 

Check reported battery temperature.

Function Documentation

◆ infuse_validation_pwr()

int infuse_validation_pwr ( const struct device * fuel_gauge,
uint8_t flags )

#include <infuse/validation/pwr.h>

Validate the behaviour of a power sensors.

Parameters
fuel_gaugeDevice that implements the fuel-gauge API
flagsValidation tests to run
Return values
0On success
-errnoOn failure