REDAC HybridController
Firmware for LUCIDAC/REDAC Teensy
|
Loading...
Searching...
No Matches
#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 | |
FLASHMEM std::string | shortened_hexdump (uint8_t *mem, size_t size) |
FLASHMEM 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 108 of file plugin.cpp.
Function Documentation
◆ dispatch()
FLASHMEM void dispatch | ( | uint8_t * | callee, |
Function::Returns | ret_type, | ||
JsonVariant | ret ) |
Definition at line 88 of file plugin.cpp.
References CALL.
◆ shortened_hexdump()
FLASHMEM std::string shortened_hexdump | ( | uint8_t * | mem, |
size_t | size ) |
Definition at line 53 of file plugin.cpp.
Variable Documentation
◆ GlobalPluginLoader_Storage
uint8_t GlobalPluginLoader_Storage[the_memsize] |
Definition at line 16 of file plugin.cpp.
◆ the_memsize
|
staticconstexpr |
Definition at line 15 of file plugin.cpp.