#[repr(C)]pub struct i2c_transfer_s {
pub msgv: *const i2c_msg_s,
pub msgc: size_t,
}
Expand description
I2C Transfer Struct: This structure is used to communicate with the I2C character driver in order to perform IOCTL transfers. TODO: Import with bindgen from https://github.com/lupyuen/incubator-nuttx/blob/rusti2c/include/nuttx/i2c/i2c_master.h#L231-L235
Fields§
§msgv: *const i2c_msg_s
Array of I2C messages for the transfer
msgc: size_t
Number of messages in the array
Auto Trait Implementations§
impl Freeze for i2c_transfer_s
impl RefUnwindSafe for i2c_transfer_s
impl !Send for i2c_transfer_s
impl !Sync for i2c_transfer_s
impl Unpin for i2c_transfer_s
impl UnwindSafe for i2c_transfer_s
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