pub trait ChannelIndex {
    // Required methods
    fn to_cell_index(&self) -> Option<usize>;
    fn to_gpio_index(&self) -> Option<usize>;
}
Expand description

Converts channels (cells or GPIOs) to indexes

Required Methods§

source

fn to_cell_index(&self) -> Option<usize>

Returns the cell index if a cell channel, otherwise None.

source

fn to_gpio_index(&self) -> Option<usize>

Returns the GPIO index if a GPIO channel, otherwise None.

Implementors§

source§

impl ChannelIndex for ltc681x::ltc6810::Channel

source§

impl ChannelIndex for ltc681x::ltc6811::Channel

source§

impl ChannelIndex for ltc681x::ltc6812::Channel

source§

impl ChannelIndex for ltc681x::ltc6813::Channel