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 SDFilesystem by
HeptaBattery.h
00001 #ifndef MBED_HEPTABATTERY_H 00002 #define MBED_HEPTABATTERY_H 00003 #include "mbed.h" 00004 #include "PowerControl/PowerControl.h" 00005 #include "PowerControl/EthernetPowerControl.h" 00006 00007 class HeptaBattery{ 00008 public: 00009 HeptaBattery( 00010 PinName bat, 00011 PinName bat_ct, 00012 PinName reg_st 00013 ); 00014 void vol(float* bt); 00015 void vol_u16(char* bt_u16, int *dsize); 00016 void chargecontrol(int state, int *save_flag); 00017 00018 private: 00019 AnalogIn _bat; 00020 DigitalOut _bat_ct; 00021 DigitalOut _reg_st; 00022 }; 00023 00024 #endif
Generated on Fri Jul 15 2022 08:06:17 by
1.7.2
