pub struct TransportWrapper { /* private fields */ }
Implementations§
Source§impl TransportWrapper
impl TransportWrapper
pub fn ignore_dft_straps_on_reset(&self) -> Result<()>
Sourcepub fn capabilities(&self) -> Result<Capabilities>
pub fn capabilities(&self) -> Result<Capabilities>
Returns a Capabilities
object to check the capabilities of this
transport object.
Sourcepub fn provides_map(&self) -> Result<&HashMap<String, String>>
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.
pub fn query_provides(&self, key: &str) -> Result<&str>
Sourcepub fn jtag(&self, opts: &JtagParams) -> Result<Box<dyn JtagChain + '_>>
pub fn jtag(&self, opts: &JtagParams) -> Result<Box<dyn JtagChain + '_>>
Returns a JtagChain
implementation.
Sourcepub fn gpio_pin(&self, name: &str) -> Result<Rc<dyn GpioPin>>
pub fn gpio_pin(&self, name: &str) -> Result<Rc<dyn GpioPin>>
Returns a GpioPin
implementation.
Sourcepub fn gpio_pins(&self, names: &[String]) -> Result<Vec<Rc<dyn GpioPin>>>
pub fn gpio_pins(&self, names: &[String]) -> Result<Vec<Rc<dyn GpioPin>>>
Convenience method, returns a number of GpioPin
implementations.
Sourcepub fn gpio_monitoring(&self) -> Result<Rc<dyn GpioMonitoring>>
pub fn gpio_monitoring(&self) -> Result<Rc<dyn GpioMonitoring>>
Returns a GpioMonitoring
implementation.
Sourcepub fn gpio_bitbanging(&self) -> Result<Rc<dyn GpioBitbanging>>
pub fn gpio_bitbanging(&self) -> Result<Rc<dyn GpioBitbanging>>
Returns a GpioBitbanging
implementation.
pub fn pin_strapping(&self, name: &str) -> Result<PinStrapping>
Sourcepub fn proxy_ops(&self) -> Result<Rc<dyn ProxyOps>>
pub fn proxy_ops(&self) -> Result<Rc<dyn ProxyOps>>
Methods available only on Proxy implementation.
Sourcepub fn dispatch(&self, action: &dyn Any) -> Result<Option<Box<dyn Annotate>>>
pub fn dispatch(&self, action: &dyn Any) -> Result<Option<Box<dyn Annotate>>>
Invoke non-standard functionality of some Transport implementations.
pub fn nonblocking_help(&self) -> Result<Rc<dyn NonblockingHelp>>
Sourcepub fn apply_default_configuration(
&self,
strapping_name: Option<&str>,
) -> Result<()>
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.
pub fn reset_target( &self, reset_delay: Duration, clear_uart_rx: bool, ) -> Result<()>
Sourcepub fn maintain_connection(&self) -> Result<Rc<dyn MaintainConnection>>
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.