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

Application-provided callbacks for broadcast time events. More...

Data Fields

void(* on_time_changed )(broadcast_clock_t *clock)
 Called each time the fast clock advances by one minute.
 
void(* on_time_received )(openlcb_node_t *openlcb_node, broadcast_clock_state_t *clock_state)
 Called when a Report Time event is received from the network.
 
void(* on_date_received )(openlcb_node_t *openlcb_node, broadcast_clock_state_t *clock_state)
 Called when a Report Date event is received from the network.
 
void(* on_year_received )(openlcb_node_t *openlcb_node, broadcast_clock_state_t *clock_state)
 Called when a Report Year event is received from the network.
 
void(* on_date_rollover )(openlcb_node_t *openlcb_node, broadcast_clock_state_t *clock_state)
 Called when the clock rolls over from 23:59 to 00:00.
 

Detailed Description

Application-provided callbacks for broadcast time events.

Any callback that is not needed may be left NULL. The module checks each pointer before calling it.

See also
OpenLcbApplicationBroadcastTime_initialize

Field Documentation

◆ on_time_changed

void(* on_time_changed) (broadcast_clock_t *clock)

Called each time the fast clock advances by one minute.

◆ on_time_received

void(* on_time_received) (openlcb_node_t *openlcb_node, broadcast_clock_state_t *clock_state)

Called when a Report Time event is received from the network.

◆ on_date_received

void(* on_date_received) (openlcb_node_t *openlcb_node, broadcast_clock_state_t *clock_state)

Called when a Report Date event is received from the network.

◆ on_year_received

void(* on_year_received) (openlcb_node_t *openlcb_node, broadcast_clock_state_t *clock_state)

Called when a Report Year event is received from the network.

◆ on_date_rollover

void(* on_date_rollover) (openlcb_node_t *openlcb_node, broadcast_clock_state_t *clock_state)

Called when the clock rolls over from 23:59 to 00:00.


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

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