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§
source§impl 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_software_reset_message() -> Message
pub fn get_software_reset_message() -> Message
Get software reset message 8.2.10 Software Reset Function The DAC7568, DAC8168, and DAC8568 contain a software reset feature. If the software reset feature is executed, all registers inside the device are reset to default settings; that is, all DAC channels are reset to the power-on reset code (power on reset to zero scale for grades A and C; power on reset to midscale for grades B and D).
sourcepub fn get_payload_word(&self) -> u32
pub fn get_payload_word(&self) -> u32
Get the message payload word
sourcepub fn get_payload_bytes(&self) -> [u8; 4]
pub fn get_payload_bytes(&self) -> [u8; 4]
Get the message payload
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)