1818
1919#define COMLYNX_BAUDRATE 62500
2020
21- #define MN_RESET 0x00 // command.control (reset)
22- #define MN_STATUS 0x01 // command.control (status)
23- #define MN_ACK 0x02 // command.control (ack)
24- #define MN_CLR 0x03 // command.control (clr) (aka CTS)
25- #define MN_RECEIVE 0x04 // command.control (receive)
26- #define MN_CANCEL 0x05 // command.control (cancel)
27- #define MN_SEND 0x06 // command.control (send)
28- #define MN_NACK 0x07 // command.control (nack)
29- #define MN_READY 0x0D // command.control (ready)
30-
31- #define NM_STATUS 0x08 // response.control (status)
32- #define NM_ACK 0x09 // response.control (ack)
33- #define NM_CANCEL 0x0A // response.control (cancel)
34- #define NM_SEND 0x0B // response.data (send)
35- #define NM_NACK 0x0C // response.control (nack)
36-
37-
3821#define COMLYNX_RESET_DEBOUNCE_PERIOD 100 // in ms
3922
4023class systemBus ;
@@ -137,11 +120,6 @@ class virtualDevice
137120 */
138121 virtual void comlynx_response_nack ();
139122
140- /* *
141- * @brief acknowledge if device is ready, but not if cmd took too long.
142- */
143- // virtual void comlynx_control_ready();
144-
145123 /* *
146124 * @brief Device Number: 0-15
147125 */
@@ -155,36 +133,11 @@ class virtualDevice
155133 */
156134 virtual void comlynx_process ();
157135
158- /* *
159- * @brief Do any tasks that can only be done when the bus is quiet
160- */
161- // virtual void comlynx_idle();
162-
163- /* *
164- * @brief send current status of device
165- */
166- // virtual void comlynx_control_status();
167-
168- /* *
169- * @brief lynx says clear to send!
170- */
171- // virtual void comlynx_control_clr();
172-
173- /* *
174- * @brief send status response
175- */
176- // virtual void comlynx_response_status();
177-
178136 /* *
179137 * @brief command frame, used by network protocol, ultimately
180138 */
181139 cmdFrame_t cmdFrame;
182140
183- /* *
184- * The response sent in comlynx_response_status()
185- */
186- // uint8_t status_response[6] = {0x80,0x00,0x00,0x01,0x00,0x00};
187-
188141 /* *
189142 * Response buffer and length
190143 */
@@ -225,7 +178,6 @@ class virtualDevice
225178class systemBus
226179{
227180private:
228- // std::map<uint8_t, virtualDevice *> _daisyChain;
229181 std::forward_list<virtualDevice *> _daisyChain;
230182 virtualDevice *_activeDev = nullptr ;
231183 lynxFuji *_fujiDev = nullptr ;
@@ -253,7 +205,7 @@ class systemBus
253205 /* *
254206 * stopwatch
255207 */
256- int64_t start_time;
208+ // int64_t start_time;
257209
258210 int numDevices ();
259211 void addDevice (virtualDevice *pDevice, fujiDeviceID_t device_id);
0 commit comments