Hepta_template_program

Dependencies:   mbed PowerControl SDFileSystem

Fork of Hepta_UplinkData by HEPTA-Sat Hands-On

Committer:
tomoya123
Date:
Tue Dec 13 08:03:46 2016 +0000
Revision:
0:b96079b7d167
Child:
2:1d66645de649
Xbee Uplinkdata

Who changed what in which revision?

UserRevisionLine numberNew contents of line
tomoya123 0:b96079b7d167 1 #ifndef MBED_HEPTABATTERY_H
tomoya123 0:b96079b7d167 2 #define MBED_HEPTABATTERY_H
tomoya123 0:b96079b7d167 3 #include "mbed.h"
tomoya123 0:b96079b7d167 4 #include "PowerControl/PowerControl.h"
tomoya123 0:b96079b7d167 5 #include "PowerControl/EthernetPowerControl.h"
tomoya123 0:b96079b7d167 6
tomoya123 0:b96079b7d167 7 class HeptaBattery{
tomoya123 0:b96079b7d167 8 public:
tomoya123 0:b96079b7d167 9 HeptaBattery(
tomoya123 0:b96079b7d167 10 PinName bat,
tomoya123 0:b96079b7d167 11 PinName bat_ct,
tomoya123 0:b96079b7d167 12 PinName reg_st
tomoya123 0:b96079b7d167 13 );
tomoya123 0:b96079b7d167 14 void vol(float* bt);
tomoya123 0:b96079b7d167 15 void vol_u16(char* bt_u16, int *dsize);
tomoya123 0:b96079b7d167 16 void chargecontrol(int state, int *save_flag);
tomoya123 0:b96079b7d167 17
tomoya123 0:b96079b7d167 18 private:
tomoya123 0:b96079b7d167 19 AnalogIn _bat;
tomoya123 0:b96079b7d167 20 DigitalOut _bat_ct;
tomoya123 0:b96079b7d167 21 DigitalOut _reg_st;
tomoya123 0:b96079b7d167 22 };
tomoya123 0:b96079b7d167 23
tomoya123 0:b96079b7d167 24 #endif