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.
Dependents: Lab9-01_All_transmit Lab9-03_Thermal_chamber 3daf572bcae1 Team ... more
Fork of HeptaBattery by
HeptaBattery.h@8:92dcd75454b5, 2018-08-08 (annotated)
- Committer:
- HEPTA
- Date:
- Wed Aug 08 10:36:56 2018 +0000
- Revision:
- 8:92dcd75454b5
- Parent:
- 7:b701e9cd2108
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);//バッテリー電圧監視 |
| HEPTA | 4:65dc53760aa0 | 14 | void shut_down_regulator();//3.3V供給停止 |
| HEPTA | 7:b701e9cd2108 | 15 | void turn_on_regulator();//3.3V供給 |
| HEPTA | 5:15a6a4425889 | 16 | void vol_u16(char* bt_u16);//Battery電圧監視(16進数) |
| HEPTA | 8:92dcd75454b5 | 17 | void power_saving_mode(int *flag,float* Bat);//省電力モード |
| hepta2ume | 0:1682fa22a51e | 18 | |
| hepta2ume | 0:1682fa22a51e | 19 | private: |
| hepta2ume | 0:1682fa22a51e | 20 | DigitalOut _bat_ct; |
| hepta2ume | 0:1682fa22a51e | 21 | AnalogIn _bat; |
| hepta2ume | 0:1682fa22a51e | 22 | }; |
| hepta2ume | 0:1682fa22a51e | 23 | |
| hepta2ume | 0:1682fa22a51e | 24 | #endif |
