nrfcxx  0.1.0
C++-17 Framework for Nordic nRF5 Devices
Data Structures | Namespaces | Functions
utils.hpp File Reference

Functions and data structures for unit conversion and other sensor-related operations. More...

#include <array>
#include <cinttypes>
#include <type_traits>

Go to the source code of this file.

Data Structures

struct  nrfcxx::sensor::battery_level_point_type
 A point in a battery discharge curve sequence. More...
 

Namespaces

 nrfcxx
 Primary namespace for nrfcxx functionality.
 
 nrfcxx::sensor
 Namespace for abstractions of various sensors.
 

Functions

int nrfcxx::sensor::temperature_cK_cCel (int t_cK)
 Convert a temperature from cK to cCel. More...
 
unsigned int nrfcxx::sensor::battery_level_pptt (unsigned int batt_mV, const battery_level_point_type *curve)
 Calculate the estimated battery level based on a measured voltage. More...
 

Detailed Description

Functions and data structures for unit conversion and other sensor-related operations.