MC Protocol Serial C++ 0.2.3
MC protocol serial library for MCU-oriented environments
Loading...
Searching...
No Matches
mcprotocol::serial::TimeoutConfig Struct Reference

Timeout settings used by the frame decoder and async client. More...

#include <types.hpp>

Public Attributes

std::uint32_t response_timeout_ms = 5000
 Maximum wait after TX completion before the request is treated as timed out.
 
std::uint32_t inter_byte_timeout_ms = 250
 Maximum allowed idle gap between RX bytes once a response has started.
 

Detailed Description

Timeout settings used by the frame decoder and async client.

These values are transport-facing rather than command-facing:

  • response_timeout_ms is the total request timeout once TX finishes
  • inter_byte_timeout_ms is the gap timeout while RX is already in progress

Definition at line 284 of file types.hpp.

Member Data Documentation

◆ inter_byte_timeout_ms

std::uint32_t mcprotocol::serial::TimeoutConfig::inter_byte_timeout_ms = 250

Maximum allowed idle gap between RX bytes once a response has started.

Definition at line 288 of file types.hpp.

◆ response_timeout_ms

std::uint32_t mcprotocol::serial::TimeoutConfig::response_timeout_ms = 5000

Maximum wait after TX completion before the request is treated as timed out.

Definition at line 286 of file types.hpp.


The documentation for this struct was generated from the following file: