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§
Sourcefn instruction(&self) -> u8
fn instruction(&self) -> u8
Returns the instruction code.
Sourcefn fill_params_buf(&self, buffer: &mut [u8]) -> usize
fn fill_params_buf(&self, buffer: &mut [u8]) -> usize
Fills the given buffer with the command parameters.