Starts synchronous block interface
This commit is contained in:
@ -20,10 +20,12 @@ use oxydsp_dsp::units::DigitalFrequency;
|
||||
use oxydsp_flowgraph::BlockIO;
|
||||
use oxydsp_flowgraph::block::Block;
|
||||
use oxydsp_flowgraph::block::BlockResult;
|
||||
use oxydsp_flowgraph::edge::In;
|
||||
use oxydsp_flowgraph::edge::PopIterable;
|
||||
use oxydsp_flowgraph::block::SyncBlockIO;
|
||||
use oxydsp_flowgraph::flowgraph;
|
||||
use oxydsp_flowgraph::graph::FlowGraph;
|
||||
use oxydsp_flowgraph::io::In;
|
||||
use oxydsp_flowgraph::io::PopIterable;
|
||||
use oxydsp_flowgraph::sync_block;
|
||||
|
||||
#[derive(BlockIO)]
|
||||
pub struct Printer<T: 'static>
|
||||
@ -34,6 +36,15 @@ pub struct Printer<T: 'static>
|
||||
n: usize,
|
||||
}
|
||||
|
||||
impl<T: 'static> SyncBlockIO for Printer<T>
|
||||
{
|
||||
type StateView = u32;
|
||||
|
||||
type Input = T;
|
||||
|
||||
type Output = T;
|
||||
}
|
||||
|
||||
impl<T: 'static> Printer<T>
|
||||
{
|
||||
pub fn new(input: In<T>) -> Self
|
||||
|
||||
Reference in New Issue
Block a user