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§
Sourcefn send_rdm(
&mut self,
package: RdmData,
) -> Result<(), DmxError<Self::DriverError>>
fn send_rdm( &mut self, package: RdmData, ) -> Result<(), DmxError<Self::DriverError>>
Sends an RDM package.
Sourcefn receive_rdm(&mut self) -> Result<RdmData, DmxError<Self::DriverError>>
fn receive_rdm(&mut self) -> Result<RdmData, DmxError<Self::DriverError>>
Receives an RDM package.
Sourcefn receive_rdm_discovery_response(
&mut self,
) -> Result<DiscoveryOption, DmxError<Self::DriverError>>
fn receive_rdm_discovery_response( &mut self, ) -> Result<DiscoveryOption, DmxError<Self::DriverError>>
Receives an RDM discovery response. Returns the received device id.
Sourcefn send_rdm_discovery_response(
&mut self,
uid: UniqueIdentifier,
) -> Result<(), DmxError<Self::DriverError>>
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.