pub struct SdoClient { /* private fields */ }Expand description
An SDO client bound to the target node’s id.
Implementations§
Source§impl SdoClient
impl SdoClient
Sourcepub fn request_cob_id(&self) -> u16
pub fn request_cob_id(&self) -> u16
The COB-ID the client transmits requests on (0x600 + node).
Sourcepub fn response_cob_id(&self) -> u16
pub fn response_cob_id(&self) -> u16
The COB-ID the client receives responses on (0x580 + node).
Sourcepub fn read(&mut self, addr: Address, data_type: DataType) -> SdoPayload
pub fn read(&mut self, addr: Address, data_type: DataType) -> SdoPayload
Begin reading addr, interpreting the result as data_type. Returns the
first request frame to transmit.
Sourcepub fn write(&mut self, addr: Address, value: Value) -> SdoPayload
pub fn write(&mut self, addr: Address, value: Value) -> SdoPayload
Begin writing value to addr. Returns the first request frame to
transmit; expedited or segmented is chosen from the value’s size.
Sourcepub fn on_response(&mut self, resp: &SdoPayload) -> SdoEvent
pub fn on_response(&mut self, resp: &SdoPayload) -> SdoEvent
Feed a server response frame and advance the transaction.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SdoClient
impl RefUnwindSafe for SdoClient
impl Send for SdoClient
impl Sync for SdoClient
impl Unpin for SdoClient
impl UnsafeUnpin for SdoClient
impl UnwindSafe for SdoClient
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