Struct kawaii::gpio::AsyncPort
[−]
[src]
pub struct AsyncPort {
pub port: Port,
pub edge: Edge,
// some fields omitted
}Fields
port: Port
edge: Edge
Methods
impl AsyncPort[src]
fn new(number: u8, edge: Edge) -> Result<AsyncPort>
Constructs a new asynchronous GPIO Port.
Parameter
numberGPIO Port number of pin.edgeGPIO Port edge detection setting.
fn poll(&mut self, timeout: Option<Duration>) -> Result<Option<Value>>
Read asynchronous from GPIO AsyncPort sysfs file
fn poll_measure(
&mut self,
timeout: Option<Duration>,
measure: &mut Measure
) -> Result<Option<Value>>
&mut self,
timeout: Option<Duration>,
measure: &mut Measure
) -> Result<Option<Value>>
Read asynchronous from GPIO AsyncPort sysfs file with measure support (ignore poll time)