pub enum TxBufferState {
NotExist,
Ready,
InProgress,
AbortInProgress,
Ok,
Failed,
Aborted,
Empty,
Unknown(u8),
}Available on crate feature
unstable only.Expand description
State of a single TX buffer (TRM figure 38.3-8).
Variants§
NotExist
The buffer is not implemented by this core.
Ready
Armed for transmission.
InProgress
Currently being transmitted.
AbortInProgress
Abort requested while a transmission was in progress.
Ok
Last transmission succeeded.
Failed
Last transmission failed.
Aborted
Last transmission was aborted.
Empty
Ready to be filled by software.
Unknown(u8)
Hardware reported a state this driver does not model.
Implementations§
Source§impl TxBufferState
impl TxBufferState
Sourcepub fn is_writable(self) -> bool
pub fn is_writable(self) -> bool
Returns whether software can write to a buffer in this state (TRM 38.3.8).
Trait Implementations§
Source§impl Clone for TxBufferState
impl Clone for TxBufferState
impl Copy for TxBufferState
Source§impl Debug for TxBufferState
impl Debug for TxBufferState
impl Eq for TxBufferState
Source§impl Hash for TxBufferState
impl Hash for TxBufferState
Source§impl PartialEq for TxBufferState
impl PartialEq for TxBufferState
impl StructuralPartialEq for TxBufferState
Auto Trait Implementations§
impl Freeze for TxBufferState
impl RefUnwindSafe for TxBufferState
impl Send for TxBufferState
impl Sync for TxBufferState
impl Unpin for TxBufferState
impl UnsafeUnpin for TxBufferState
impl UnwindSafe for TxBufferState
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)