output channelization
This commit is contained in:
@@ -4,10 +4,13 @@ use anyhow::Result;
|
||||
use embedded_hal::pwm::SetDutyCycle;
|
||||
|
||||
pub trait Hardware {
|
||||
type Mcp23017<'a>: Mcp23017 + Sync
|
||||
where
|
||||
Self: 'a;
|
||||
type Pwm: SetDutyCycle<Error: std::error::Error + Sync + Send> + Sync;
|
||||
|
||||
fn new_mcp23017_a(&self) -> Result<impl Mcp23017 + Sync>;
|
||||
fn new_mcp23017_b(&self) -> Result<impl Mcp23017 + Sync>;
|
||||
fn new_mcp23017_a(&self) -> Result<Self::Mcp23017<'_>>;
|
||||
fn new_mcp23017_b(&self) -> Result<Self::Mcp23017<'_>>;
|
||||
|
||||
fn new_pwm0(&self) -> Result<Self::Pwm>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user