Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Lab9-01_All_transmit Lab9-03_Thermal_chamber 3daf572bcae1 Team ... more
Fork of HeptaBattery by
HeptaBattery.h
- Committer:
- HEPTA
- Date:
- 2017-09-04
- Revision:
- 4:65dc53760aa0
- Parent:
- 0:1682fa22a51e
- Child:
- 5:15a6a4425889
File content as of revision 4:65dc53760aa0:
#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
);
void vol(float* bt);//バッテリー電圧監視
void shut_down_regulator();//3.3V供給停止
void vol_u16(char* bt_u16, int *dsize);//Battery電圧監視(16進数)
void power_saving_mode(void);//省電力モード
private:
DigitalOut _bat_ct;
AnalogIn _bat;
};
#endif
