|
OpenLcbCLib 1.0 Alpha
OpenSource C Library to create OpenLcb/Lcc Nodes
|
User configuration for OpenLcbCLib. More...
Data Fields | |
| void(* | lock_shared_resources )(void) |
| Disable interrupts / acquire mutex for shared resource access. REQUIRED. | |
| void(* | unlock_shared_resources )(void) |
| Re-enable interrupts / release mutex. REQUIRED. | |
| 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 Interaction Rejected received. Optional. Notifies the application that a message was rejected by a remote node. | |
| 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) |
| Terminate Due To Error received. Optional. Notifies the application that a remote node terminated with an error. | |
| void(* | on_100ms_timer )(void) |
| 100ms periodic timer callback. Optional. | |
| bool(* | on_login_complete )(openlcb_node_t *openlcb_node) |
| Called when a node completes login and enters RUN state. Optional. Return true if login can complete, false to delay. | |
User configuration for OpenLcbCLib.
Populate this struct with hardware driver functions and optional application callbacks, then pass it to OpenLcb_initialize(). Required fields are marked REQUIRED and must be non-NULL.
| void(* lock_shared_resources) (void) |
Disable interrupts / acquire mutex for shared resource access. REQUIRED.
| void(* unlock_shared_resources) (void) |
Re-enable interrupts / release mutex. REQUIRED.
| 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 Interaction Rejected received. Optional. Notifies the application that a message was rejected by a remote node.
| 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) |
Terminate Due To Error received. Optional. Notifies the application that a remote node terminated with an error.
| void(* on_100ms_timer) (void) |
100ms periodic timer callback. Optional.
| bool(* on_login_complete) (openlcb_node_t *openlcb_node) |
Called when a node completes login and enters RUN state. Optional. Return true if login can complete, false to delay.
Copyright (c) 2026 Jim Kueneman all rights reserved. See the License