OpenLcbCLib 1.0 Alpha
OpenSource C Library to create OpenLcb/Lcc Nodes
Loading...
Searching...
No Matches
interface_openlcb_application_train_t Struct Reference

Application-provided callbacks for the train module. More...

Data Fields

bool(* send_openlcb_msg )(openlcb_msg_t *openlcb_msg)
 Queues an outgoing OpenLCB message (required).
 
void(* on_heartbeat_timeout )(openlcb_node_t *openlcb_node)
 Called when the heartbeat timer for a train node reaches zero (optional).
 

Detailed Description

Application-provided callbacks for the train module.

send_openlcb_msg is required for all throttle-side send helpers. on_heartbeat_timeout may be NULL if the application does not need notification.

Warning
send_openlcb_msg must be non-NULL before calling any send function.

Field Documentation

◆ send_openlcb_msg

bool(* send_openlcb_msg) (openlcb_msg_t *openlcb_msg)

Queues an outgoing OpenLCB message (required).

◆ on_heartbeat_timeout

void(* on_heartbeat_timeout) (openlcb_node_t *openlcb_node)

Called when the heartbeat timer for a train node reaches zero (optional).


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

Copyright (c) 2026 Jim Kueneman all rights reserved. See the License