pub struct Device { /* private fields */ }Expand description
High-level interface for talking to the SMIMS VLFD device.
The type owns the underlying USB session and keeps the remote configuration cached locally, providing ergonomic helpers around the device’s configuration and command protocols.
Implementations§
Source§impl Device
impl Device
pub fn new() -> Result<Self>
pub fn connect() -> Result<Self>
pub fn usb(&self) -> &UsbDevice
pub fn config(&self) -> &Config
pub fn config_mut(&mut self) -> &mut Config
pub fn is_open(&self) -> bool
pub fn open(&mut self) -> Result<()>
pub fn close(&mut self) -> Result<()>
pub fn initialize(&mut self) -> Result<()>
pub fn reset_engine(&self) -> Result<()>
pub fn ensure_session(&mut self) -> Result<()>
pub fn enter_io_mode(&mut self, settings: &IoSettings) -> Result<()>
pub fn transfer_io( &mut self, write_buffer: &mut [u16], read_buffer: &mut [u16], ) -> Result<()>
pub fn exit_io_mode(&mut self) -> Result<()>
pub fn fifo_write(&self, buffer: &[u16]) -> Result<()>
pub fn fifo_read(&self, buffer: &mut [u16]) -> Result<()>
pub fn sync_delay(&self) -> Result<()>
pub fn command_active(&self) -> Result<()>
pub fn read_config(&mut self) -> Result<()>
pub fn write_config(&mut self) -> Result<()>
pub fn activate_fpga_programmer(&self) -> Result<()>
pub fn activate_vericomm(&self) -> Result<()>
pub fn activate_veri_instrument(&self) -> Result<()>
pub fn activate_verilink(&self) -> Result<()>
pub fn activate_veri_soc(&self) -> Result<()>
pub fn activate_vericomm_pro(&self) -> Result<()>
pub fn activate_veri_sdk(&self) -> Result<()>
pub fn activate_flash_read(&self) -> Result<()>
pub fn activate_flash_write(&self) -> Result<()>
pub fn encrypt(&mut self, buffer: &mut [u16])
pub fn decrypt(&mut self, buffer: &mut [u16])
pub fn licence_gen(&self, security_key: u16, customer_id: u16) -> u16
Auto Trait Implementations§
impl !Freeze for Device
impl RefUnwindSafe for Device
impl Send for Device
impl Sync for Device
impl Unpin for Device
impl UnwindSafe for Device
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more