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: UsbConcentratorThe concentrator, reset and answering.
listener: UsbListenerThe 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: IdentityWho the bridge said it was, which a caller compares against the firmware this crate
was written for with Identity::matches_firmware.
Auto Trait Implementations§
impl Freeze for UsbCard
impl RefUnwindSafe for UsbCard
impl Send for UsbCard
impl Sync for UsbCard
impl Unpin for UsbCard
impl UnsafeUnpin for UsbCard
impl UnwindSafe for UsbCard
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