1
0
Fork 0
Commit Graph

59 Commits

Author SHA1 Message Date
Kevin Matz 310eae05ec don't hard code constants 2023-05-13 11:25:32 -04:00
Kevin Matz 4f76a2f96c add code path for (eventually) receiving discovery messages 2023-05-03 16:10:52 -04:00
Kevin Matz 29173eacf2 use the BCD serial number for the RDM device id 2023-04-28 20:19:15 -04:00
Kevin Matz ab17dc05ba template the BCD converters 2023-04-28 20:16:41 -04:00
Kevin Matz 35dc0f30d2 configure RDM device info 2023-04-27 09:26:05 -04:00
Kevin Matz fc48300964 connect RDM responder I/O 2023-04-26 10:05:16 -04:00
Kevin Matz e951c25461 let the universe decide what to do with start codes 2023-04-26 10:04:06 -04:00
Kevin Matz 7802f201e0 documentation 2023-04-26 09:58:03 -04:00
Kevin Matz 2fdef29242 use the widget mode to determine the appropriate RDM configuration 2023-04-25 16:48:24 -04:00
Kevin Matz 4d797f2c1c also set the DMX device class when changing operating mode 2023-04-17 08:17:31 -04:00
Kevin Matz a34ada6da5 an asynchronous open procedure 2023-04-16 21:13:11 -04:00
Kevin Matz c3bc6dc44e read the full length of remaining data 2023-04-16 14:54:01 -04:00
Kevin Matz 18e710dc56 simplify open/close semantics 2023-04-14 10:10:10 -04:00
Kevin Matz 80bfce67b7 setting parameters may optionally set the user data 2023-04-14 10:09:26 -04:00
Kevin Matz a58ffc5c4a remove promises/futures for now 2023-04-14 10:07:58 -04:00
Kevin Matz 0bb177c68e get/set user configuration data 2023-04-14 09:55:10 -04:00
Kevin Matz da32cf4240 feature sets are encoded in the high byte of the firmware version 2023-04-14 09:54:05 -04:00
Kevin Matz 1bf3f23a66 return the calculated value that was actually set 2023-04-14 09:53:30 -04:00
Kevin Matz 5d7f169692 don't change the mode when opening 2023-04-09 20:51:07 -04:00
Kevin Matz 4833b37739 copy dimmer data directly to the data vector 2023-04-09 20:42:05 -04:00
Kevin Matz 244da5c8c1 no need to pass around zero data messages 2023-04-09 19:51:01 -04:00
Kevin Matz c16e999969 use a helper to make the different MessageData specializations 2023-04-09 19:43:54 -04:00
Kevin Matz 3cb89f51d3 mark stream functions as virtual in the derivative classes 2023-04-09 19:34:27 -04:00
Kevin Matz b6e080f7b4 give the No-Op message it's own class 2023-04-09 19:33:03 -04:00
Kevin Matz be4064bb14 declare a storage type for enums 2023-04-09 19:32:35 -04:00
Kevin Matz 6387944c68 the usb mode can be accessible by super classes 2023-04-09 19:31:56 -04:00
Kevin Matz 55317f7513 BCD encode/decode the serial number 2023-04-09 19:26:41 -04:00
Kevin Matz c12044326f accept hello on closed port 2023-04-06 12:39:18 -04:00
Kevin Matz e1e9c9d473 enable label=0 as ping/echo 2023-04-06 12:37:25 -04:00
Kevin Matz 9168f1b98c a (probably incorrect) interpretation of writing firmware 2023-04-06 10:43:42 -04:00
Kevin Matz 0617cc3bf6 only send a reboot message if operating as a USB Host 2023-04-06 10:42:39 -04:00
Kevin Matz 388beecf8d take the promise's future whilst still holding the metadata mutex 2023-04-06 10:11:33 -04:00
Kevin Matz b92f159d02 default into bridge mode on init/connect 2023-04-06 09:53:42 -04:00
Kevin Matz 153786efa4 get the initial parameter values when the device is opened. 2023-04-06 09:45:39 -04:00
Kevin Matz 97ae66e231 Only consider the port to be open if a serial number can be read within 500 milliseconds. 2023-04-06 09:44:54 -04:00
Kevin Matz e316c71a83 messages that expect a reply may optionally block to wait for it. 2023-04-06 09:43:41 -04:00
Kevin Matz a355edd722 use the USB mode to determine connection state 2023-04-06 09:40:00 -04:00
Kevin Matz c2f1dcce07 rename the dimmer data change callback token 2023-04-06 08:34:35 -04:00
Kevin Matz fa2625f77d thread protect metadata with a mutex 2023-04-06 08:33:57 -04:00
Kevin Matz 5a4e827f08 DMX data I/O 2023-04-05 12:41:13 -04:00
Kevin Matz 55c9060ff6 use the same defaults as the Enttec 2023-04-05 12:39:12 -04:00
Kevin Matz 54244d4988 metadata setter functions 2023-04-05 09:19:16 -04:00
Kevin Matz 10ee3c1d22 setting device parameters is a const operation for the host 2023-04-05 08:55:18 -04:00
Kevin Matz b6a81c2bd2 host may tell device to prep for recieving a firmware 2023-04-05 08:54:43 -04:00
Kevin Matz 98e903159c user data length must match the lenght of data sent 2023-04-05 08:43:26 -04:00
Kevin Matz d496e71f8a get/set widget metadata 2023-04-05 08:42:50 -04:00
Kevin Matz 1b272f0d23 rename USB host side methods 2023-04-05 08:10:59 -04:00
Kevin Matz 72a66be0b5 let superclasses decide if they want firmware updates 2023-04-05 06:56:23 -04:00
Kevin Matz 0b7143f809 get/set widget parameters 2023-04-03 20:12:01 -04:00
Kevin Matz a2ec07e16c get/set serial number 2023-04-03 20:11:25 -04:00