Skip to main content

embedded_batteries/
lib.rs

1#![doc = include_str!("../README.md")]
2#![no_std]
3#![warn(missing_docs)]
4
5// Shared types
6
7/// Charging current is measured in milliamps, where 1mA is 1
8pub type MilliAmps = u16;
9
10/// Charging voltage is measured in millivolts, where 1mV is 1
11pub type MilliVolts = u16;
12
13/// Charging current is measured in milliamps, where 1mA is 1
14pub type MilliAmpsSigned = i16;
15
16/// Charging voltage is measured in millivolts, where 1mV is 1
17pub type MilliVoltsSigned = i16;
18
19/// Blocking Smart Battery Charger module
20pub mod charger;
21
22/// Blocking Smart Battery module
23pub mod smart_battery;
24
25/// Advanced Configuration and Power Interface (ACPI)
26/// Power Source and Power Meter Devices module
27pub mod acpi;