Project setup

This commit is contained in:
Zachary Sunforge
2023-06-13 21:09:57 -07:00
parent 8355cc1f24
commit 1446bf6162
19 changed files with 152 additions and 4 deletions

View File

@ -1,2 +1,3 @@
#![no_std]
pub mod transducer;

0
src/transducer/input.rs Normal file
View File

10
src/transducer/mod.rs Normal file
View File

@ -0,0 +1,10 @@
pub mod input;
pub mod output;
// Initialisation will always be async and won't complete until a state is available for all
// stateful transducers.
pub trait Stateful {
type Value: Copy;
fn state() -> Self::Value;
}

7
src/transducer/output.rs Normal file
View File

@ -0,0 +1,7 @@
pub trait Output {
type Value: Copy;
//TODO: return result
//TODO: Make maybe async
fn set(setting: Self::Value);
}