pub fn peripheral_id(&mut self) -> Result<PeripheralID, RomTableError> {
        let mut probe = self.probe.borrow_mut();

        let mut data = [0u32; 8];

        let peripheral_id_address = self.base_address + 0xFD0;

        debug!(
            "Reading debug id from address: {:08x}",
            peripheral_id_address
        );

        probe.read_block32(self.base_address as u32 + 0xFD0, &mut data[4..])?;
        probe.read_block32(self.base_address as u32 + 0xFE0, &mut data[..4])?;

        debug!("Raw peripheral id: {:x?}", data);

        Ok(PeripheralID::from_raw(&data))
    }
/// Reads the peripheral ID from a component info table.
Reads the peripheral ID from a component info table.
Reads the peripheral ID from a component info table .
pub fn peripheral_id(&mut self) -> Result<PeripheralID, RomTableError> {
        let mut probe = self.probe.borrow_mut();
        let mut data = [0u32; 8];
        let peripheral_id_address = self.base_address + 0xFD0;
        debug!(
            "Reading debug id from address: {:08x}",
            peripheral_id_address
        );
        probe.read_block32(self.base_address as u32 + 0xFD0, &mut data[4..])?;
        probe.read_block32(self.base_address as u32 + 0xFE0, &mut data[..4])?;
        debug!("Raw peripheral id: {:x?}", data);
        Ok(PeripheralID::from_raw(&data))
    }
pub fn peripheral_id ( & mut self ) -> Result < PeripheralID , RomTableError > { let mut probe = self . probe . borrow_mut ( ) ; let mut data = [ 0u32 ; 8 ] ; let peripheral_id_address = self . base_address + 0xFD0 ; debug ! ( " " peripheral_id_address ) ; probe . read_block32 ( self . base_address as u32 + 0xFD0 , & mut data [ 4 .. ] ) ? ; probe . read_block32 ( self . base_address as u32 + 0xFE0 , & mut data [ .. 4 ] ) ? ; debug ! ( " " data ) ; Ok ( PeripheralID :: from_raw ( & data ) ) }
Reads the peripheral ID from a component info table.
Reads the peripheral ID from a component info table .
&mut self