pub trait I2sClock: Instance {
// Required method
fn i2s_frequency() -> Hertz;
}Expand description
Clock used to derive the I2S bit clock.
Usually the SPI kernel clock, but the metadata can describe a separate
kernel clock for the I2S extension block (e.g. STM32F3, where the I2S
clock is selected at runtime by RCC_CFGR.I2SSRC), in which case the
generated implementation resolves that clock instead.
Required Methods§
Sourcefn i2s_frequency() -> Hertz
fn i2s_frequency() -> Hertz
Frequency of the I2S clock (I2SxCLK).
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".