Xbee CountUp

Dependencies:   mbed

Fork of HeptaXbee_CountUp by 智也 大野

Committer:
tomoya123
Date:
Tue Dec 13 07:55:03 2016 +0000
Revision:
1:715b80d2a02b
Parent:
0:0a7fa0911e6c
Xbee CountUp

Who changed what in which revision?

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