/// Returns the ST register as a slice of ten u8's (80 bit value).
///
/// Little endian byte order of course.
Returns the ST register as a slice of ten u8's (80 bit value).
Little endian byte order of course.
Returns the ST register as a slice of ten u8 ' s ( 80 bit value ) . Little endian byte order of course .
pub fn st(&self, idx: StReg) -> [u8; 10] {
        use core::convert::TryInto;
        let val = match idx {
            StReg::St0 => self.st[0],
            StReg::St1 => self.st[1],
            StReg::St2 => self.st[2],
            StReg::St3 => self.st[3],
            StReg::St4 => self.st[4],
            StReg::St5 => self.st[5],
            StReg::St6 => self.st[6],
            StReg::St7 => self.st[7],
        }
        .to_be_bytes();
        val[0..10].try_into().unwrap()
    }
pub fn st ( & self , idx : StReg ) -> [ u8 ; 10 ] { use core :: convert :: TryInto ; let val = match idx { StReg :: St0 => self . st [ 0 ] , StReg :: St1 => self . st [ 1 ] , StReg :: St2 => self . st [ 2 ] , StReg :: St3 => self . st [ 3 ] , StReg :: St4 => self . st [ 4 ] , StReg :: St5 => self . st [ 5 ] , StReg :: St6 => self . st [ 6 ] , StReg :: St7 => self . st [ 7 ] , } . to_be_bytes ( ) ; val [ 0 .. 10 ] . try_into ( ) . unwrap ( ) }
Returns the ST register as a slice of ten u8's (80 bit value).
Returns the ST register as a slice of ten u8 ' s ( 80 bit value ) .
&self
idx
StReg