Go to the documentation of this file.
28 #if (HAL_USE_ICU == TRUE) || defined(__DOXYGEN__)
47 #if !defined(PLATFORM_ICU_USE_ICU1) || defined(__DOXYGEN__)
48 #define PLATFORM_ICU_USE_ICU1 FALSE
120 #if defined(ICU_DRIVER_EXT_FIELDS)
121 ICU_DRIVER_EXT_FIELDS
140 #define icu_lld_get_width(icup) 0
152 #define icu_lld_get_period(icup) 0
164 #define icu_lld_are_notifications_enabled(icup) false
170 #if (PLATFORM_ICU_USE_ICU1 == TRUE) && !defined(__DOXYGEN__)
icustate_t
Driver state machine possible states.
void icu_lld_stop(ICUDriver *icup)
Deactivates the ICU peripheral.
icustate_t state
Driver state.
ICUDriver ICUD1
ICUD1 driver identifier.
void icu_lld_enable_notifications(ICUDriver *icup)
Enables notifications.
const ICUConfig * config
Current configuration data.
uint32_t icucnt_t
ICU counter type.
void icu_lld_start(ICUDriver *icup)
Configures and activates the ICU peripheral.
icucallback_t width_cb
Callback for pulse width measurement.
icufreq_t frequency
Timer clock in Hz.
void icu_lld_disable_notifications(ICUDriver *icup)
Disables notifications.
Structure representing an ICU driver.
icumode_t mode
Driver mode.
Driver configuration structure.
void icu_lld_init(void)
Low level ICU driver initialization.
void(* icucallback_t)(ICUDriver *icup)
ICU notification callback type.
bool icu_lld_wait_capture(ICUDriver *icup)
Waits for a completed capture.
uint32_t icufreq_t
ICU frequency type.
void icu_lld_start_capture(ICUDriver *icup)
Starts the input capture.
icumode_t
ICU driver mode.
void icu_lld_stop_capture(ICUDriver *icup)
Stops the input capture.
icucallback_t period_cb
Callback for cycle period measurement.
icucallback_t overflow_cb
Callback for timer overflow.