pub struct PdoDefaults<'a> { /* private fields */ }Expand description
Initialization values for a PDO
Implementations§
Source§impl<'a> PdoDefaults<'a>
impl<'a> PdoDefaults<'a>
Sourcepub const DEFAULT: PdoDefaults<'a>
pub const DEFAULT: PdoDefaults<'a>
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<'a> Clone for PdoDefaults<'a>
impl<'a> Clone for PdoDefaults<'a>
Source§fn clone(&self) -> PdoDefaults<'a>
fn clone(&self) -> PdoDefaults<'a>
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<'a> Copy for PdoDefaults<'a>
Auto Trait Implementations§
impl<'a> Freeze for PdoDefaults<'a>
impl<'a> RefUnwindSafe for PdoDefaults<'a>
impl<'a> Send for PdoDefaults<'a>
impl<'a> Sync for PdoDefaults<'a>
impl<'a> Unpin for PdoDefaults<'a>
impl<'a> UnwindSafe for PdoDefaults<'a>
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