pub const fn resolution_to_awd_left_shift(res: Resolution) -> u32Expand description
Number of bits to left-shift a right-aligned N-bit threshold into the 12-bit AWD register.
The AWD comparison is always performed on left-aligned 12-bit raw data (RM Table 158). DR returns right-aligned N-bit values; this shift converts them to 12-bit threshold space.