pub fn into_reg(&self) -> u8 {
        let l   = (self.step_duration / 0x8000) as u8;
        let dir = self.direction as u8;

        // MSB is undefined and always 1
        (1 << 7) | (l << 4) | (dir << 3) | self.shift
    }
// Retreive value of NR10 register value
Retreive value of NR10 register value
Retreive value of NR10 register value
pub fn into_reg(&self) -> u8 {
        let l   = (self.step_duration / 0x8000) as u8;
        let dir = self.direction as u8;
        // MSB is undefined and always 1
        (1 << 7) | (l << 4) | (dir << 3) | self.shift
    }
pub fn into_reg ( & self ) -> u8 { let l = ( self . step_duration / 0x8000 ) as u8 ; let dir = self . direction as u8 ; // MSB is undefined and always 1 ( 1 << 7 ) | ( l << 4 ) | ( dir << 3 ) | self . shift }
Retreive value of NR10 register value
Retreive value of NR10 register value
&self
&self