#[repr(u32)]pub enum BMTerminalResistor {
Auto = 0,
Enabled60 = 60,
Enabled120 = 120,
Disabled = 65_535,
}Expand description
Terminal resistor values, used by super::api::BM_SetTerminalRegister to change the terminal resistor of CAN device.
Variants§
Auto = 0
Reserved, currently unsupported
Enabled60 = 60
Currently unsupported
Enabled120 = 120
120Ohm
Disabled = 65_535
Disable terminal resistor
Trait Implementations§
Source§impl Clone for BMTerminalResistor
impl Clone for BMTerminalResistor
Source§fn clone(&self) -> BMTerminalResistor
fn clone(&self) -> BMTerminalResistor
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 BMTerminalResistor
impl Debug for BMTerminalResistor
impl Copy for BMTerminalResistor
Auto Trait Implementations§
impl Freeze for BMTerminalResistor
impl RefUnwindSafe for BMTerminalResistor
impl Send for BMTerminalResistor
impl Sync for BMTerminalResistor
impl Unpin for BMTerminalResistor
impl UnwindSafe for BMTerminalResistor
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