#[repr(C, packed(1))]pub struct RdxUsbDeviceInfo {
pub sku: u16,
pub interface_idx: u8,
pub n_channels: u8,
pub protocol_version_major: u16,
pub protocol_version_minor: u16,
pub reserved: [u8; 24],
}
Expand description
Struct returned by the device info control request
Fields§
§sku: u16
The SKU index of the device (the first number in the serial)
interface_idx: u8
The interface index that the RdxUSB interface uses
n_channels: u8
The number of channels that the RdxUSB interface supports (0-indexed)
protocol_version_major: u16
The major protocol version
protocol_version_minor: u16
The minor protocol version
reserved: [u8; 24]
Reserved bits
Implementations§
Trait Implementations§
Source§impl Clone for RdxUsbDeviceInfo
impl Clone for RdxUsbDeviceInfo
Source§fn clone(&self) -> RdxUsbDeviceInfo
fn clone(&self) -> RdxUsbDeviceInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RdxUsbDeviceInfo
impl Debug for RdxUsbDeviceInfo
Source§impl PartialEq for RdxUsbDeviceInfo
impl PartialEq for RdxUsbDeviceInfo
impl Copy for RdxUsbDeviceInfo
impl Eq for RdxUsbDeviceInfo
impl Pod for RdxUsbDeviceInfo
impl StructuralPartialEq for RdxUsbDeviceInfo
Auto Trait Implementations§
impl Freeze for RdxUsbDeviceInfo
impl RefUnwindSafe for RdxUsbDeviceInfo
impl Send for RdxUsbDeviceInfo
impl Sync for RdxUsbDeviceInfo
impl Unpin for RdxUsbDeviceInfo
impl UnwindSafe for RdxUsbDeviceInfo
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
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.