pub struct I2cOutputBlock {
pub data: BlockData,
/* private fields */
}Expand description
I2C Output Block buffers data to write to an I2C peripheral.
Fields§
§data: BlockDataTrait Implementations§
Source§impl Default for I2cOutputBlock
impl Default for I2cOutputBlock
Source§impl ProcessBlock for I2cOutputBlock
impl ProcessBlock for I2cOutputBlock
type Parameters = Parameters
type Inputs = ByteSliceSignal
type Output = ByteSliceSignal
fn process<'b>( &'b mut self, _parameters: &Self::Parameters, _context: &dyn Context, inputs: PassBy<'_, Self::Inputs>, ) -> PassBy<'b, Self::Output>
Auto Trait Implementations§
impl Freeze for I2cOutputBlock
impl RefUnwindSafe for I2cOutputBlock
impl Send for I2cOutputBlock
impl Sync for I2cOutputBlock
impl Unpin for I2cOutputBlock
impl UnsafeUnpin for I2cOutputBlock
impl UnwindSafe for I2cOutputBlock
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
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.