Numworks Epsilon
1.4.1
Graphing Calculator Operating System
mcu_serial.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
MCUSerial
(
const
char
* input) {
10
if
(input !=
nullptr
) {
11
reply
(
sSyntaxError
);
12
return
;
13
}
14
char
response[11+Ion::SerialNumberLength + 1] = {
'M'
,
'C'
,
'U'
,
'_'
,
'S'
,
'E'
,
'R'
,
'I'
,
'A'
,
'L'
,
'='
, 0};
15
Ion::getSerialNumber
(response+11);
16
reply
(response);
17
}
18
19
}
20
}
21
}
22
}
command.h
ion.h
Ion::Device::Bench::Command::sSyntaxError
const char *const sSyntaxError
Definition:
command.cpp:11
Ion::Display::Device::Command
Command
Definition:
display.h:63
Ion::getSerialNumber
void getSerialNumber(char *buffer)
Definition:
device.cpp:77
Ion::Device::Bench::Command::MCUSerial
void MCUSerial(const char *input)
Definition:
mcu_serial.cpp:9
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
mcu_serial.cpp
Generated by
1.8.14