Struct gpiochip::GpioEventHandle [−][src]
pub struct GpioEventHandle { pub gpio: u32, pub eventflags: EventRequestFlags, pub handleflags: RequestFlags, // some fields omitted }
A GPIO event handle acquired from the gpiochip
Fields
gpio: u32
eventflags: EventRequestFlags
handleflags: RequestFlags
Methods
impl GpioEventHandle
[src]
impl GpioEventHandle
pub fn read(&self) -> Result<GpioEvent>
[src]
pub fn read(&self) -> Result<GpioEvent>
Read GpioEvent
pub fn flush(&self) -> Result<()>
[src]
pub fn flush(&self) -> Result<()>
Flush event buffer
pub fn get(&self) -> Result<u8>
[src]
pub fn get(&self) -> Result<u8>
Get GPIO value
Trait Implementations
impl IntoRawFd for GpioEventHandle
[src]
impl IntoRawFd for GpioEventHandle
fn into_raw_fd(self) -> RawFd
[src]
fn into_raw_fd(self) -> RawFd
Consumes this object, returning the raw underlying file descriptor. Read more
impl AsRawFd for GpioEventHandle
[src]
impl AsRawFd for GpioEventHandle
Auto Trait Implementations
impl Send for GpioEventHandle
impl Send for GpioEventHandle
impl Sync for GpioEventHandle
impl Sync for GpioEventHandle