|
OpenLcbCLib 1.0 Alpha
OpenSource C Library to create OpenLcb/Lcc Nodes
|
Dependency-injection interface for the CAN transmit message handlers. More...
Data Fields | |
| bool(* | transmit_can_frame )(can_msg_t *can_msg) |
| REQUIRED. Write a fully-built can_msg_t to the CAN controller. | |
| void(* | on_transmit )(can_msg_t *can_msg) |
| OPTIONAL. Called immediately after a successful transmission. | |
Dependency-injection interface for the CAN transmit message handlers.
Provides the hardware transmit callback (REQUIRED) and an optional post-transmit notification callback.
| bool(* transmit_can_frame) (can_msg_t *can_msg) |
REQUIRED. Write a fully-built can_msg_t to the CAN controller.
Called after the frame is constructed. The Tx state machine pre-checks buffer availability via is_tx_buffer_empty, so this should normally succeed.
| void(* on_transmit) (can_msg_t *can_msg) |
OPTIONAL. Called immediately after a successful transmission.
Useful for counters, LEDs, or protocol analysers. Must execute quickly (microseconds). May be NULL.
Copyright (c) 2026 Jim Kueneman all rights reserved. See the License