twine-rs / spinel

Control networking devices using the Spinel protocol.
Mozilla Public License 2.0
0 stars 0 forks source link

feat: create spinel connection module #2

Open jdswensen opened 5 months ago

jdswensen commented 5 months ago

Create a module with a trait that is capable of abstracting away the framing details from the host caller. Something similar to:

pub trait SpinelHostConnection {
    async fn noop(&self) -> Result<(), Error>;
    async fn reset(&self) -> Result<(), Error>;
    async fn last_status(&self) -> Result<(), Error>;
}

This will allow for targeting different platforms (posix vs dual-core MCU).