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

Timer field union for openlcb_msg_t. More...

Data Fields

uint8_t assembly_ticks
 
struct { 
 
   uint8_t   tick_snapshot: 5 
 
   uint8_t   retry_count: 3 
 
datagram 
 

Detailed Description

Timer field union for openlcb_msg_t.

Shares one byte between two mutually exclusive uses:

  • assembly_ticks: full 8-bit tick snapshot for multi-frame assembly timeout (used by CAN RX message handler and BufferList timeout).
  • datagram: split into a 5-bit tick snapshot and a 3-bit retry counter for datagram rejected/resend logic.

Only one interpretation is active at a time depending on the message lifecycle stage.

Field Documentation

◆ assembly_ticks

uint8_t assembly_ticks

Full 8-bit tick for multi-frame assembly timeout

◆ tick_snapshot

uint8_t tick_snapshot

5-bit tick snapshot (0-31) for datagram retry timeout

◆ retry_count

uint8_t retry_count

Datagram retry counter (0-7)

◆ [struct]

struct { ... } datagram

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

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