RdmControllerDriver

Trait RdmControllerDriver 

Source
pub trait RdmControllerDriver: ControllerDriverErrorDef {
    // Required methods
    fn send_rdm(
        &mut self,
        package: RdmData,
    ) -> Result<(), DmxError<Self::DriverError>>;
    fn receive_rdm(&mut self) -> Result<RdmData, DmxError<Self::DriverError>>;
    fn receive_rdm_discovery_response(
        &mut self,
    ) -> Result<DiscoveryOption, DmxError<Self::DriverError>>;
    fn send_rdm_discovery_response(
        &mut self,
        uid: UniqueIdentifier,
    ) -> Result<(), DmxError<Self::DriverError>>;
}
Expand description

Trait for sending and receiving RDM packages from a controller point of view.

Required Methods§

Source

fn send_rdm( &mut self, package: RdmData, ) -> Result<(), DmxError<Self::DriverError>>

Sends an RDM package.

Source

fn receive_rdm(&mut self) -> Result<RdmData, DmxError<Self::DriverError>>

Receives an RDM package.

Source

fn receive_rdm_discovery_response( &mut self, ) -> Result<DiscoveryOption, DmxError<Self::DriverError>>

Receives an RDM discovery response. Returns the received device id.

Source

fn send_rdm_discovery_response( &mut self, uid: UniqueIdentifier, ) -> Result<(), DmxError<Self::DriverError>>

Send a dmx discovery response. If this functionality is already been solved by the device add hand, provide an empty function.

Implementors§