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