Trait libftd2xx::MpsseCmdExecutor
source · pub trait MpsseCmdExecutor {
type Error;
// Required methods
fn init(&mut self, settings: &MpsseSettings) -> Result<(), Self::Error>;
fn send(&mut self, data: &[u8]) -> Result<(), Self::Error>;
fn recv(&mut self, data: &mut [u8]) -> Result<(), Self::Error>;
// Provided method
fn xfer(
&mut self,
txdata: &[u8],
rxdata: &mut [u8]
) -> Result<(), Self::Error> { ... }
}
Expand description
FTDI MPSSE configurator and executor
Required Associated Types§
Required Methods§
sourcefn init(&mut self, settings: &MpsseSettings) -> Result<(), Self::Error>
fn init(&mut self, settings: &MpsseSettings) -> Result<(), Self::Error>
Configure FTDI MPSSE mode