pub struct PdoConfig {
pub cob_id: CanId,
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: CanIdThe COB ID this PDO will use to send/receive
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<'de> Deserialize<'de> for PdoConfig
impl<'de> Deserialize<'de> for PdoConfig
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
impl StructuralPartialEq for PdoConfig
Auto Trait Implementations§
impl Freeze for PdoConfig
impl RefUnwindSafe for PdoConfig
impl Send for PdoConfig
impl Sync for PdoConfig
impl Unpin for PdoConfig
impl UnwindSafe for PdoConfig
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