pub fn new(serial: u32) -> Self {
        let xorbase = (serial + 0x8AEF9335).to_le_bytes();
        SparsnasDecoder {
            serial,
            key: [0x47, xorbase[2], xorbase[3], xorbase[0], xorbase[1]],
        }
    }
/// Create a new decoder for specified serial number.
///
/// The serial number is on a label behind the batteries, 9 digits
/// (nnn-nnn-nnn)
Create a new decoder for specified serial number.
The serial number is on a label behind the batteries, 9 digits
(nnn-nnn-nnn)
Create a new decoder for specified serial number . The serial number is on a label behind the batteries 9 digits ( nnn - nnn - nnn )
pub fn new(serial: u32) -> Self {
        let xorbase = (serial + 0x8AEF9335).to_le_bytes();
        SparsnasDecoder {
            serial,
            key: [0x47, xorbase[2], xorbase[3], xorbase[0], xorbase[1]],
        }
    }
pub fn new ( serial : u32 ) -> Self { let xorbase = ( serial + 0x8AEF9335 ) . to_le_bytes ( ) ; SparsnasDecoder { serial , key : [ 0x47 , xorbase [ 2 ] , xorbase [ 3 ] , xorbase [ 0 ] , xorbase [ 1 ] ] , } }
Create a new decoder for specified serial number.
Create a new decoder for specified serial number .
serial
u32
serial
u32