OpenLcbCLib 1.0 Alpha
OpenSource C Library to create OpenLcb/Lcc Nodes
Loading...
Searching...
No Matches
can_login_statemachine.h
Go to the documentation of this file.
1
34#ifndef __DRIVERS_CANBUS_CAN_LOGIN_STATEMACHINE__
35#define __DRIVERS_CANBUS_CAN_LOGIN_STATEMACHINE__
36
37#include "can_types.h"
39
50typedef struct {
51
52 void (*state_init)(can_statemachine_info_t *can_statemachine_info);
53 void (*state_generate_seed)(can_statemachine_info_t *can_statemachine_info);
54 void (*state_generate_alias)(can_statemachine_info_t *can_statemachine_info);
55 void (*state_load_cid07)(can_statemachine_info_t *can_statemachine_info);
56 void (*state_load_cid06)(can_statemachine_info_t *can_statemachine_info);
57 void (*state_load_cid05)(can_statemachine_info_t *can_statemachine_info);
58 void (*state_load_cid04)(can_statemachine_info_t *can_statemachine_info);
59 void (*state_wait_200ms)(can_statemachine_info_t *can_statemachine_info);
60 void (*state_load_rid)(can_statemachine_info_t *can_statemachine_info);
61 void (*state_load_amd)(can_statemachine_info_t *can_statemachine_info);
64
65#ifdef __cplusplus
66extern "C" {
67#endif /* __cplusplus */
68
81 extern void CanLoginStateMachine_initialize(const interface_can_login_state_machine_t *interface_can_login_state_machine);
82
97 extern void CanLoginStateMachine_run(can_statemachine_info_t *can_statemachine_info);
98
99#ifdef __cplusplus
100}
101#endif /* __cplusplus */
102
103#endif /* __DRIVERS_CANBUS_CAN_LOGIN_STATEMACHINE__ */
void CanLoginStateMachine_run(can_statemachine_info_t *can_statemachine_info)
Dispatches to the handler for the node's current run_state.
Definition can_login_statemachine.c:69
void CanLoginStateMachine_initialize(const interface_can_login_state_machine_t *interface_can_login_state_machine)
Registers the dependency-injection interface for this module.
Definition can_login_statemachine.c:56
Type definitions and constants for the CAN transport layer.
Core type definitions, structures, and configuration constants for the OpenLCB library.
Definition can_types.h:155
Dependency-injection interface for the CAN login state machine.
Definition can_login_statemachine.h:50

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