1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//! # vlfd-rs
//!
//! `vlfd-rs` 2.x models the device around explicit sessions instead of a
//! single stateful façade. Open a [`Board`] to inspect and configure the
//! hardware, then create dedicated sessions for I/O or programming.
//!
//! ```no_run
//! use vlfd_rs::{Board, IoConfig, Result};
//!
//! fn main() -> Result<()> {
//! let mut board = Board::open()?;
//! let mut io = board.configure_io(&IoConfig::default())?;
//!
//! let tx = [0x1234u16; 4];
//! let mut rx = [0u16; 4];
//! io.transfer_into(&tx, &mut rx)?;
//! io.finish()?;
//! Ok(())
//! }
//! ```
//!
//! ```no_run
//! use std::path::Path;
//! use vlfd_rs::{Programmer, Result};
//!
//! fn main() -> Result<()> {
//! let mut programmer = Programmer::open()?;
//! programmer.program(Path::new("path/to/bitstream.txt"))?;
//! programmer.close()?;
//! Ok(())
//! }
//! ```
pub use Config;
pub use ;
pub use ;
pub use ;
pub use ;