Accel

Dependencies:   mbed PowerControl SDFileSystem

Fork of HeptaAccel by 智也 大野

Committer:
tomoya123
Date:
Tue Dec 13 07:51:40 2016 +0000
Revision:
1:63c3921c608c
Parent:
0:d721efd58e4e
Accel

Who changed what in which revision?

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