For Hepta-Sat Lite

Revision:
0:1682fa22a51e
Child:
4:65dc53760aa0
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/HeptaBattery.h	Fri Jul 21 06:41:37 2017 +0000
@@ -0,0 +1,23 @@
+#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
+    );
+    void vol(float* bt);//バッテリー電圧監視
+    void fast_charge();//3.3V供給停止
+    void vol_u16(char* bt_u16, int *dsize);//Battery電圧監視(16進数)
+    void power_saving_mode(void);//省電力モード
+  
+private:  
+    DigitalOut _bat_ct;
+    AnalogIn _bat; 
+};
+ 
+#endif
\ No newline at end of file