Battery hex

Dependencies:   mbed PowerControl SDFileSystem

Fork of HeptaBattery_hex by 智也 大野

hepta_sat/HeptaBattery.h

Committer:
MEXT1
Date:
2016-12-13
Revision:
2:7c5919465fc8
Parent:
0:30e193b92735

File content as of revision 2:7c5919465fc8:

#ifndef MBED_HEPTABATTERY_H
#define MBED_HEPTABATTERY_H
#include "mbed.h"
#include "PowerControl/PowerControl.h"
#include "PowerControl/EthernetPowerControl.h"

class HeptaBattery{
public:
    HeptaBattery(
            PinName bat,
            PinName bat_ct,
            PinName reg_st
    );
    void vol(float* bt);
    void vol_u16(char* bt_u16);
    void chargecontrol(int state, int *save_flag);
    
private:  
    AnalogIn _bat; 
    DigitalOut _bat_ct;
    DigitalOut _reg_st;
};
 
#endif