ChibiOS/HAL  6.1.0
ICUConfig Struct Reference

Driver configuration structure. More...

#include <hal_icu_lld.h>

Collaboration diagram for ICUConfig:
Collaboration graph

Data Fields

icumode_t mode
 Driver mode. More...
 
icufreq_t frequency
 Timer clock in Hz. More...
 
icucallback_t width_cb
 Callback for pulse width measurement. More...
 
icucallback_t period_cb
 Callback for cycle period measurement. More...
 
icucallback_t overflow_cb
 Callback for timer overflow. More...
 

Detailed Description

Driver configuration structure.

Note
It could be empty on some architectures.

Definition at line 82 of file hal_icu_lld.h.

Field Documentation

icumode_t ICUConfig::mode

Driver mode.

Definition at line 86 of file hal_icu_lld.h.

icufreq_t ICUConfig::frequency

Timer clock in Hz.

Note
The low level can use assertions in order to catch invalid frequency specifications.

Definition at line 92 of file hal_icu_lld.h.

icucallback_t ICUConfig::width_cb

Callback for pulse width measurement.

Definition at line 96 of file hal_icu_lld.h.

icucallback_t ICUConfig::period_cb

Callback for cycle period measurement.

Definition at line 100 of file hal_icu_lld.h.

icucallback_t ICUConfig::overflow_cb

Callback for timer overflow.

Definition at line 104 of file hal_icu_lld.h.