Numworks Epsilon  1.4.1
Graphing Calculator Operating System
Ion::Battery::Device Namespace Reference

Functions

void init ()
 
void initGPIO ()
 
void shutdown ()
 
void initADC ()
 

Variables

constexpr GPIO ChargingGPIO = GPIOA
 
constexpr uint8_t ChargingPin = 0
 
constexpr GPIO ADCGPIO = GPIOA
 
constexpr uint8_t ADCPin = 1
 
constexpr uint8_t ADCChannel = 1
 
constexpr float ADCReferenceVoltage = 2.8f
 
constexpr float ADCDividerBridgeRatio = 2.0f
 

Function Documentation

◆ init()

void Ion::Battery::Device::init ( )

Definition at line 50 of file battery.cpp.

◆ initADC()

void Ion::Battery::Device::initADC ( )

◆ initGPIO()

void Ion::Battery::Device::initGPIO ( )

Definition at line 67 of file battery.cpp.

◆ shutdown()

void Ion::Battery::Device::shutdown ( )

Definition at line 77 of file battery.cpp.

Variable Documentation

◆ ADCChannel

constexpr uint8_t Ion::Battery::Device::ADCChannel = 1

Definition at line 26 of file battery.h.

◆ ADCDividerBridgeRatio

constexpr float Ion::Battery::Device::ADCDividerBridgeRatio = 2.0f

Definition at line 29 of file battery.h.

◆ ADCGPIO

constexpr GPIO Ion::Battery::Device::ADCGPIO = GPIOA

Definition at line 24 of file battery.h.

◆ ADCPin

constexpr uint8_t Ion::Battery::Device::ADCPin = 1

Definition at line 25 of file battery.h.

◆ ADCReferenceVoltage

constexpr float Ion::Battery::Device::ADCReferenceVoltage = 2.8f

Definition at line 28 of file battery.h.

◆ ChargingGPIO

constexpr GPIO Ion::Battery::Device::ChargingGPIO = GPIOA

Definition at line 21 of file battery.h.

◆ ChargingPin

constexpr uint8_t Ion::Battery::Device::ChargingPin = 0

Definition at line 22 of file battery.h.