HardFOC Core
API reference
Loading...
Searching...
No Matches
Public Attributes | List of all members
hf_co_port_ops_t Struct Reference

#include <hf_co_driver.h>

Public Attributes

hf_co_tx_result_t(* send )(void *ctx, const hf_co_frame_t *frame)
 
bool(* status )(void *ctx, hf_co_port_status_t *out)
 
bool(* recover )(void *ctx)
 

Detailed Description

Port callbacks. send is required; the others may be NULL.

Member Data Documentation

◆ recover

bool(* hf_co_port_ops_t::recover) (void *ctx)

Request bus-off recovery; return false if refused. Called without the CO lock.

◆ send

hf_co_tx_result_t(* hf_co_port_ops_t::send) (void *ctx, const hf_co_frame_t *frame)

Queue frame without blocking. Called with the CO CAN-send lock held.

◆ status

bool(* hf_co_port_ops_t::status) (void *ctx, hf_co_port_status_t *out)

Fill out; return false if unavailable. Called from CO_CANmodule_process().


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