Reads/Writes strings from/to serial port using a line-based (typically ASCII) protocol with a defined end-of-line regex.
More...
#include <goby/middleware/io/cobs/pty.h>
|
template<class Thread > |
void | cobs_async_write (Thread *this_thread, std::shared_ptr< const goby::middleware::protobuf::IOData > io_msg) |
|
template<class Thread , class ThreadBase > |
void | cobs_async_read (Thread *this_thread, std::shared_ptr< ThreadBase > self) |
|
template<const goby::middleware::Group & line_in_group, const goby::middleware::Group & line_out_group, PubSubLayer publish_layer = PubSubLayer::INTERPROCESS, PubSubLayer subscribe_layer = PubSubLayer::INTERTHREAD, template< class > class ThreadType = goby::middleware::SimpleThread, bool use_indexed_groups = false>
class goby::middleware::io::PTYThreadCOBS< line_in_group, line_out_group, publish_layer, subscribe_layer, ThreadType, use_indexed_groups >
Reads/Writes strings from/to serial port using a line-based (typically ASCII) protocol with a defined end-of-line regex.
- Template Parameters
-
Definition at line 71 of file pty.h.
◆ PTYThreadCOBS()
template<const goby::middleware::Group & line_in_group, const goby::middleware::Group & line_out_group, PubSubLayer publish_layer = PubSubLayer::INTERPROCESS, PubSubLayer subscribe_layer = PubSubLayer::INTERTHREAD, template< class > class ThreadType = goby::middleware::SimpleThread, bool use_indexed_groups = false>
Constructs the thread.
- Parameters
-
config | A reference to the Protocol Buffers config read by the main application at launch |
index | Thread index for multiple instances in a given application (-1 indicates a single instance) |
Definition at line 81 of file pty.h.
◆ ~PTYThreadCOBS()
template<const goby::middleware::Group & line_in_group, const goby::middleware::Group & line_out_group, PubSubLayer publish_layer = PubSubLayer::INTERPROCESS, PubSubLayer subscribe_layer = PubSubLayer::INTERTHREAD, template< class > class ThreadType = goby::middleware::SimpleThread, bool use_indexed_groups = false>
Definition at line 86 of file pty.h.
◆ cobs_async_read
template<const goby::middleware::Group & line_in_group, const goby::middleware::Group & line_out_group, PubSubLayer publish_layer = PubSubLayer::INTERPROCESS, PubSubLayer subscribe_layer = PubSubLayer::INTERTHREAD, template< class > class ThreadType = goby::middleware::SimpleThread, bool use_indexed_groups = false>
template<class Thread , class ThreadBase >
void cobs_async_read |
( |
Thread * |
this_thread, |
|
|
std::shared_ptr< ThreadBase > |
self = std::shared_ptr<ThreadBase>() |
|
) |
| |
|
friend |
◆ cobs_async_write
template<const goby::middleware::Group & line_in_group, const goby::middleware::Group & line_out_group, PubSubLayer publish_layer = PubSubLayer::INTERPROCESS, PubSubLayer subscribe_layer = PubSubLayer::INTERTHREAD, template< class > class ThreadType = goby::middleware::SimpleThread, bool use_indexed_groups = false>
template<class Thread >
void cobs_async_write |
( |
Thread * |
this_thread, |
|
|
std::shared_ptr< const goby::middleware::protobuf::IOData > |
io_msg |
|
) |
| |
|
friend |
The documentation for this class was generated from the following file:
- goby/middleware/io/cobs/pty.h