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__) icumode_t
ICU driver mode.
void icu_lld_start(ICUDriver *icup)
Configures and activates the ICU peripheral.
bool icu_lld_wait_capture(ICUDriver *icup)
Waits for a completed capture.
void icu_lld_stop_capture(ICUDriver *icup)
Stops the input capture.
ICUDriver ICUD1
ICUD1 driver identifier.
Driver configuration structure.
void icu_lld_enable_notifications(ICUDriver *icup)
Enables notifications.
Structure representing an ICU driver.
icustate_t
Driver state machine possible states.
icucallback_t width_cb
Callback for pulse width measurement.
void icu_lld_stop(ICUDriver *icup)
Deactivates the ICU peripheral.
icufreq_t frequency
Timer clock in Hz.
uint32_t icufreq_t
ICU frequency type.
const ICUConfig * config
Current configuration data.
icumode_t mode
Driver mode.
void(* icucallback_t)(ICUDriver *icup)
ICU notification callback type.
uint32_t icucnt_t
ICU counter type.
icustate_t state
Driver state.
void icu_lld_start_capture(ICUDriver *icup)
Starts the input capture.
void icu_lld_init(void)
Low level ICU driver initialization.
icucallback_t overflow_cb
Callback for timer overflow.
void icu_lld_disable_notifications(ICUDriver *icup)
Disables notifications.
icucallback_t period_cb
Callback for cycle period measurement.