#[repr(C)]pub struct uart_event_rx {
pub buf: *mut u8,
pub offset: usize,
pub len: usize,
}Expand description
@brief UART RX event data.
The data represented by the event is stored in rx.buf[rx.offset] to rx.buf[rx.offset+rx.len]. That is, the length is relative to the offset.
Fields§
§buf: *mut u8@brief Pointer to current buffer.
offset: usize@brief Currently received data offset in bytes.
len: usize@brief Number of new bytes received.
Trait Implementations§
Source§impl Debug for uart_event_rx
impl Debug for uart_event_rx
Source§impl Default for uart_event_rx
impl Default for uart_event_rx
Source§fn default() -> uart_event_rx
fn default() -> uart_event_rx
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for uart_event_rx
impl RefUnwindSafe for uart_event_rx
impl !Send for uart_event_rx
impl !Sync for uart_event_rx
impl Unpin for uart_event_rx
impl UnwindSafe for uart_event_rx
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