A general API that allows for detecting and enumerating laser DACs on a network and establishing new streams of communication with them.
Instantiate the laser API.
pub fn detect_dacs(&self) -> Result<DetectDacs>[src]
An iterator yielding laser DACs available on the system as they are discovered.
Currently, the only laser protocol supported is the ether dream protocol. Thus, this enumerates ether dream DACs that are discovered on the LAN.
Note that the produced iterator will iterate forever and never terminate, so you may only want to check a certain number of entries or run this iterator on some other thread.
pub fn detect_dac(&self, id: DacId) -> Result<DetectedDac>[src]
Block and wait until the DAC with the given
Id is detected.
pub fn new_frame_stream<M, F>(&self, model: M, render: F) -> Builder<M, F> where[src]
Begin building a new laser frame stream.
The stream will call the
render function each time new points are needed to feed the
laser DAC buffer. The rate at which this will be called depends on the
frame_hz and the
pub fn new_raw_stream<M, F>(&self, model: M, render: F) -> Builder<M, F> where[src]
Begin building a new laser raw stream.
The raw stream will call the given
render function with a request for as many points as
the DAC currently might need to fill the buffer based on the stream latency.
type Error = Infallible
The type returned in the event of a conversion error.