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
50
51
52
53
54
55
//! # vlfd-rs
//!
//! `vlfd-rs` 3.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, Licence, Result, VeriCommFrame};
//!
//! fn main() -> Result<()> {
//! let mut board = Board::open()?;
//! let mut io = board.configure_io(&IoConfig::new(Licence::CustomerId(0x1234)))?;
//!
//! let tx = VeriCommFrame::from_bits(0x1234);
//! let rx = io.transfer_frame(tx)?;
//! assert_eq!(rx.words().len(), VeriCommFrame::WORDS);
//! 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 VeriCommFrame;
pub use Licence;
pub use ;
pub use ;
pub use ;