Numworks Epsilon
1.4.1
Graphing Calculator Operating System
charge.cpp
Go to the documentation of this file.
1
#include "
command.h
"
2
#include <
ion.h
>
3
4
namespace
Ion
{
5
namespace
Device {
6
namespace
Bench {
7
namespace
Command
{
8
9
void
Charge
(
const
char
* input) {
10
if
(input !=
nullptr
) {
11
reply
(
sSyntaxError
);
12
return
;
13
}
14
if
(
Ion::Battery::isCharging
()) {
15
reply
(
"CHARGE=ON"
);
16
}
else
{
17
reply
(
"CHARGE=OFF"
);
18
}
19
}
20
21
}
22
}
23
}
24
}
command.h
ion.h
Ion::Battery::isCharging
bool isCharging()
Definition:
battery.cpp:16
Ion::Device::Bench::Command::sSyntaxError
const char *const sSyntaxError
Definition:
command.cpp:11
Ion::Device::Bench::Command::Charge
void Charge(const char *input)
Definition:
charge.cpp:9
Ion::Display::Device::Command
Command
Definition:
display.h:63
Ion::Device::Bench::Command::reply
void reply(const char *s)
Definition:
command.cpp:15
Ion
Definition:
backlight.h:6
epsilon
ion
src
device
bench
command
charge.cpp
Generated by
1.8.14