pub const fn calculate_pio_clock_divider_value_x256(
sys_hz: u32,
target_hz: u32,
) -> u32Expand description
Calculate a PIO clock divider value based on the desired target frequency.
§Arguments
sys_hz- The system clock frequency in Hztarget_hz- The desired PIO clock frequency in Hz
§Returns
A divider value suitable for Config::clock_divider_x256,
as a fixed-point number with 16 integer bits and 8 fractional bits.