pub struct Control0(pub u8);
Tuple Fields§
§0: u8
Implementations§
source§impl Control0
impl Control0
sourcepub fn with_tx_flush(self, value: bool) -> Self
pub fn with_tx_flush(self, value: bool) -> Self
Self clearing bit to flush the content of the transmit FIFO
sourcepub fn set_tx_flush(&mut self, value: bool)
pub fn set_tx_flush(&mut self, value: bool)
Self clearing bit to flush the content of the transmit FIFO
sourcepub fn with_int_mask(self, value: bool) -> Self
pub fn with_int_mask(self, value: bool) -> Self
Masks all interrupts, when false interrupts to host are enabled
sourcepub fn set_int_mask(&mut self, value: bool)
pub fn set_int_mask(&mut self, value: bool)
Masks all interrupts, when false interrupts to host are enabled
sourcepub fn host_cur(&self) -> u8
pub fn host_cur(&self) -> u8
Controls the host pull up current enabled by PU_EN
00
: No current01
: 80 mA – Default USB power10
: 180 mA – Medium Current Mode: 1.5 A11
: 330 mA – High Current Mode: 3 A
sourcepub fn with_host_cur(self, value: u8) -> Self
pub fn with_host_cur(self, value: u8) -> Self
Controls the host pull up current enabled by PU_EN
00
: No current01
: 80 mA – Default USB power10
: 180 mA – Medium Current Mode: 1.5 A11
: 330 mA – High Current Mode: 3 A
sourcepub fn set_host_cur(&mut self, value: u8)
pub fn set_host_cur(&mut self, value: u8)
Controls the host pull up current enabled by PU_EN
00
: No current01
: 80 mA – Default USB power10
: 180 mA – Medium Current Mode: 1.5 A11
: 330 mA – High Current Mode: 3 A
sourcepub fn auto_pre(&self) -> bool
pub fn auto_pre(&self) -> bool
Starts the transmitter automatically when a message with a good CRC is received. This allows the software to take as much as 300 mS to respond after the I_CRC_CHK interrupt is received. Before starting the transmitter, an internal timer waits for approximately 170 mS before executing the transmit start and preamble
sourcepub fn with_auto_pre(self, value: bool) -> Self
pub fn with_auto_pre(self, value: bool) -> Self
Starts the transmitter automatically when a message with a good CRC is received. This allows the software to take as much as 300 mS to respond after the I_CRC_CHK interrupt is received. Before starting the transmitter, an internal timer waits for approximately 170 mS before executing the transmit start and preamble
sourcepub fn set_auto_pre(&mut self, value: bool)
pub fn set_auto_pre(&mut self, value: bool)
Starts the transmitter automatically when a message with a good CRC is received. This allows the software to take as much as 300 mS to respond after the I_CRC_CHK interrupt is received. Before starting the transmitter, an internal timer waits for approximately 170 mS before executing the transmit start and preamble
sourcepub fn tx_start(&self) -> bool
pub fn tx_start(&self) -> bool
Start transmitter using the data in the transmit FIFO. Preamble is started first. During the preamble period the transmit data can start to be written to the transmit FIFO. Self clearing.
sourcepub fn with_tx_start(self, value: bool) -> Self
pub fn with_tx_start(self, value: bool) -> Self
Start transmitter using the data in the transmit FIFO. Preamble is started first. During the preamble period the transmit data can start to be written to the transmit FIFO. Self clearing.
sourcepub fn set_tx_start(&mut self, value: bool)
pub fn set_tx_start(&mut self, value: bool)
Start transmitter using the data in the transmit FIFO. Preamble is started first. During the preamble period the transmit data can start to be written to the transmit FIFO. Self clearing.
Trait Implementations§
source§impl PartialEq for Control0
impl PartialEq for Control0
impl Copy for Control0
impl Eq for Control0
impl StructuralPartialEq for Control0
Auto Trait Implementations§
impl Freeze for Control0
impl RefUnwindSafe for Control0
impl Send for Control0
impl Sync for Control0
impl Unpin for Control0
impl UnwindSafe for Control0
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
source§impl<T, U> UnsafeFrom<U> for Twhere
U: Into<T>,
impl<T, U> UnsafeFrom<U> for Twhere
U: Into<T>,
source§unsafe fn unsafe_from(other: U) -> T
unsafe fn unsafe_from(other: U) -> T
Calls U::into(other)
.
That is, this conversion is whatever the implementation of Into
<T> for U
chooses to
do.
source§impl<T, U> UnsafeInto<U> for Twhere
U: UnsafeFrom<T>,
impl<T, U> UnsafeInto<U> for Twhere
U: UnsafeFrom<T>,
source§unsafe fn unsafe_into(self) -> U
unsafe fn unsafe_into(self) -> U
Calls U::unsafe_from(self)
.
That is, this conversion is whatever the implementation of UnsafeFrom
<T> for U
chooses to do.