pub struct NiosCore<T: Transport> { /* private fields */ }Implementations§
Source§impl<T: Transport> NiosCore<T>
impl<T: Transport> NiosCore<T>
pub fn new(transport: T) -> Self
pub fn transport(&self) -> &T
pub fn transport_mut(&mut self) -> &mut T
pub fn nios_read<A: NiosNum + Send, D: NiosNum + Send>( &mut self, id: impl Into<u8>, addr: A, ) -> Result<D>
pub fn nios_write<A: NiosNum + Send, D: NiosNum + Send>( &mut self, id: impl Into<u8>, addr: A, data: D, ) -> Result<()>
pub fn nios_config_read(&mut self) -> Result<u32>
pub fn nios_config_write(&mut self, value: u32) -> Result<()>
pub fn nios_expansion_gpio_read(&mut self) -> Result<u32>
pub fn nios_expansion_gpio_write(&mut self, mask: u32, val: u32) -> Result<()>
pub fn nios_expansion_gpio_dir_read(&mut self) -> Result<u32>
pub fn nios_expansion_gpio_dir_write( &mut self, mask: u32, val: u32, ) -> Result<()>
pub fn nios_get_fpga_version(&mut self) -> Result<SemanticVersion>
pub fn nios_get_iq_gain_correction(&mut self, ch: Channel) -> Result<i16>
pub fn nios_get_iq_phase_correction(&mut self, ch: Channel) -> Result<i16>
pub fn nios_set_iq_gain_correction( &mut self, ch: Channel, value: i16, ) -> Result<()>
pub fn nios_set_iq_phase_correction( &mut self, ch: Channel, value: i16, ) -> Result<()>
Source§impl NiosCore<UsbTransport>
impl NiosCore<UsbTransport>
pub fn get_alt_setting(&self) -> u8
Auto Trait Implementations§
impl<T> Freeze for NiosCore<T>where
T: Freeze,
impl<T> RefUnwindSafe for NiosCore<T>where
T: RefUnwindSafe,
impl<T> Send for NiosCore<T>
impl<T> Sync for NiosCore<T>where
T: Sync,
impl<T> Unpin for NiosCore<T>where
T: Unpin,
impl<T> UnsafeUnpin for NiosCore<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for NiosCore<T>where
T: UnwindSafe,
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