|
HF Interface Wrapper 0.1.0-dev
Embedded C++ hardware abstraction layer
|
ESP32 base type definitions for hardware abstraction. More...
Go to the source code of this file.
Macros | |
| #define | HF_TICKS_FROM_MS(ms) (pdMS_TO_TICKS(ms)) |
| Convert milliseconds to RTOS ticks for operations. | |
| #define | HF_MS_FROM_TICKS(ticks) ((ticks) * portTICK_PERIOD_MS) |
| #define | HF_US_TO_TICKS(us) ((us) / (portTICK_PERIOD_MS * 1000)) |
| #define | HF_TICKS_TO_US(ticks) ((ticks) * portTICK_PERIOD_MS * 1000) |
Typedefs | |
| using | hf_timeout_ms_t = uint32_t |
| Timeout value in milliseconds. | |
| using | hf_timestamp_us_t = uint64_t |
| High-resolution timing types for operations. | |
| using | hf_timestamp_ns_t = uint64_t |
| Nanosecond timestamp. | |
| using | hf_duration_us_t = uint32_t |
| Duration in microseconds. | |
| using | hf_duration_ns_t = uint32_t |
| Duration in nanoseconds. | |
Enumerations | |
| enum class | hf_power_domain_t : uint8_t { HF_POWER_DOMAIN_CPU = 0 , HF_POWER_DOMAIN_RTC_PERIPH , HF_POWER_DOMAIN_XTAL , HF_POWER_DOMAIN_MODEM , HF_POWER_DOMAIN_VDDSDIO , HF_POWER_DOMAIN_TOP } |
| ESP32 power domain configuration for operations. More... | |
| enum class | hf_sleep_mode_t : uint8_t { HF_SLEEP_MODE_NONE = 0 , HF_SLEEP_MODE_LIGHT , HF_SLEEP_MODE_DEEP , HF_SLEEP_MODE_HIBERNATION } |
| ESP32 sleep mode types. More... | |
Variables | |
| static constexpr hf_timeout_ms_t | HF_TIMEOUT_NEVER = 0xFFFFFFFF |
| static constexpr hf_timeout_ms_t | HF_TIMEOUT_IMMEDIATE = 0 |
| static constexpr hf_timeout_ms_t | HF_TIMEOUT_DEFAULT = 1000 |
| static constexpr uint32_t | HF_ADC_DEFAULT_SAMPLING_FREQ = 1000U |
| static constexpr size_t | HF_ADC_DMA_BUFFER_SIZE_DEFAULT = 1024U |
ESP32 base type definitions for hardware abstraction.
This header defines the common base types and includes that are shared across all ESP32 peripheral type definitions. Clean and minimal approach.
| #define HF_MS_FROM_TICKS | ( | ticks | ) | ((ticks) * portTICK_PERIOD_MS) |
| #define HF_TICKS_FROM_MS | ( | ms | ) | (pdMS_TO_TICKS(ms)) |
Convert milliseconds to RTOS ticks for operations.
| ms | Milliseconds to convert |
| #define HF_TICKS_TO_US | ( | ticks | ) | ((ticks) * portTICK_PERIOD_MS * 1000) |
| #define HF_US_TO_TICKS | ( | us | ) | ((us) / (portTICK_PERIOD_MS * 1000)) |
| using hf_duration_ns_t = uint32_t |
Duration in nanoseconds.
| using hf_duration_us_t = uint32_t |
Duration in microseconds.
| using hf_timeout_ms_t = uint32_t |
Timeout value in milliseconds.
| using hf_timestamp_ns_t = uint64_t |
Nanosecond timestamp.
| using hf_timestamp_us_t = uint64_t |
High-resolution timing types for operations.
Microsecond timestamp
|
strong |
ESP32 power domain configuration for operations.
|
strong |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |