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

A clock slot with state and subscription flags. More...

Data Fields

broadcast_clock_state_t state
 
bool is_consumer: 1
 
bool is_producer: 1
 
bool is_allocated: 1
 
bool query_reply_pending: 1
 Query reply state machine active.
 
bool sync_pending: 1
 Delayed sync waiting to fire after Set commands.
 
uint8_t send_query_reply_state
 Per-clock state for query reply sequence (0-5).
 
uint8_t sync_delay_ticks
 Countdown for Set command coalescing (30 = 3s at 100ms).
 
uint16_t report_cooldown_ticks
 Cooldown between periodic Report Time events (600 = 60s).
 
uint8_t previous_run_state
 Last-seen producer node run_state for startup sync detection.
 
void * producer_node
 Node pointer for sending (set in setup_producer).
 

Detailed Description

A clock slot with state and subscription flags.

Field Documentation

◆ state

◆ is_consumer

bool is_consumer

◆ is_producer

bool is_producer

◆ is_allocated

bool is_allocated

◆ query_reply_pending

bool query_reply_pending

Query reply state machine active.

◆ sync_pending

bool sync_pending

Delayed sync waiting to fire after Set commands.

◆ send_query_reply_state

uint8_t send_query_reply_state

Per-clock state for query reply sequence (0-5).

◆ sync_delay_ticks

uint8_t sync_delay_ticks

Countdown for Set command coalescing (30 = 3s at 100ms).

◆ report_cooldown_ticks

uint16_t report_cooldown_ticks

Cooldown between periodic Report Time events (600 = 60s).

◆ previous_run_state

uint8_t previous_run_state

Last-seen producer node run_state for startup sync detection.

◆ producer_node

void* producer_node

Node pointer for sending (set in setup_producer).


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

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