pub struct PdoDefaultConfig {
pub cob_id: u32,
pub extended: bool,
pub add_node_id: bool,
pub enabled: bool,
pub rtr_disabled: bool,
pub mappings: Vec<PdoMapping>,
pub transmission_type: u8,
}Available on crate feature
std only.Expand description
Represents the configuration parameters for a single PDO
Fields§
§cob_id: u32The COB ID this PDO will use to send/receive
extended: boolThe COB ID is an extended 29-bit ID
add_node_id: boolThe node ID should be added to `cob_id`` at runtime
enabled: boolIndicates if this PDO is enabled
rtr_disabled: boolIf set, this PDO will not respond to requests
mappings: Vec<PdoMapping>List of mapping specifying what sub objects are mapped to this PDO
transmission_type: u8Specifies when a PDO is sent or latched
- 0: Sent in response to sync, but only after an application specific event (e.g. it may be sent when the value changes, but not when it has not)
- 1 - 240: Sent in response to every Nth sync
- 254: Event driven (application to send it whenever it wants)
Trait Implementations§
Source§impl Clone for PdoDefaultConfig
impl Clone for PdoDefaultConfig
Source§fn clone(&self) -> PdoDefaultConfig
fn clone(&self) -> PdoDefaultConfig
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 PdoDefaultConfig
impl Debug for PdoDefaultConfig
Source§impl<'de> Deserialize<'de> for PdoDefaultConfig
impl<'de> Deserialize<'de> for PdoDefaultConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PdoDefaultConfig
impl PartialEq for PdoDefaultConfig
impl StructuralPartialEq for PdoDefaultConfig
Auto Trait Implementations§
impl Freeze for PdoDefaultConfig
impl RefUnwindSafe for PdoDefaultConfig
impl Send for PdoDefaultConfig
impl Sync for PdoDefaultConfig
impl Unpin for PdoDefaultConfig
impl UnwindSafe for PdoDefaultConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more