#[repr(C, packed(1))]pub struct GsDeviceBtConst {
pub feature: u32,
pub fclk_can: u32,
pub tseg1_min: u32,
pub tseg1_max: u32,
pub tseg2_min: u32,
pub tseg2_max: u32,
pub sjw_max: u32,
pub brp_min: u32,
pub brp_max: u32,
pub brp_inc: u32,
}Expand description
Response to GS_USB_BREQ_BT_CONST — CAN bit-timing constraints.
Fields§
§feature: u32Feature flags (reserved).
fclk_can: u32CAN peripheral clock frequency in Hz.
tseg1_min: u32Minimum time segment 1 (in time quanta).
tseg1_max: u32Maximum time segment 1.
tseg2_min: u32Minimum time segment 2.
tseg2_max: u32Maximum time segment 2.
sjw_max: u32Maximum Synchronisation Jump Width.
brp_min: u32Minimum Baud Rate Prescaler.
brp_max: u32Maximum Baud Rate Prescaler.
brp_inc: u32BRP increment (usually 1).
Implementations§
Trait Implementations§
Source§impl Clone for GsDeviceBtConst
impl Clone for GsDeviceBtConst
impl Copy for GsDeviceBtConst
Source§impl Debug for GsDeviceBtConst
impl Debug for GsDeviceBtConst
Auto Trait Implementations§
impl Forget for GsDeviceBtConst
impl Freeze for GsDeviceBtConst
impl Move for GsDeviceBtConst
impl RefUnwindSafe for GsDeviceBtConst
impl Send for GsDeviceBtConst
impl Sync for GsDeviceBtConst
impl Unpin for GsDeviceBtConst
impl UnsafeUnpin for GsDeviceBtConst
impl UnwindSafe for GsDeviceBtConst
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