Hepta UplinkData Q
Dependencies: mbed PowerControl SDFileSystem
Fork of Hepta_UplinkData_Q by
hepta_sat/HeptaBattery.h@0:edad9f0f386a, 2016-12-09 (annotated)
- Committer:
- tomoya123
- Date:
- Fri Dec 09 05:16:28 2016 +0000
- Revision:
- 0:edad9f0f386a
- Child:
- 2:5a182125ca0f
Uplinkdata
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
tomoya123 | 0:edad9f0f386a | 1 | #ifndef MBED_HEPTABATTERY_H |
tomoya123 | 0:edad9f0f386a | 2 | #define MBED_HEPTABATTERY_H |
tomoya123 | 0:edad9f0f386a | 3 | #include "mbed.h" |
tomoya123 | 0:edad9f0f386a | 4 | #include "PowerControl/PowerControl.h" |
tomoya123 | 0:edad9f0f386a | 5 | #include "PowerControl/EthernetPowerControl.h" |
tomoya123 | 0:edad9f0f386a | 6 | |
tomoya123 | 0:edad9f0f386a | 7 | class HeptaBattery{ |
tomoya123 | 0:edad9f0f386a | 8 | public: |
tomoya123 | 0:edad9f0f386a | 9 | HeptaBattery( |
tomoya123 | 0:edad9f0f386a | 10 | PinName bat, |
tomoya123 | 0:edad9f0f386a | 11 | PinName bat_ct, |
tomoya123 | 0:edad9f0f386a | 12 | PinName reg_st |
tomoya123 | 0:edad9f0f386a | 13 | ); |
tomoya123 | 0:edad9f0f386a | 14 | void vol(float* bt); |
tomoya123 | 0:edad9f0f386a | 15 | void vol_u16(char* bt_u16, int *dsize); |
tomoya123 | 0:edad9f0f386a | 16 | void chargecontrol(int state, int *save_flag); |
tomoya123 | 0:edad9f0f386a | 17 | |
tomoya123 | 0:edad9f0f386a | 18 | private: |
tomoya123 | 0:edad9f0f386a | 19 | AnalogIn _bat; |
tomoya123 | 0:edad9f0f386a | 20 | DigitalOut _bat_ct; |
tomoya123 | 0:edad9f0f386a | 21 | DigitalOut _reg_st; |
tomoya123 | 0:edad9f0f386a | 22 | }; |
tomoya123 | 0:edad9f0f386a | 23 | |
tomoya123 | 0:edad9f0f386a | 24 | #endif |