Skip to main content

UsbCard

Struct UsbCard 

Source
pub struct UsbCard {
    pub concentrator: UsbConcentrator,
    pub listener: UsbListener,
    pub bridge: Shared<Port>,
    pub identity: Identity,
}
Expand description

A USB card, opened: its concentrator, and the bridge everything on the card shares.

Fields§

§concentrator: UsbConcentrator

The concentrator, reset and answering.

§listener: UsbListener

The SX1261 on the card, for a card that carries one, not yet brought up.

It shares the bridge with the concentrator under its own target and reset pin, so it is driven while the concentrator runs. Sx1261::bring_up readies it; a card without one simply never answers it.

§bridge: Shared<Port>

The bridge, for the radio beside the concentrator and for the card’s own status.

§identity: Identity

Who the bridge said it was, which a caller compares against the firmware this crate was written for with Identity::matches_firmware.

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, 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.