opentitanlib::transport::hyperdebug

Struct Hyperdebug

Source
pub struct Hyperdebug<T: Flavor> { /* private fields */ }
Expand description

Implementation of the Transport trait for HyperDebug based on the Nucleo-L552ZE-Q.

Implementations§

Source§

impl<T: Flavor> Hyperdebug<T>

Source

pub fn open( usb_vid: Option<u16>, usb_pid: Option<u16>, usb_serial: Option<&str>, ) -> Result<Self>

Establish connection with a particular HyperDebug.

Trait Implementations§

Source§

impl<T: Flavor> Transport for Hyperdebug<T>

Source§

fn maintain_connection(&self) -> Result<Rc<dyn MaintainConnection>>

The way that the HyperDebug driver allows callers to request optimization for a sequence of operations without other opentitantool processes meddling with the USB devices, is to let the caller hold an Rc-reference to the Conn struct, thereby keeping the USB connection alive. Callers should only hold ond to the object as long as they can guarantee that no other opentitantool processes simultaneously attempt to access the same HyperDebug USB device.

Source§

fn capabilities(&self) -> Result<Capabilities>

Returns a Capabilities object to check the capabilities of this transport object.
Source§

fn apply_default_configuration(&self) -> Result<()>

Resets the transport to power-on condition. That is, pin/uart/spi configuration reverts to default, ongoing operations are cancelled, etc.
Source§

fn spi(&self, instance: &str) -> Result<Rc<dyn Target>>

Returns a SPI Target implementation.
Source§

fn i2c(&self, name: &str) -> Result<Rc<dyn Bus>>

Returns a I2C Bus implementation.
Source§

fn uart(&self, instance: &str) -> Result<Rc<dyn Uart>>

Returns a Uart implementation.
Source§

fn gpio_pin(&self, pinname: &str) -> Result<Rc<dyn GpioPin>>

Returns a GpioPin implementation.
Source§

fn gpio_monitoring(&self) -> Result<Rc<dyn GpioMonitoring>>

Returns a GpioMonitoring implementation, for logic analyzer functionality.
Source§

fn gpio_bitbanging(&self) -> Result<Rc<dyn GpioBitbanging>>

Returns a GpioBitbanging implementation, for timed and synchronized manipulation of multiple GPIO pins.
Source§

fn dispatch(&self, action: &dyn Any) -> Result<Option<Box<dyn Annotate>>>

Invoke non-standard functionality of some Transport implementations.
Source§

fn jtag(&self, opts: &JtagParams) -> Result<Box<dyn JtagChain + '_>>

Returns a JtagChain implementation.
Source§

fn emulator(&self) -> Result<Rc<dyn Emulator>>

Returns a Emulator implementation.
Source§

fn proxy_ops(&self) -> Result<Rc<dyn ProxyOps>>

Methods available only on Proxy implementation.
Source§

fn nonblocking_help(&self) -> Result<Rc<dyn NonblockingHelp>>

Before nonblocking operations can be used on Uart or other traits, this NonblockingHelp object must be invoked, in order to get the Transport implementation a chance to register its internal event sources with the main event loop.

Auto Trait Implementations§

§

impl<T> !Freeze for Hyperdebug<T>

§

impl<T> !RefUnwindSafe for Hyperdebug<T>

§

impl<T> !Send for Hyperdebug<T>

§

impl<T> !Sync for Hyperdebug<T>

§

impl<T> Unpin for Hyperdebug<T>
where T: Unpin,

§

impl<T> !UnwindSafe for Hyperdebug<T>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V