pub const fn drift_correction(spreading_factor: u8) -> RegisterExpand description
The drift correction applied at one spreading factor.
Four share a byte, two bits each, the same way the tracking settings do.
§Arguments
spreading_factor- from 5 to 12. Anything outside is clamped into it.
§Returns
The register.
§Examples
use pamoja_radios::sx1302::register::drift_correction;
assert_eq!(drift_correction(5).offset, 0);
assert_eq!(drift_correction(12).offset, 6);