pub struct SdoServer { /* private fields */ }Expand description
An SDO server bound to a node id, servicing requests against an object dictionary.
Implementations§
Source§impl SdoServer
impl SdoServer
Sourcepub fn request_cob_id(&self) -> u16
pub fn request_cob_id(&self) -> u16
The COB-ID this server receives requests on (0x600 + node).
Sourcepub fn response_cob_id(&self) -> u16
pub fn response_cob_id(&self) -> u16
The COB-ID this server sends responses on (0x580 + node).
Sourcepub fn take_write(&mut self) -> Option<Address>
pub fn take_write(&mut self) -> Option<Address>
Take the address of the object most recently written by a completed SDO
download, clearing it. Poll after SdoServer::handle to react to a
master’s writes (e.g. re-read configuration). None if nothing was
written since the last call.
Sourcepub fn handle<const N: usize>(
&mut self,
od: &mut ObjectDictionary<N>,
req: &SdoPayload,
) -> Option<SdoPayload>
pub fn handle<const N: usize>( &mut self, od: &mut ObjectDictionary<N>, req: &SdoPayload, ) -> Option<SdoPayload>
Handle an SDO request against od, returning the response to transmit.
Returns None only for a client abort, which is unconfirmed. Any
protocol or access error produces an SDO abort response frame.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SdoServer
impl RefUnwindSafe for SdoServer
impl Send for SdoServer
impl Sync for SdoServer
impl Unpin for SdoServer
impl UnsafeUnpin for SdoServer
impl UnwindSafe for SdoServer
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