pub struct Message { /* private fields */ }
Expand description
The Message that is eventually serialized and transmitted to the DAC The input shift register (SR) of the DAC7568, DAC8168, and DAC8568 is 32 bits wide, and consists of four Prefix bits (DB31 to DB28), four control bits (DB27 to DB24), 16 databits (DB23 to DB4), and four additional feature bits. The 16 databits comprise the 16-, 14-, or 12-bit input code
Implementations
sourceimpl Message
impl Message
sourcepub fn get_internal_reference_message(internal: bool) -> Message
pub fn get_internal_reference_message(internal: bool) -> Message
Get internal reference message Used for switching DAC8568 from its default state using an external reference To using its internal 2.5v reference
sourcepub fn get_voltage_message(
channel: Channel,
value: u16,
is_inverted: bool
) -> Message
pub fn get_voltage_message(
channel: Channel,
value: u16,
is_inverted: bool
) -> Message
Get voltage message, which will update a channel with a given value
sourcepub fn get_payload(&self) -> [u8; 4]
pub fn get_payload(&self) -> [u8; 4]
Get the message payload
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more