pub struct PdoCommParameter {
pub valid: bool,
pub rtr_disabled: bool,
pub cob_id: CanId,
pub transmission_type: u8,
}Expand description
Represents a PDO Communications Parameter Object
Fields§
§valid: boolIndicates the PDO is valid / enabled
Note: The bit in the object itself is inverted – it’s 1 when the PDO is not valid
rtr_disabled: boolTrue if RTR is allowed on this PDO
cob_id: CanIdThe COB-ID used to send or receive the PDO
transmission_type: u8The transmission type for the PDO
It specifies 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 PdoCommParameter
impl Clone for PdoCommParameter
Source§fn clone(&self) -> PdoCommParameter
fn clone(&self) -> PdoCommParameter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PdoCommParameter
Source§impl Debug for PdoCommParameter
impl Debug for PdoCommParameter
Source§impl PartialEq for PdoCommParameter
impl PartialEq for PdoCommParameter
impl StructuralPartialEq for PdoCommParameter
Auto Trait Implementations§
impl Freeze for PdoCommParameter
impl RefUnwindSafe for PdoCommParameter
impl Send for PdoCommParameter
impl Sync for PdoCommParameter
impl Unpin for PdoCommParameter
impl UnsafeUnpin for PdoCommParameter
impl UnwindSafe for PdoCommParameter
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