pub struct Config {
pub usb488: bool,
pub interrupt_endpoint: bool,
pub interrupt_poll_ms: u8,
pub capabilities: Capabilities,
pub out_endpoint_options: EndpointOptions,
pub in_endpoint_options: EndpointOptions,
}Expand description
Configuration for the USBTMC device class.
Fields§
§usb488: boolWhether to enable the USB488 subclass protocol.
interrupt_endpoint: boolWhether to allocate an Interrupt-IN endpoint for SRQ notifications.
interrupt_poll_ms: u8Polling interval in ms for the Interrupt-IN endpoint.
capabilities: CapabilitiesCapabilities reported to the host in GET_CAPABILITIES.
out_endpoint_options: EndpointOptionsOptions for the bulk OUT endpoint, which receives the data the host sends.
in_endpoint_options: EndpointOptionsOptions for the bulk IN endpoint, which sends data to the host.
Implementations§
Trait Implementations§
impl Copy for Config
Auto Trait Implementations§
impl Forget for Config
impl Freeze for Config
impl Move for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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