pub struct Ultradebug {
pub usb_vid: Option<u16>,
pub usb_pid: Option<u16>,
pub usb_serial: Option<String>,
/* private fields */
}Fields§
§usb_vid: Option<u16>§usb_pid: Option<u16>§usb_serial: Option<String>Implementations§
Source§impl Ultradebug
impl Ultradebug
pub const VID_GOOGLE: u16 = 6_353u16
pub const PID_ULTRADEBUG: u16 = 772u16
Sourcepub fn new(
usb_vid: Option<u16>,
usb_pid: Option<u16>,
usb_serial: Option<String>,
) -> Self
pub fn new( usb_vid: Option<u16>, usb_pid: Option<u16>, usb_serial: Option<String>, ) -> Self
Create a new Ultradebug struct, optionally specifying the USB vid/pid/serial number.
Sourcepub fn from_interface(&self, interface: Interface) -> Result<Device>
pub fn from_interface(&self, interface: Interface) -> Result<Device>
Construct an ftdi::Device for the specified interface on the Ultradebug device.
Trait Implementations§
Source§impl Default for Ultradebug
impl Default for Ultradebug
Source§fn default() -> Ultradebug
fn default() -> Ultradebug
Returns the “default value” for a type. Read more
Source§impl Transport for Ultradebug
impl Transport for Ultradebug
Source§fn capabilities(&self) -> Result<Capabilities>
fn capabilities(&self) -> Result<Capabilities>
Returns a
Capabilities object to check the capabilities of this
transport object.Source§fn gpio_pin(&self, instance: &str) -> Result<Rc<dyn GpioPin>>
fn gpio_pin(&self, instance: &str) -> Result<Rc<dyn GpioPin>>
Returns a
GpioPin implementation.Source§fn apply_default_configuration(&self) -> Result<()>
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 jtag(&self, _opts: &JtagParams) -> Result<Box<dyn JtagChain + '_>>
fn jtag(&self, _opts: &JtagParams) -> Result<Box<dyn JtagChain + '_>>
Returns a
JtagChain implementation.Source§fn gpio_monitoring(&self) -> Result<Rc<dyn GpioMonitoring>>
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>>
fn gpio_bitbanging(&self) -> Result<Rc<dyn GpioBitbanging>>
Returns a
GpioBitbanging implementation, for timed and synchronized manipulation of
multiple GPIO pins.Source§fn proxy_ops(&self) -> Result<Rc<dyn ProxyOps>>
fn proxy_ops(&self) -> Result<Rc<dyn ProxyOps>>
Methods available only on Proxy implementation.
Source§fn dispatch(&self, _action: &dyn Any) -> Result<Option<Box<dyn Annotate>>>
fn dispatch(&self, _action: &dyn Any) -> Result<Option<Box<dyn Annotate>>>
Invoke non-standard functionality of some Transport implementations.
Source§fn maintain_connection(&self) -> Result<Rc<dyn MaintainConnection>>
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 optimizations such as keeping USB handles open across function invocations.Source§fn nonblocking_help(&self) -> Result<Rc<dyn NonblockingHelp>>
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 !Freeze for Ultradebug
impl !RefUnwindSafe for Ultradebug
impl !Send for Ultradebug
impl !Sync for Ultradebug
impl Unpin for Ultradebug
impl !UnwindSafe for Ultradebug
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more