pub trait ToFullCommand {
    // Required methods
    fn to_read_command(&self) -> [u8; 4];
    fn to_write_command(&self) -> Result<[u8; 4], NoWriteCommandError>;
}
Expand description

Trait for casting to constant (precomputed) commands

Required Methods§

source

fn to_read_command(&self) -> [u8; 4]

Returns the full register read command + PEC15

source

fn to_write_command(&self) -> Result<[u8; 4], NoWriteCommandError>

Returns the full register write command + PEC15 Returns error in case writing to this register is not supported

Implementors§

source§

impl ToFullCommand for ltc681x::ltc6810::Register

source§

impl ToFullCommand for ltc681x::ltc6811::Register

source§

impl ToFullCommand for ltc681x::ltc6812::Register

source§

impl ToFullCommand for ltc681x::ltc6813::Register