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

Optional RS-485 callbacks used by the async client around TX start/end. More...

#include <types.hpp>

Public Attributes

void(* on_tx_begin )(void *user) = nullptr
 Optional callback fired immediately before the client expects TX to start.
 
void(* on_tx_end )(void *user) = nullptr
 Optional callback fired after TX completion or after cleanup on failure/cancel.
 
void * user = nullptr
 Opaque user pointer passed back to both callbacks.
 

Detailed Description

Optional RS-485 callbacks used by the async client around TX start/end.

Definition at line 639 of file types.hpp.

Member Data Documentation

◆ on_tx_begin

void(* mcprotocol::serial::Rs485Hooks::on_tx_begin) (void *user) = nullptr

Optional callback fired immediately before the client expects TX to start.

Definition at line 641 of file types.hpp.

◆ on_tx_end

void(* mcprotocol::serial::Rs485Hooks::on_tx_end) (void *user) = nullptr

Optional callback fired after TX completion or after cleanup on failure/cancel.

Definition at line 643 of file types.hpp.

◆ user

void* mcprotocol::serial::Rs485Hooks::user = nullptr

Opaque user pointer passed back to both callbacks.

Definition at line 645 of file types.hpp.


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