Struct ecpdap::ECP5[][src]

pub struct ECP5 { /* fields omitted */ }

ECP5 FPGA manager

Implementations

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 Send for ECP5

impl !Sync for ECP5

impl Unpin for ECP5

impl UnwindSafe for ECP5

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.