Lamp-Da 0.1
A compact lantern project
Loading...
Searching...
No Matches
print.h
Go to the documentation of this file.
1
5#ifndef PLATFORM_PRINT_H
6#define PLATFORM_PRINT_H
7
8#include <array>
9#include <cstdint>
10#include <string>
11#include <vector>
12#include <stdarg.h>
13
15
16namespace lampda {
17namespace platform {
19
23extern void init_prints();
24
29struct Inputs
30{
31 static constexpr size_t maxCommandSize = 15;
32 typedef std::array<char, maxCommandSize> Command;
33
34 static constexpr uint8_t maxCommands = 2;
35 std::array<Command, maxCommands> commandList;
36 uint8_t commandCount = 0;
37};
38
39extern Inputs read_inputs();
40
41} // namespace platform
42} // namespace lampda
43
44#endif
void init_prints()
Print and debug function to serial port.
Definition: print.cpp:26
Inputs read_inputs()
read external inputs (may take some time)
Definition: print.cpp:63
Program scope.
Definition: control_fixed_modes.hpp:12
read external inputs (may take some time)
Definition: print.h:30
Convertion header to use the print and debug functions from C code.