fromByte

fun fromByte(byte: Byte?): ScanMode

Helper to find a ScanMode enum from a byte value, or ScanMode.NA for invalid input.