mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2025-12-14 06:23:07 +01:00
allow to set XDR mappings from user tasks
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#include "NMEA0183Msg.h"
|
||||
#include "GWConfig.h"
|
||||
#include "GwBoatData.h"
|
||||
#include "GwXDRMappings.h"
|
||||
#include <map>
|
||||
//API to be used for additional tasks
|
||||
class GwApi{
|
||||
@@ -151,6 +152,11 @@ class GwApi{
|
||||
virtual void remove(int idx){}
|
||||
virtual TaskInterfaces * taskInterfaces()=0;
|
||||
|
||||
/**
|
||||
* only allowed during init methods
|
||||
*/
|
||||
virtual bool addXdrMapping(const GwXDRMappingDef &);
|
||||
|
||||
/**
|
||||
* not thread safe methods
|
||||
* accessing boat data must only be executed from within the main thread
|
||||
|
||||
Reference in New Issue
Block a user