Skip to content

Instantly share code, notes, and snippets.

@TheZoq2
Created February 18, 2018 14:44
Show Gist options
  • Save TheZoq2/d1b9678c3ebe16a2ec98fc35cde20aae to your computer and use it in GitHub Desktop.
Save TheZoq2/d1b9678c3ebe16a2ec98fc35cde20aae to your computer and use it in GitHub Desktop.
struct Esp8266<Tx, Rx, Timer, Timeout>
where Tx: hal::serial::Write<u8>,
Rx: hal::serial::Read<u8>,
Timer: hal::timer::CountDown,
Timeout: Fn() -> Timer::Time
{
tx: Tx,
rx: Rx,
timer: Timer,
timeout: Timeout
}
impl<Tx, Rx, Timer, Timeout> Esp8266<Tx, Rx, Timer, Timeout>
where Tx: hal::serial::Write<u8>,
Rx: hal::serial::Read<u8>,
Timer: hal::timer::CountDown,
Timeout: Fn() -> Timer::Time
{
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment