mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2025-12-13 05:53:06 +01:00
#12: multiple capabilities in user task, user init function, cleanup message handling in main, clearer api
This commit is contained in:
@@ -9,16 +9,20 @@
|
||||
class GwApi{
|
||||
public:
|
||||
virtual GwRequestQueue *getQueue()=0;
|
||||
virtual void sendN2kMessage(const tN2kMsg &msg)=0;
|
||||
virtual void sendNMEA0183Message(const tNMEA0183Msg &msg, int sourceId)=0;
|
||||
virtual void sendN2kMessage(const tN2kMsg &msg, bool convert=true)=0;
|
||||
virtual void sendNMEA0183Message(const tNMEA0183Msg &msg, int sourceId,bool convert=true)=0;
|
||||
virtual int getSourceId()=0;
|
||||
virtual GwConfigHandler *getConfig()=0;
|
||||
virtual GwLog *getLogger()=0;
|
||||
virtual GwBoatData *getBoatData()=0;
|
||||
virtual ~GwApi(){}
|
||||
};
|
||||
#ifndef DECLARE_USERTASK
|
||||
#define DECLARE_USERTASK(task)
|
||||
#endif
|
||||
#ifndef DECLARE_INITFUNCTION
|
||||
#define DECLARE_INITFUNCTION(task)
|
||||
#endif
|
||||
#ifndef DECLARE_CAPABILITY
|
||||
#define DECLARE_CAPABILITY(name,value)
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user