22 #ifndef _COMMDRIVERN0183SERIAL_H
23 #define _COMMDRIVERN0183SERIAL_H
30 #include "model/comm_drv_n0183.h"
31 #include "model/comm_out_queue.h"
32 #include "model/conn_params.h"
33 #include "model/garmin_protocol_mgr.h"
43 void SetPayload(std::shared_ptr<std::vector<unsigned char>> data);
44 std::shared_ptr<std::vector<unsigned char>> GetPayload();
47 wxEvent* Clone()
const;
49 std::shared_ptr<std::vector<unsigned char>> m_payload;
70 void SetSecThreadActive(
void) { m_sec_thread_active =
true; }
71 void SetSecThreadInActive(
void) { m_sec_thread_active =
false; }
72 bool IsSecThreadActive()
const {
return m_sec_thread_active; }
74 bool IsGarminThreadActive();
75 void StopGarminUSBIOThread(
bool bPause);
78 m_secondary_thread = secondary_Thread;
81 return m_secondary_thread;
83 void SetThreadRunFlag(
int run) { m_Thread_run_flag = run; }
85 std::atomic_int m_Thread_run_flag;
89 bool SendMessage(std::shared_ptr<const NavMsg> msg,
90 std::shared_ptr<const NavAddr> addr)
override;
94 std::string m_portstring;
95 std::string m_baudrate;
99 bool m_sec_thread_active;
106 std::unique_ptr<CommOutQueue> m_out_queue;
void Activate() override
Register driver and possibly do other post-ctor steps.
Interface implemented by transport layer and possible other parties like test code which should handl...