智也 大野 / Mbed 2 deprecated SDFilesystem

Dependencies:   mbed PowerControl SDFileSystem

Fork of SDFilesystem by 智也 大野

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers HeptaBattery.h Source File

HeptaBattery.h

00001 #ifndef MBED_HEPTABATTERY_H
00002 #define MBED_HEPTABATTERY_H
00003 #include "mbed.h"
00004 #include "PowerControl/PowerControl.h"
00005 #include "PowerControl/EthernetPowerControl.h"
00006 
00007 class HeptaBattery{
00008 public:
00009     HeptaBattery(
00010             PinName bat,
00011             PinName bat_ct,
00012             PinName reg_st
00013     );
00014     void vol(float* bt);
00015     void vol_u16(char* bt_u16, int *dsize);
00016     void chargecontrol(int state, int *save_flag);
00017     
00018 private:  
00019     AnalogIn _bat; 
00020     DigitalOut _bat_ct;
00021     DigitalOut _reg_st;
00022 };
00023  
00024 #endif