|
HF Interface Wrapper 0.1.0-dev
Embedded C++ hardware abstraction layer
|
Abstract base class for Programmable IO Channel implementations in the HardFOC system. More...
Go to the source code of this file.
Classes | |
| struct | hf_pio_channel_config_t |
| PIO channel configuration structure. More... | |
| struct | hf_pio_symbol_t |
| PIO symbol structure for precise timing. More... | |
| struct | hf_pio_channel_status_t |
| PIO channel status information. More... | |
| struct | hf_pio_capabilities_t |
| PIO capability information. More... | |
| struct | hf_pio_statistics_t |
| PIO operation statistics. More... | |
| struct | hf_pio_diagnostics_t |
| PIO diagnostic information. More... | |
| class | BasePio |
| Abstract base class for Programmable IO Channel implementations. More... | |
Macros | |
| #define | HF_PIO_ERR_LIST(X) |
| HardFOC PIO error codes. | |
| #define | X(NAME, VALUE, DESC) NAME = VALUE, |
| #define | X(NAME, VALUE, DESC) |
Typedefs | |
| using | hf_pio_transmit_callback_t |
| Callback for PIO transmission complete events. | |
| using | hf_pio_receive_callback_t = void(*)( hf_u8_t channel_id, const hf_pio_symbol_t* symbols, size_t symbol_count, void* user_data) |
| Callback for PIO reception complete events. | |
| using | hf_pio_error_callback_t |
| Callback for PIO error events. | |
Functions | |
| constexpr std::string_view | HfPioErrToString (hf_pio_err_t err) noexcept |
| Convert hf_pio_err_t to human-readable string. | |
Abstract base class for Programmable IO Channel implementations in the HardFOC system.
This header defines the abstract base class for precise, buffered digital signal I/O that provides a consistent API across different PIO implementations. Concrete implementations for various microcontrollers inherit from this class.
| #define X | ( | NAME, | |
| VALUE, | |||
| DESC ) NAME = VALUE, |
| #define X | ( | NAME, | |
| VALUE, | |||
| DESC ) |
| using hf_pio_error_callback_t |
Callback for PIO error events.
| channel_id | Channel that encountered error |
| error | Error that occurred |
| user_data | User-provided data |
| using hf_pio_receive_callback_t = void(*)( hf_u8_t channel_id, const hf_pio_symbol_t* symbols, size_t symbol_count, void* user_data) |
Callback for PIO reception complete events.
| channel_id | Channel that received data |
| symbols | Received symbols |
| symbol_count | Number of symbols received |
| user_data | User-provided data |
Callback for PIO transmission complete events.
| channel_id | Channel that completed transmission |
| symbols_sent | Number of symbols transmitted |
| user_data | User-provided data |
|
strong |
|
strong |
|
strong |
|
strong |
|
constexprnoexcept |
Convert hf_pio_err_t to human-readable string.
| err | The error code to convert |