opentitanlib::app

Struct TransportWrapper

Source
pub struct TransportWrapper { /* private fields */ }

Implementations§

Source§

impl TransportWrapper

Source

pub fn ignore_dft_straps_on_reset(&self) -> Result<()>

Source

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

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

Source

pub fn provides_map(&self) -> Result<&HashMap<String, String>>

Returns a string->string map containing user-defined aspects “provided” by the testbed setup. For instance, whether a SPI flash chip is fitted in the socket, or whether pullup resistors are suitable for high-speed I2C.

Source

pub fn query_provides(&self, key: &str) -> Result<&str>

Source

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

Returns a JtagChain implementation.

Source

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

Returns a SPI Target implementation.

Source

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

Returns a I2C Bus implementation.

Source

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

Returns a Uart implementation.

Source

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

Returns a GpioPin implementation.

Source

pub fn gpio_pins(&self, names: &[String]) -> Result<Vec<Rc<dyn GpioPin>>>

Convenience method, returns a number of GpioPin implementations.

Source

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

Returns a GpioMonitoring implementation.

Source

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

Returns a GpioBitbanging implementation.

Source

pub fn pin_strapping(&self, name: &str) -> Result<PinStrapping>

Source

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

Returns a Emulator implementation.

Source

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

Methods available only on Proxy implementation.

Source

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

Invoke non-standard functionality of some Transport implementations.

Source

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

Source

pub fn apply_default_configuration( &self, strapping_name: Option<&str>, ) -> Result<()>

Configure all pins as input/output, pullup, etc. as declared in configuration files. Also configure SPI port mode/speed, and other similar settings.

Source

pub fn reset_target( &self, reset_delay: Duration, clear_uart_rx: bool, ) -> Result<()>

Source

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

As long as the returned MaintainConnection object is kept by the caller, this driver may assume that no other opentitantool processes attempt to access the same debugger device. This allows for optimzations such as keeping USB handles open across function invocations.

Auto Trait Implementations§

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