Flying Silicon Sensor
pwrSupply.h
Go to the documentation of this file.
1
23#ifndef _PWRSUPPLY_H_
24#define _PWRSUPPLY_H_
25
26namespace PwrSupply {
27
28void reset(void);
29int isUsbConnected(void);
30int isBatPowered(void);
31int isBatDrained(void);
32int isUsbOnly(void);
33
34int isCharging(void);
35float getBatPct(void);
36float getBatVolt(void);
37
38void updateState(void);
39
40}
41
42#endif // _PWRSUPPLY_H_
float getBatPct(void)
Definition pwrSupply.cpp:69
int isCharging(void)
Definition pwrSupply.cpp:62
int isBatPowered(void)
void updateState(void)
int isUsbConnected(void)
Definition pwrSupply.cpp:85
void reset(void)
float getBatVolt(void)
Definition pwrSupply.cpp:77
int isBatDrained(void)
int isUsbOnly(void)
Definition pwrSupply.cpp:93