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

Callback interface for message network protocol notifications. More...

Data Fields

void(* on_optional_interaction_rejected )(openlcb_node_t *openlcb_node, node_id_t source_node_id, uint16_t error_code, uint16_t rejected_mti)
 Optional. Called when an Optional Interaction Rejected message is received (MessageNetworkS Section 3.5.2).
 
void(* on_terminate_due_to_error )(openlcb_node_t *openlcb_node, node_id_t source_node_id, uint16_t error_code, uint16_t rejected_mti)
 Optional. Called when a Terminate Due To Error message is received (MessageNetworkS Section 3.5.2).
 

Detailed Description

Callback interface for message network protocol notifications.

Field Documentation

◆ on_optional_interaction_rejected

void(* on_optional_interaction_rejected) (openlcb_node_t *openlcb_node, node_id_t source_node_id, uint16_t error_code, uint16_t rejected_mti)

Optional. Called when an Optional Interaction Rejected message is received (MessageNetworkS Section 3.5.2).

Parameters
openlcb_nodeThe node that received the rejection.
source_node_idThe Node ID of the rejecting node.
error_codeThe 2-byte error code from payload bytes 0-1.
rejected_mtiThe MTI of the rejected message from payload bytes 2-3.

◆ on_terminate_due_to_error

void(* on_terminate_due_to_error) (openlcb_node_t *openlcb_node, node_id_t source_node_id, uint16_t error_code, uint16_t rejected_mti)

Optional. Called when a Terminate Due To Error message is received (MessageNetworkS Section 3.5.2).

Parameters
openlcb_nodeThe node that received the error.
source_node_idThe Node ID of the error-sending node.
error_codeThe 2-byte error code from payload bytes 0-1.
rejected_mtiThe MTI of the terminated message from payload bytes 2-3.

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

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