use dmx_rdm::dmx_receiver::{DmxResponderHandler, RdmResponder, RdmResponderConfig}; use dmx_rdm::unique_identifier::UniqueIdentifier; use dmx_rdm_ftdi::{FtdiDriver, FtdiDriverConfig}; struct TestHandler; impl DmxResponderHandler for TestHandler { type Error = std::fmt::Error; } #[test] fn test_ftdi_integration() { let mut dmx_driver = FtdiDriver::new(FtdiDriverConfig::default()).unwrap(); // Create rdm_responder with space for 32 queued messages. let mut dmx_responder = RdmResponder::<_, 32>::new( dmx_driver, RdmResponderConfig { uid: UniqueIdentifier::new(0x7FF0, 1).unwrap(), // Won't add PID_IDENTIFY_DEVICE since this is a required pid. supported_pids: &[], rdm_receiver_metadata: Default::default(), }, ); let mut handler = TestHandler; dmx_responder.poll(&mut handler).unwrap(); }