REDAC HybridController
Firmware for LUCIDAC/REDAC Teensy
|
Loading...
Searching...
No Matches
loader::Function Struct Reference
A jumpable function, ie something with a signature "ret_type foo();", located at relative or absolute address addr. More...
#include <plugin.h>
Public Types | |
enum class | Returns { None , Bool , Int , String , JsonObject } |
typedef void | None_f() |
typedef bool | Bool_f() |
typedef int | Int_f() |
typedef std::string | String_f() |
typedef JsonObject | JsonObject_f() |
Public Attributes | |
uint32_t | addr = 0x0 |
Returns | ret_type = Returns::None |
Detailed Description
A jumpable function, ie something with a signature "ret_type foo();", located at relative or absolute address addr.
I introduced some kind of clumsy return-value dispatch which probably will be replaced just by "either JsonObject or void" in the future.
Could also support calling arguments such as ... well the same, basically. And then any combination :D
Member Typedef Documentation
◆ Bool_f
◆ Int_f
◆ JsonObject_f
JsonObject loader::Function::JsonObject_f() |
◆ None_f
◆ String_f
Member Enumeration Documentation
◆ Returns
|
strong |
Member Data Documentation
◆ addr
uint32_t loader::Function::addr = 0x0 |
Definition at line 23 of file plugin.h.
Referenced by loader::convertFromJson().
◆ ret_type
Returns loader::Function::ret_type = Returns::None |
The documentation for this struct was generated from the following file:
- lib/controller/src/plugin/plugin.h