pub fn bus_register(millivolts: u32) -> u16Expand description
Builds the bus voltage register a monitor reports for a bus voltage.
The inverse of bus_millivolts, with the conversion-ready flag set and the
overflow flag clear, which is what a completed conversion reads as.
§Arguments
millivolts- the bus voltage in millivolts.
§Returns
The bus voltage register, the voltage in bits 15:3 at 4 mV per count.