For Hepta-Sat Lite
HeptaBattery.h@0:1682fa22a51e, 2017-07-21 (annotated)
- Committer:
- hepta2ume
- Date:
- Fri Jul 21 06:41:37 2017 +0000
- Revision:
- 0:1682fa22a51e
- Child:
- 4:65dc53760aa0
HeptaBattery
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
hepta2ume | 0:1682fa22a51e | 1 | #ifndef MBED_HEPTABATTERY_H |
hepta2ume | 0:1682fa22a51e | 2 | #define MBED_HEPTABATTERY_H |
hepta2ume | 0:1682fa22a51e | 3 | #include "mbed.h" |
hepta2ume | 0:1682fa22a51e | 4 | #include "PowerControl/PowerControl.h" |
hepta2ume | 0:1682fa22a51e | 5 | #include "PowerControl/EthernetPowerControl.h" |
hepta2ume | 0:1682fa22a51e | 6 | |
hepta2ume | 0:1682fa22a51e | 7 | class HeptaBattery{ |
hepta2ume | 0:1682fa22a51e | 8 | public: |
hepta2ume | 0:1682fa22a51e | 9 | HeptaBattery( |
hepta2ume | 0:1682fa22a51e | 10 | PinName bat, |
hepta2ume | 0:1682fa22a51e | 11 | PinName bat_ct |
hepta2ume | 0:1682fa22a51e | 12 | ); |
hepta2ume | 0:1682fa22a51e | 13 | void vol(float* bt);//バッテリー電圧監視 |
hepta2ume | 0:1682fa22a51e | 14 | void fast_charge();//3.3V供給停止 |
hepta2ume | 0:1682fa22a51e | 15 | void vol_u16(char* bt_u16, int *dsize);//Battery電圧監視(16進数) |
hepta2ume | 0:1682fa22a51e | 16 | void power_saving_mode(void);//省電力モード |
hepta2ume | 0:1682fa22a51e | 17 | |
hepta2ume | 0:1682fa22a51e | 18 | private: |
hepta2ume | 0:1682fa22a51e | 19 | DigitalOut _bat_ct; |
hepta2ume | 0:1682fa22a51e | 20 | AnalogIn _bat; |
hepta2ume | 0:1682fa22a51e | 21 | }; |
hepta2ume | 0:1682fa22a51e | 22 | |
hepta2ume | 0:1682fa22a51e | 23 | #endif |