MC Protocol Serial C++ 0.2.3
MC protocol serial library for MCU-oriented environments
Loading...
Searching...
No Matches
client.hpp File Reference

Asynchronous request-execution state machine for serial MC protocol traffic. More...

#include <array>
#include <cstddef>
#include <cstdint>
#include "mcprotocol/serial/codec.hpp"
#include "mcprotocol/serial/link_direct.hpp"
#include "mcprotocol/serial/qualified_buffer.hpp"
#include "mcprotocol/serial/span_compat.hpp"

Go to the source code of this file.

Classes

class  mcprotocol::serial::MelsecSerialClient
 Asynchronous MC protocol client for UART / serial integrations. More...
 

Namespaces

namespace  mcprotocol
 
namespace  mcprotocol::serial
 

Detailed Description

Asynchronous request-execution state machine for serial MC protocol traffic.

MelsecSerialClient sits above CommandCodec and FrameCodec and below any concrete transport. It owns no UART implementation itself. The embedding application is responsible for:

  • moving bytes from pending_tx_frame() to the actual serial port
  • calling notify_tx_complete() when TX is done
  • feeding received bytes back through on_rx_bytes()
  • calling poll() for timeout handling

Definition in file client.hpp.