output channelization

This commit is contained in:
2025-10-20 21:02:57 -07:00
parent 2bcb122319
commit 26271fcb17
11 changed files with 84 additions and 34 deletions

View File

@@ -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>;