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

Definition at line 18 of file plugin.h.

Member Typedef Documentation

◆ Bool_f

bool loader::Function::Bool_f()

Definition at line 20 of file plugin.h.

◆ Int_f

int loader::Function::Int_f()

Definition at line 20 of file plugin.h.

◆ JsonObject_f

JsonObject loader::Function::JsonObject_f()

Definition at line 21 of file plugin.h.

◆ None_f

void loader::Function::None_f()

Definition at line 20 of file plugin.h.

◆ String_f

std::string loader::Function::String_f()

Definition at line 21 of file plugin.h.

Member Enumeration Documentation

◆ Returns

enum class loader::Function::Returns
strong
Enumerator
None 
Bool 
Int 
String 
JsonObject 

Definition at line 19 of file plugin.h.

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

Definition at line 24 of file plugin.h.


The documentation for this struct was generated from the following file: