Skip to main content

GpioProxyInterface

Trait GpioProxyInterface 

Source
pub trait GpioProxyInterface: Send + Sync {
    type ReadResponseFut: Future<Output = Result<GpioReadResult, Error>> + Send;
    type SetBufferModeResponseFut: Future<Output = Result<GpioSetBufferModeResult, Error>> + Send;
    type GetInterruptResponseFut: Future<Output = Result<GpioGetInterruptResult, Error>> + Send;
    type ConfigureInterruptResponseFut: Future<Output = Result<GpioConfigureInterruptResult, Error>> + Send;
    type ReleaseInterruptResponseFut: Future<Output = Result<GpioReleaseInterruptResult, Error>> + Send;

    // Required methods
    fn read(&self) -> Self::ReadResponseFut;
    fn set_buffer_mode(
        &self,
        mode: BufferMode,
    ) -> Self::SetBufferModeResponseFut;
    fn get_interrupt(
        &self,
        options: InterruptOptions,
    ) -> Self::GetInterruptResponseFut;
    fn configure_interrupt(
        &self,
        config: &InterruptConfiguration,
    ) -> Self::ConfigureInterruptResponseFut;
    fn release_interrupt(&self) -> Self::ReleaseInterruptResponseFut;
}

Required Associated Types§

Required Methods§

Implementors§