Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed PowerControl SDFileSystem
Fork of HeptaBattery_SDFilesystem_Q by
Diff: hepta_sat/HeptaBattery.h
- Revision:
- 0:9eb94b338772
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/hepta_sat/HeptaBattery.h Fri Dec 09 04:53:49 2016 +0000
@@ -0,0 +1,24 @@
+#ifndef MBED_HEPTABATTERY_H
+#define MBED_HEPTABATTERY_H
+#include "mbed.h"
+#include "PowerControl/PowerControl.h"
+#include "PowerControl/EthernetPowerControl.h"
+
+class HeptaBattery{
+public:
+ HeptaBattery(
+ PinName bat,
+ PinName bat_ct,
+ PinName reg_st
+ );
+ void vol(float* bt);
+ void vol_u16(char* bt_u16, int *dsize);
+ void chargecontrol(int state, int *save_flag);
+
+private:
+ AnalogIn _bat;
+ DigitalOut _bat_ct;
+ DigitalOut _reg_st;
+};
+
+#endif
\ No newline at end of file
