Struct uavcan::node::SimpleNode [−][src]
pub struct SimpleNode<I, D, S> where
I: TransferInterface,
D: Deref<Target = I>,
S: Storage<I::Frame>, { /* fields omitted */ }
A minimal featured Uavcan node.
This type of node lack some features that the FullNode
provides,
but is in turn suitable for highly resource constrained systems.
Methods
impl<I, D, S> SimpleNode<I, D, S> where
I: TransferInterface,
D: Deref<Target = I>,
S: Storage<I::Frame>,
[src]
impl<I, D, S> SimpleNode<I, D, S> where
I: TransferInterface,
D: Deref<Target = I>,
S: Storage<I::Frame>,
pub fn new(interface: D, config: NodeConfig) -> Self
[src]
pub fn new(interface: D, config: NodeConfig) -> Self
pub fn flush_receptions(&self)
[src]
pub fn flush_receptions(&self)
Call this method after the interface have sucesfully received a new frame or periodically
This method is responsible for moving as many frames as possible from incoming interface mailboxes to the storage buffer.
pub fn flush_transmissions(&self)
[src]
pub fn flush_transmissions(&self)
Call this method after the interface have successfully transmitted a new frame or periodically
This method is responsible for moving as many frames as possible from storage buffers to the outgoing interface mailboxes.
Trait Implementations
impl<I: Debug, D: Debug, S: Debug> Debug for SimpleNode<I, D, S> where
I: TransferInterface,
D: Deref<Target = I>,
S: Storage<I::Frame>,
S::InterfaceStorageHandle: Debug,
[src]
impl<I: Debug, D: Debug, S: Debug> Debug for SimpleNode<I, D, S> where
I: TransferInterface,
D: Deref<Target = I>,
S: Storage<I::Frame>,
S::InterfaceStorageHandle: Debug,
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<I, D, S> Node<I, S> for SimpleNode<I, D, S> where
I: TransferInterface,
D: Deref<Target = I>,
S: Storage<I::Frame>,
[src]
impl<I, D, S> Node<I, S> for SimpleNode<I, D, S> where
I: TransferInterface,
D: Deref<Target = I>,
S: Storage<I::Frame>,
Auto Trait Implementations
impl<I, D, S> Send for SimpleNode<I, D, S> where
D: Send,
S: Send,
<S as Storage<<I as TransferInterface>::Frame>>::InterfaceStorageHandle: Send,
impl<I, D, S> Send for SimpleNode<I, D, S> where
D: Send,
S: Send,
<S as Storage<<I as TransferInterface>::Frame>>::InterfaceStorageHandle: Send,
impl<I, D, S> Sync for SimpleNode<I, D, S> where
D: Sync,
S: Sync,
<S as Storage<<I as TransferInterface>::Frame>>::InterfaceStorageHandle: Sync,
impl<I, D, S> Sync for SimpleNode<I, D, S> where
D: Sync,
S: Sync,
<S as Storage<<I as TransferInterface>::Frame>>::InterfaceStorageHandle: Sync,