|
HF Interface Wrapper 0.1.0-dev
Embedded C++ hardware abstraction layer
|
Abstract base class for CAN bus implementations in the HardFOC system. More...
Go to the source code of this file.
Classes | |
| struct | hf_can_config_t |
| Platform-agnostic CAN bus configuration. More... | |
| struct | hf_can_message_t |
| Platform-agnostic CAN message structure. More... | |
| struct | hf_can_status_t |
| CAN bus status information structure. More... | |
| struct | hf_can_reception_info_t |
| CAN-FD specific receive callback with enhanced information. More... | |
| struct | hf_can_statistics_t |
| CAN bus statistics structure for performance monitoring. More... | |
| struct | hf_can_diagnostics_t |
| CAN diagnostics structure for detailed error analysis. More... | |
| class | BaseCan |
| Abstract base class defining the unified CAN bus API. More... | |
Macros | |
| #define | HF_CAN_ERR_LIST(X) |
| HardFOC CAN error codes. | |
| #define | X(NAME, VALUE, DESC) NAME = VALUE, |
| #define | X(NAME, VALUE, DESC) |
Typedefs | |
| using | hf_can_receive_callback_t = void (*)(const hf_can_message_t& message) |
| CAN message receive callback function type. | |
| using | hf_can_fd_receive_callback_t |
Functions | |
| constexpr std::string_view | HfCanErrToString (hf_can_err_t err) noexcept |
| Convert hf_can_err_t to human-readable string. | |
Abstract base class for CAN bus implementations in the HardFOC system.
This header-only file defines the abstract base class for CAN bus communication that provides a consistent API across different CAN controller implementations. Concrete implementations for various microcontrollers inherit from this class.
ERROR HANDLING:
| #define X | ( | NAME, | |
| VALUE, | |||
| DESC ) NAME = VALUE, |
| #define X | ( | NAME, | |
| VALUE, | |||
| DESC ) |
| using hf_can_receive_callback_t = void (*)(const hf_can_message_t& message) |
CAN message receive callback function type.
|
strong |
|
constexprnoexcept |
Convert hf_can_err_t to human-readable string.
| err | The error code to convert |