⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

fp_from_volume

Function fp_from_volume 

Source
pub fn fp_from_volume(volume: u16) -> FixedPoint
Expand description

Convert a volume value (0..65535) to fixed-point (0.0..1.0)

0 maps to 0x0000_0000 (0.0), 65535 maps to 0x0000_FFFF (~1.0).