pub trait GpioBitbangOperation<'rd, 'wr> {
// Required methods
fn query(&mut self) -> Result<bool>;
fn get_result(self: Box<Self>) -> Result<Box<[BitbangEntry<'rd, 'wr>]>>;
}Expand description
Object representing an ongoing operation of generating a prescribed waveform on a number of
pins. Must be frequently polled via the query() function, in order to guerantee completion
of the operation.
Required Methods§
Sourcefn get_result(self: Box<Self>) -> Result<Box<[BitbangEntry<'rd, 'wr>]>>
fn get_result(self: Box<Self>) -> Result<Box<[BitbangEntry<'rd, 'wr>]>>
After query() has returned true, this method can be called to get back the array of
BitbangEntry originally given, this is particularly useful if there are WriteOwned or
BothOwned among the entries of the array.