#[repr(C)]pub struct i2c_msg {
pub buf: *mut u8,
pub len: u32,
pub flags: u8,
}Expand description
@brief One I2C Message.
This defines one I2C message to transact on the I2C bus.
@note Some of the configurations supported by this API may not be supported by specific SoC I2C hardware implementations, in particular features related to bus transactions intended to read or write data from different buffers within a single transaction. Invocations of i2c_transfer() may not indicate an error when an unsupported configuration is encountered. In some cases drivers will generate separate transactions for each message fragment, with or without presence of @ref I2C_MSG_RESTART in #flags.
Fields§
§buf: *mut u8Data buffer in bytes
len: u32Length of buffer in bytes
flags: u8Flags for this message
Trait Implementations§
Auto Trait Implementations§
impl Freeze for i2c_msg
impl RefUnwindSafe for i2c_msg
impl !Send for i2c_msg
impl !Sync for i2c_msg
impl Unpin for i2c_msg
impl UnwindSafe for i2c_msg
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