fn from_raw(data: &[u32; 8]) -> Self {
        let jep106id = (((data[2] & 0x07) << 4) | ((data[1] >> 4) & 0x0F)) as u8;
        let jep106 = jep106::JEP106Code::new((data[4] & 0x0F) as u8, jep106id);
        let legacy = (data[2] & 0x8) > 1;

        PeripheralID {
            REVAND: ((data[3] >> 4) & 0x0F) as u8,
            CMOD: match (data[3] & 0x0F) as u8 {
                0x0 => ComponentModification::No,
                v => ComponentModification::Yes(v),
            },
            REVISION: ((data[2] >> 4) & 0x0F) as u8,
            JEP106: if legacy { Some(jep106) } else { None },
            PART: (((data[1] & 0x0F) << 8) | (data[0] & 0xFF)) as u16,
            SIZE: 2u32.pow((data[4] >> 4) & 0x0F) as u8,
        }
    }
/// Extract the peripheral ID of a CoreSight component table.
Extract the peripheral ID of a CoreSight component table.
Extract the peripheral ID of a CoreSight component table .
fn from_raw(data: &[u32; 8]) -> Self {
        let jep106id = (((data[2] & 0x07) << 4) | ((data[1] >> 4) & 0x0F)) as u8;
        let jep106 = jep106::JEP106Code::new((data[4] & 0x0F) as u8, jep106id);
        let legacy = (data[2] & 0x8) > 1;
        PeripheralID {
            REVAND: ((data[3] >> 4) & 0x0F) as u8,
            CMOD: match (data[3] & 0x0F) as u8 {
                0x0 => ComponentModification::No,
                v => ComponentModification::Yes(v),
            },
            REVISION: ((data[2] >> 4) & 0x0F) as u8,
            JEP106: if legacy { Some(jep106) } else { None },
            PART: (((data[1] & 0x0F) << 8) | (data[0] & 0xFF)) as u16,
            SIZE: 2u32.pow((data[4] >> 4) & 0x0F) as u8,
        }
    }
fn from_raw ( data : & [ u32 ; 8 ] ) -> Self { let jep106id = ( ( ( data [ 2 ] & 0x07 ) << 4 ) | ( ( data [ 1 ] >> 4 ) & 0x0F ) ) as u8 ; let jep106 = jep106 :: JEP106Code :: new ( ( data [ 4 ] & 0x0F ) as u8 , jep106id ) ; let legacy = ( data [ 2 ] & 0x8 ) > 1 ; PeripheralID { REVAND : ( ( data [ 3 ] >> 4 ) & 0x0F ) as u8 , CMOD : match ( data [ 3 ] & 0x0F ) as u8 { 0x0 => ComponentModification :: No , v => ComponentModification :: Yes ( v ) , } , REVISION : ( ( data [ 2 ] >> 4 ) & 0x0F ) as u8 , JEP106 : if legacy { Some ( jep106 ) } else { None } , PART : ( ( ( data [ 1 ] & 0x0F ) << 8 ) | ( data [ 0 ] & 0xFF ) ) as u16 , SIZE : 2u32 . pow ( ( data [ 4 ] >> 4 ) & 0x0F ) as u8 , } }
Extract the peripheral ID of a CoreSight component table.
Extract the peripheral ID of a CoreSight component table .
data
&[u32; 8]