eldritchwire 0.2.4

A Rust crate for working with the Black Magic Design SDI camera control protocol.
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::{commands::CommandData, EldritchError, Operation};
use eldritchwire_macros::CommandGroup;

#[derive(Clone, Debug, PartialEq, CommandGroup)]
pub enum ReferenceCommand {
    #[command(parameter(0x00), data_type(1), bounds(lower(0), upper(1)))]
    Source { operation: Operation, data: i8 },
    #[command(parameter(0x01), data_type(3))]
    Offset { operation: Operation, data: i32 },
}