|
REDAC HybridController
Firmware for LUCIDAC/REDAC Teensy
|
Loading...
Searching...
No Matches
#include <proto/main.pb.h>#include <Arduino.h>#include <cstring>#include "utils/etl_base64.h"#include "plugin/plugin.h"#include "utils/align.h"#include "utils/hashflash.h"#include "utils/logging.h"
Include dependency graph for plugin.cpp:

Go to the source code of this file.
Macros | |
| #define | M(name) |
| #define | CALL(type, sig) |
| #define | return_err(code, msg) |
Functions | |
| std::string | shortened_hexdump (uint8_t *mem, size_t size) |
| void | dispatch (uint8_t *callee, Function::Returns ret_type, JsonVariant ret) |
Variables | |
| static constexpr int | the_memsize = 1024 |
| uint8_t | GlobalPluginLoader_Storage [the_memsize] |
Macro Definition Documentation
◆ CALL
| #define CALL | ( | type, | |
| sig ) |
Value:
case Function::Returns::type: { \
auto entry = (Function::sig *)callee; \
ret.set(entry()); \
break; \
}
Referenced by dispatch().
◆ M
| #define M | ( | name | ) |
Value:
if (o["returns"] == #name) \
f.ret_type = Function::Returns::name
◆ return_err
| #define return_err | ( | code, | |
| msg ) |
Value:
Definition at line 109 of file plugin.cpp.
Function Documentation
◆ dispatch()
| void dispatch | ( | uint8_t * | callee, |
| Function::Returns | ret_type, | ||
| JsonVariant | ret ) |
Definition at line 90 of file plugin.cpp.
References CALL.
◆ shortened_hexdump()
| std::string shortened_hexdump | ( | uint8_t * | mem, |
| size_t | size ) |
Definition at line 55 of file plugin.cpp.
References size.
Variable Documentation
◆ GlobalPluginLoader_Storage
| uint8_t GlobalPluginLoader_Storage[the_memsize] |
Definition at line 18 of file plugin.cpp.
◆ the_memsize
|
staticconstexpr |
Definition at line 17 of file plugin.cpp.