Expand description
Rust library for controlling Dediprog EM100Pro SPI flash emulators.
The crates.io package is named rem100; its library crate is named em100.
The package also provides the rem100 command-line utility.
Library-only users should disable the default cli feature:
[dependencies]
rem100 = { version = "0.1", default-features = false }§Example
use em100::{list_devices, Em100, Result};
fn main() -> Result<()> {
for (bus, address, serial) in list_devices()? {
println!("{bus}:{address} {serial}");
}
let device = Em100::open(None, None, None)?;
println!("{}", device.serial_string());
Ok(())
}The cli feature enables the command-line binary and CLI-only downloading
and archive helpers. The web feature enables the egui interface; on
wasm32-unknown-unknown, USB access uses WebUSB through nusb.
Copyright 2012-2019 Google Inc. Rust port copyright 2024
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
Re-exports§
pub use chips::ChipDatabase;pub use chips::ChipDesc;pub use chips::parse_dcfg;pub use error::Error;pub use error::Result;pub use device::DebugInfo;pub use device::DeviceInfo;pub use device::Em100;pub use device::HoldPinState;pub use device::HwVersion;pub use device::Voltages;pub use device::list_devices;pub use firmware::FirmwareInfo;pub use firmware::firmware_read;pub use firmware::firmware_to_dpfw;pub use firmware::firmware_write;pub use firmware::validate_firmware;pub use sdram::ProgressCallback;pub use sdram::read_sdram_with_progress;pub use sdram::write_sdram_with_progress;
Modules§
- chips
- Chip configuration parsing
- device
- Core EM100 device structure and operations
- error
- Error types for rem100
- firmware
- Firmware update/dump operations
- fpga
- FPGA related operations
- hexdump
- Debug hex dump utility
- image
- Image auto-correction for Intel Flash Descriptor images
- sdram
- SDRAM related operations
- spi
- SPI flash related operations
- system
- System level operations (version, voltage, LED)
- trace
- SPI trace related operations
- usb
- Low-level USB communication functions