Trait DcsCommand

Source
pub trait DcsCommand {
    // Required methods
    fn instruction(&self) -> u8;
    fn fill_params_buf(&self, buffer: &mut [u8]) -> usize;
}
Expand description

Common trait for DCS commands.

The methods in this traits are used to convert a DCS command into bytes.

Required Methods§

Source

fn instruction(&self) -> u8

Returns the instruction code.

Source

fn fill_params_buf(&self, buffer: &mut [u8]) -> usize

Fills the given buffer with the command parameters.

Implementors§