![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Battery and SDcard
Dependencies: mbed PowerControl SDFileSystem
Fork of HeptaBattery_SDFilesystem by
hepta_sat/HeptaBattery.h
- Committer:
- tomoya123
- Date:
- 2016-12-09
- Revision:
- 0:50d269d8f117
- Child:
- 2:43c8e1979d08
File content as of revision 0:50d269d8f117:
#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