pub struct PdoDefaults { /* private fields */ }Expand description
Initialization values for a PDO
Implementations§
Source§impl PdoDefaults
impl PdoDefaults
Sourcepub const DEFAULT: PdoDefaults
pub const DEFAULT: PdoDefaults
The PDO defaults used when no other defaults are configured
Sourcepub const fn new(
cob_id: u32,
extended: bool,
add_node_id: bool,
valid: bool,
rtr_disabled: bool,
transmission_type: u8,
mappings: &'static [u32],
) -> Self
pub const fn new( cob_id: u32, extended: bool, add_node_id: bool, valid: bool, rtr_disabled: bool, transmission_type: u8, mappings: &'static [u32], ) -> Self
Create a new PdoDefaults object
pub const fn valid(&self) -> bool
pub const fn rtr_disabled(&self) -> bool
pub const fn add_node_id(&self) -> bool
pub const fn extended(&self) -> bool
pub const fn can_id(&self, node_id: u8) -> CanId
Trait Implementations§
Source§impl Clone for PdoDefaults
impl Clone for PdoDefaults
Source§fn clone(&self) -> PdoDefaults
fn clone(&self) -> PdoDefaults
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 Default for PdoDefaults
impl Default for PdoDefaults
impl Copy for PdoDefaults
Auto Trait Implementations§
impl Freeze for PdoDefaults
impl RefUnwindSafe for PdoDefaults
impl Send for PdoDefaults
impl Sync for PdoDefaults
impl Unpin for PdoDefaults
impl UnwindSafe for PdoDefaults
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