5 unstable releases
0.3.0 | Jan 25, 2021 |
---|---|
0.2.0 | Jan 25, 2021 |
0.1.2 | Jan 20, 2021 |
0.1.1 | Jan 20, 2021 |
0.1.0 | Jan 20, 2021 |
#14 in #ftdi
28KB
636 lines
mpsse-rs
Build MPSSE commands
This crate is currently incomplete and unstable. Use with caution.
lib.rs
:
MPSSE-rs
A builder for FTDI's MPSSE commands.
use mpsse::{Builder, ClockEdge};
pub fn main() {
let commands = Builder::new()
.set_frequency(100_000.0)
.then()
.read_data(15)
.with_clock_direction(ClockEdge::Rising)
.build();
assert_eq!(
vec![0x86, 0x3B, 0x00, 0x20, 0x0E, 0x00],
commands
);
}