1#ifndef DISABLE_COMPORT_485F
18#ifndef COMPORT_485F_H_
19#define COMPORT_485F_H_
23#include "PassiveTimer.h"
43 ComPort485F(
const std::string& comDevice,
char gpio_num,
bool tmit_ctrl =
false );
45 virtual void sendByte(
unsigned char x )
override;
46 virtual void setTimeout( timeout_t timeout )
override;
47 virtual ssize_t sendBlock(
unsigned char* msg,
size_t len )
override;
49 virtual void cleanupChannel()
override;
50 virtual void reopen()
override;
54 virtual unsigned char m_receiveByte(
bool wait )
override;
55 void save2queue(
unsigned char* msg,
size_t len,
size_t bnum );
56 bool remove_echo(
unsigned char tb[], ssize_t len );
57 void m_read( timeout_t tmsec );
60 unsigned char tbuf[ComPort::BufSize];
62 std::queue<unsigned char>
wq;
63 std::queue<unsigned char>
rq;
68 timeout_t tout_msec = { 2000 };
Definition ComPort485F.h:40
std::queue< unsigned char > rq
Definition ComPort485F.h:63
unsigned char tbuf[ComPort::BufSize]
Definition ComPort485F.h:60
std::queue< unsigned char > wq
Definition ComPort485F.h:62
Пассивный таймер
Definition PassiveTimer.h:94
Definition Calibration.h:27