Struct ecpdap::ECP5 [−][src]
pub struct ECP5 { /* fields omitted */ }
ECP5 FPGA manager
Implementations
impl ECP5
[src]
impl ECP5
[src]pub fn new(tap: JTAGTAP) -> Self
[src]
pub fn status(&mut self) -> Result<Status>
[src]
Read current status register content.
pub fn program(&mut self, data: &[u8]) -> Result<()>
[src]
Program the ECP5 configuration SRAM with the bitstream in data
.
The ECP5 will be reset and start configuration after programming completion.
pub fn program_progress(&mut self, data: &[u8]) -> Result<()>
[src]
Program the ECP5 configuration SRAM with the bitstream in data
.
The ECP5 will be reset and start configuration after programming completion.
A progress bar is drawn to the terminal during programming.
pub fn program_cb<F: Fn(usize)>(&mut self, data: &[u8], cb: F) -> Result<()>
[src]
Program the ECP5 configuration SRAM with the bitstream in data
.
The ECP5 will be reset and start configuration after programming completion.
The callback cb
is called with the number of bytes programmed so far.
pub fn refresh(&mut self) -> Result<()>
[src]
Send the LSC_REFRESH command, triggering a reload of configuration.
This is equivalent to toggling the PROGRAMN pin.
pub fn into_flash(self) -> Result<ECP5Flash>
[src]
Place ECP5 into flash pass-through mode. The current SRAM contents are cleared.
Auto Trait Implementations
impl RefUnwindSafe for ECP5
impl RefUnwindSafe for ECP5
impl UnwindSafe for ECP5
impl UnwindSafe for ECP5