Can STM32 SPI frequency be a random number, like 12,345,678Hz (subject to rounding resolution of the prescaler divider N)?
To optimize highest transfer speed between MCU and sensor, finish the task and back to sleep for minimum cell energy.
Presumably, we can ramp up SPI speed until error, then, scale back nnn% for margin.
Many thanks