Trait ltc681x::monitor::ChannelIndex
source · 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§
sourcefn to_cell_index(&self) -> Option<usize>
fn to_cell_index(&self) -> Option<usize>
Returns the cell index if a cell channel, otherwise None.
sourcefn to_gpio_index(&self) -> Option<usize>
fn to_gpio_index(&self) -> Option<usize>
Returns the GPIO index if a GPIO channel, otherwise None.