bm1397-protocol 0.2.0

Rust protocol driver for the BM1397 Bitcoin Mining ASIC.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#![no_std]
//! BM1397 protocol driver.

pub mod command;
mod crc;
pub mod registers;
pub mod response;

pub use command::*;
pub use registers::*;
pub use response::*;

#[derive(Debug, PartialEq)]
pub enum Error {
    InvalidPreamble,
    InvalidCrc,
    UnknownRegister(u8),
}