#[repr(transparent)]pub struct PpsRdo(pub u32);
Expand description
Table 6.26 “PPS Request Data Object”
Tuple Fields§
§0: u32
Implementations§
Source§impl PpsRdo
impl PpsRdo
Sourcepub const fn current_50ma(&self) -> u8
pub const fn current_50ma(&self) -> u8
Operating current in 50mA units
Sourcepub fn set_current_50ma(&mut self, val: u8)
pub fn set_current_50ma(&mut self, val: u8)
Operating current in 50mA units
Sourcepub const fn voltage_20mv(&self) -> u16
pub const fn voltage_20mv(&self) -> u16
Output voltage in 20mV units
Sourcepub fn set_voltage_20mv(&mut self, val: u16)
pub fn set_voltage_20mv(&mut self, val: u16)
Output voltage in 20mV units
Sourcepub const fn epr_mode_capable(&self) -> bool
pub const fn epr_mode_capable(&self) -> bool
EPR mode capable
Sourcepub fn set_epr_mode_capable(&mut self, val: bool)
pub fn set_epr_mode_capable(&mut self, val: bool)
EPR mode capable
Sourcepub const fn unchunked_extended_messages_supported(&self) -> bool
pub const fn unchunked_extended_messages_supported(&self) -> bool
Unchunked extended messages supported
Sourcepub fn set_unchunked_extended_messages_supported(&mut self, val: bool)
pub fn set_unchunked_extended_messages_supported(&mut self, val: bool)
Unchunked extended messages supported
Sourcepub const fn no_usb_suspend(&self) -> bool
pub const fn no_usb_suspend(&self) -> bool
No USB suspend
Sourcepub fn set_no_usb_suspend(&mut self, val: bool)
pub fn set_no_usb_suspend(&mut self, val: bool)
No USB suspend
Sourcepub const fn usb_communication_capable(&self) -> bool
pub const fn usb_communication_capable(&self) -> bool
USB communication capable
Sourcepub fn set_usb_communication_capable(&mut self, val: bool)
pub fn set_usb_communication_capable(&mut self, val: bool)
USB communication capable
Sourcepub const fn capability_mismatch(&self) -> bool
pub const fn capability_mismatch(&self) -> bool
Capability mismatch
Sourcepub fn set_capability_mismatch(&mut self, val: bool)
pub fn set_capability_mismatch(&mut self, val: bool)
Capability mismatch
Sourcepub const fn object_position(&self) -> u8
pub const fn object_position(&self) -> u8
Object position
Sourcepub fn set_object_position(&mut self, val: u8)
pub fn set_object_position(&mut self, val: u8)
Object position
Trait Implementations§
impl Copy for PpsRdo
impl Eq for PpsRdo
impl StructuralPartialEq for PpsRdo
Auto Trait Implementations§
impl Freeze for PpsRdo
impl RefUnwindSafe for PpsRdo
impl Send for PpsRdo
impl Sync for PpsRdo
impl Unpin for PpsRdo
impl UnwindSafe for PpsRdo
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