|
OpenLcbCLib 1.0 Alpha
OpenSource C Library to create OpenLcb/Lcc Nodes
|
Implementation of the login state machine message handler. More...
Functions | |
| void | OpenLcbLoginMessageHandler_initialize (const interface_openlcb_login_message_handler_t *interface) |
| Stores the callback interface. Call once at startup. | |
| void | OpenLcbLoginMessageHandler_load_initialization_complete (openlcb_login_statemachine_info_t *statemachine_info) |
| Builds the Initialization Complete message and transitions to producer event enumeration. | |
| void | OpenLcbLoginMessageHandler_load_producer_event (openlcb_login_statemachine_info_t *statemachine_info) |
| Builds one Producer Identified message; sets enumerate flag if more remain. | |
| void | OpenLcbLoginMessageHandler_load_consumer_event (openlcb_login_statemachine_info_t *statemachine_info) |
| Builds one Consumer Identified message; sets enumerate flag if more remain. | |
Implementation of the login state machine message handler.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
This module implements the message construction handlers for the OpenLCB login sequence. It builds properly formatted OpenLCB messages for:
The implementation follows the OpenLCB Message Network Standard and Event Transport specifications. Each handler function:
Message Construction Pattern: All messages use OpenLcbUtilities_load_openlcb_message() to set the header fields, then use specific copy functions for payload data (Node ID or Event ID), and finally set the payload_count to indicate message size.
State Transitions:
| void OpenLcbLoginMessageHandler_initialize | ( | const interface_openlcb_login_message_handler_t * | interface | ) |
Stores the callback interface. Call once at startup.
Stores the callback interface. Call once at startup before login processing.
* @param interface Pointer to interface structure containing callback functions *
| void OpenLcbLoginMessageHandler_load_initialization_complete | ( | openlcb_login_statemachine_info_t * | statemachine_info | ) |
Builds the Initialization Complete message and transitions to producer event enumeration.
Algorithm:
* @param statemachine_info Pointer to state machine info containing node and message buffer *
| void OpenLcbLoginMessageHandler_load_producer_event | ( | openlcb_login_statemachine_info_t * | statemachine_info | ) |
Builds one Producer Identified message; sets enumerate flag if more remain.
Algorithm:
* @param statemachine_info Pointer to state machine info containing node and message buffer *
| void OpenLcbLoginMessageHandler_load_consumer_event | ( | openlcb_login_statemachine_info_t * | statemachine_info | ) |
Builds one Consumer Identified message; sets enumerate flag if more remain.
Algorithm:
* @param statemachine_info Pointer to state machine info containing node and message buffer *
Copyright (c) 2026 Jim Kueneman all rights reserved. See the License