/
amx-dxlink-listener.axi
885 lines (735 loc) · 23.8 KB
/
amx-dxlink-listener.axi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
program_name='amx-dxlink-listener'
#if_not_defined __AMX_DXLINK_LISTENER__
#define __AMX_DXLINK_LISTENER__
/*
* --------------------
* amx-dxlink-listener
*
* For usage, check out the readme for the amx-dxlink-library.
* --------------------
*/
define_constant
char VERSION_AMX_DXLINK_LISTENER[] = 'v1.0.0'
#include 'amx-dxlink-api'
#include 'common'
/*
* --------------------
* Device arrays
*
* Any components that are to be monitored should have the appropriate
* device array copied into the main program DEFINE_VARIABLE section and the
* associated #DEFINE compiler directives should be copied to the top of the
* main program, above the line of code that this include file is included
* into the main program.
* --------------------
*/
define_variable
/*
// Transmitters
#DEFINE INCLUDE_DXLINK_MONITOR_TX_MAIN
dev dvDxlinkTxMainPorts[] = {7001:1:0}
#DEFINE INCLUDE_DXLINK_MONITOR_TX_USB
dev dvDxlinkTxUsbPorts[] = {7001:5:0}
#DEFINE INCLUDE_DXLINK_MONITOR_TX_VIDEO_INPUT_DIGITAL
dev dvDxlinkTxDigitalVideoInPorts[] = {7001:7:0}
#DEFINE INCLUDE_DXLINK_MONITOR_TX_AUDIO_INPUT
dev dvDxlinkTxAudInPorts[] = {7001:7:0}
#DEFINE INCLUDE_DXLINK_MONITOR_TX_VIDEO_INPUT_ANALOG
dev dvDxlinkTxAnalogVidInPorts[] = {7001:8:0}
// Receivers
#DEFINE INCLUDE_DXLINK_MONITOR_RX_MAIN
dev dvDxlinkRxMainPorts[] = {8001:1:0}
#DEFINE INCLUDE_DXLINK_MONITOR_RX_USB
dev dvDxlinkRxUsbPorts[] = {8001:5:0}
#DEFINE INCLUDE_DXLINK_MONITOR_RX_VIDEO_OUTPUT
dev dvDxlinkRxVidOutPorts[] = {8001:6:0}
#DEFINE INCLUDE_DXLINK_MONITOR_RX_AUDIO_OUTPUT
dev dvDxlinkRxAudOutPorts[] = {8001:6:0}
*/
/*
* --------------------
* Callback functions
* --------------------
*/
/*
* --------------------
* Switch callback functions
* --------------------
*/
/*
#define INCLUDE_DXLINK_NOTIFY_TX_SWITCH_CALLBACK
define_function dxlinkNotifyTxSwitch (dev dxlinkTxPort1, integer input, integer output)
{
// dxlinkTxPort1 is port 1 on the DXLink Tx.
// input contains the input port on the DXLink TX that has been selected (DXLINK_PORT_VIDEO_INPUT_ANALOG | DXLINK_PORT_VIDEO_INPUT_DIGITAL)
// output contains the output of the DXLink TX. This is always DXLINK_PORT_VIDEO_OUTPUT.
}
*/
/*
* --------------------
* Video input callback functions
* --------------------
*/
/*
#define INCLUDE_DXLINK_NOTIFY_TX_VIDEO_INPUT_STATUS_ANALOG_CALLBACK
define_function dxlinkNotifyTxVideoInputStatusAnalog (dev dxlinkTxAnalogVideoInput, char signalStatus[])
{
// dxlinkTxAnalogVideoInput is the analog video input port on the DXLink Tx
// signalStatus is the input signal status (DXLINK_SIGNAL_STATUS_NO_SIGNAL | DXLINK_SIGNAL_STATUS_UNKNOWN | DXLINK_SIGNAL_STATUS_VALID_SIGNAL)
}
*/
/*
#define INCLUDE_DXLINK_NOTIFY_TX_VIDEO_INPUT_STATUS_DIGITAL_CALLBACK
define_function dxlinkNotifyTxVideoInputStatusDigital (dev dxlinkTxDigitalVideoInput, char signalStatus[])
{
// dxlinkTxDigitalVideoInput is the digital video input port on the DXLink Tx
// signalStatus is the input signal status (DXLINK_SIGNAL_STATUS_NO_SIGNAL | DXLINK_SIGNAL_STATUS_UNKNOWN | DXLINK_SIGNAL_STATUS_VALID_SIGNAL)
}
*/
/*
#define INCLUDE_DXLINK_NOTIFY_TX_VIDEO_INPUT_FORMAT_ANALOG_CALLBACK
define_function dxlinkNotifyTxVideoInputFormatAnalog (dev dxlinkTxAnalogVideoInput, char videoFormat[])
{
// dxlinkTxAnalogVideoInput is the analog video input port on the DXLink Tx
// videoFormat is the video format (VIDEO_SIGNAL_FORMAT_VGA | VIDEO_SIGNAL_FORMAT_COMPOSITE | VIDEO_SIGNAL_FORMAT_COMPONENT | VIDEO_SIGNAL_FORMAT_SVIDEO)
}
*/
/*
#define INCLUDE_DXLINK_NOTIFY_TX_VIDEO_INPUT_FORMAT_DIGITAL_CALLBACK
define_function dxlinkNotifyTxVideoInputFormatDigital (dev dxlinkTxDigitalVideoInput, char videoFormat[])
{
// dxlinkTxDigitalVideoInput is the digital video input port on the DXLink Tx
// videoFormat is the video format (VIDEO_SIGNAL_FORMAT_DVI | VIDEO_SIGNAL_FORMAT_HDMI)
}
*/
/*
#define INCLUDE_DXLINK_NOTIFY_TX_VIDEO_INPUT_AUTO_SELECT_CALLBACK
define_function dxlinkNotifyTxVideoInputAutoSelect (dev dxlinkTxPort1, char status[])
{
// dxlinkTxPort1 is the port #1 on the DXLink Tx
// status contains the auto video input select status (STATUS_ENABLE | STATUS_DISABLE | DXLINK_AUTO_SELECT_ANALOG_PRIORITY)
}
*/
/*
#define INCLUDE_DXLINK_NOTIFY_TX_VIDEO_INPUT_AUTO_RESOLUTION_ANALOG_CALLBACK
define_function dxlinkNotifyTxVideoInputResolutionAutoAnalog (dev dxlinkTxAnalogVideoInput, char status[])
{
// dxlinkTxAnalogVideoInput is the analog video input port on the DXLink Tx
// status is the auto resolution detect status (STATUS_ENABLE | STATUS_DISABLE)
}
*/
/*
#define INCLUDE_DXLINK_NOTIFY_TX_VIDEO_INPUT_AUTO_RESOLUTION_DIGITAL_CALLBACK
define_function dxlinkNotifyTxVideoInputResolutionAutoDigital (dev dxlinkTxDigitalVideoInput, char status[])
{
// dxlinkTxDigitalVideoInput is the digital video input port on the DXLink Tx
// status is the auto resolution detect status (STATUS_ENABLE | STATUS_DISABLE)
}
*/
/*
#define INCLUDE_DXLINK_NOTIFY_TX_VIDEO_INPUT_RESOLUTION_ANALOG_CALLBACK
define_function dxlinkNotifyTxVideoInputResolutionAnalog (dev dxlinkTxAnalogVideoInput, char resolution[])
{
// dxlinkTxAnalogVideoInput is the analog video input port on the DXLink Tx
// resolution is the input resolution.
}
*/
/*
#define INCLUDE_DXLINK_NOTIFY_TX_VIDEO_INPUT_RESOLUTION_DIGITAL_CALLBACK
define_function dxlinkNotifyTxVideoInputResolutionDigital (dev dxlinkTxDigitalVideoInput, char resolution[])
{
// dxlinkTxDigitalVideoInput is the digital video input port on the DXLink Tx
// resolution is the input resolution.
}
*/
/*
#define INCLUDE_DXLINK_NOTIFY_TX_VIDEO_INPUT_EDID_SOURCE_ANALOG_CALLBACK
define_function dxlinkNotifyTxVideoInputEdidSourceAnalog (dev dxlinkTxAnalogVideoInput, char edidSource[])
{
// dxlinkTxAnalogVideoInput is the analog video input port on the DXLink Tx
// edidSource is the source of the EDID on the DXLink analog video input (DXLINK_EDID_SOURCE_ALL_RESOLUTIONS | DXLINK_EDID_SOURCE_FULL_SCREEN | DXLINK_EDID_SOURCE_WIDE_SCREEN | DXLINK_EDID_SOURCE_USER_EDID_1 | DXLINK_EDID_SOURCE_USER_EDID_MODIFIED)
}
*/
/*
#define INCLUDE_DXLINK_NOTIFY_TX_VIDEO_INPUT_EDID_SOURCE_DIGITAL_CALLBACK
define_function dxlinkNotifyTxVideoInputEdidSourceDigital (dev dxlinkTxDigitalVideoInput, char edidSource[])
{
// dxlinkTxDigitalVideoInput is the digital video input port on the DXLink Tx
// edidSource is the source of the EDID on the DXLink analog video input (DXLINK_EDID_SOURCE_ALL_RESOLUTIONS | DXLINK_EDID_SOURCE_FULL_SCREEN | DXLINK_EDID_SOURCE_WIDE_SCREEN | DXLINK_EDID_SOURCE_MIRROR_OUT_1 | DXLINK_EDID_SOURCE_MIRROR_OUT_LOCAL | DXLINK_EDID_SOURCE_USER_EDID_1 | DXLINK_EDID_SOURCE_USER_EDID_MODIFIED)
}
*/
/*
#define INCLUDE_DXLINK_NOTIFY_TX_VIDEO_INPUT_EDID_PREFERRED_RESOLUTION_ANALOG_CALLBACK
define_function dxlinkNotifyVideoInputEdidPreferredResolutionAnalog (dev dxlinkTxAnalogVideoInput, char resolution[])
{
// dxlinkTxAnalogVideoInput is the analog video input port on the DXLink Tx
// resolution is the resolution listed in the EDID as the preferred (or native) resolution on the DXLink Tx analog video input
}
*/
/*
#define INCLUDE_DXLINK_NOTIFY_TX_VIDEO_INPUT_HDCP_COMPLIANCE
define_function dxlinkNotifyTxVideoInputHdcpCompliance (dev dxlinkTxDigitalVideoInput, char status[])
{
// dxlinkTxDigitalVideoInput is the digital video input port on the DXLink Tx
// status is the status of the HDCP compliance on the video input port (STATUS_ENABLE | STATUS_DISABLE)
}
*/
/*
#define INCLUDE_DXLINK_NOTIFY_TX_VIDEO_INPUT_HORIZONTAL_SHIFT_CALLBACK
define_function dxlinkNotifyTxVideoInputHorizontalShift (dev dxlinkTxAnalogVideoInput, sinteger horizontalShift)
{
// dxlinkTxAnalogVideoInput is the analog video input port on the DXLink Tx
// horizontalShift is the horizontal shift value
}
*/
/*
#define INCLUDE_DXLINK_NOTIFY_TX_VIDEO_INPUT_PHASE_CALLBACK
define_function dxlinkNotifyTxVideoInputPhase (dev dxlinkTxAnalogVideoInput, integer phase)
{
// dxlinkTxAnalogVideoInput is the analog video input port on the DXLink Tx
// phase is the phase value
}
*/
/*
#define INCLUDE_DXLINK_NOTIFY_TX_VIDEO_INPUT_VERTICAL_SHIFT_CALLBACK
define_function dxlinkNotifyTxVideoInputVerticalShift (dev dxlinkTxAnalogVideoInput, sinteger verticalShift)
{
// dxlinkTxAnalogVideoInput is the analog video input port on the DXLink Tx
// verticalShift is the vertical shift value
}
*/
/*
* --------------------
* Video output callback functions
* --------------------
*/
/*
#define INCLUDE_DXLINK_NOTIFY_RX_VIDEO_OUTPUT_SCALE_MODE_CALLBACK
define_function dxlinkNotifyRxVideoOutputScaleMode (dev dxlinkRxVideoOutput, char scaleMode[])
{
// dxlinkRxVideoOutput is the D:P:S of the video output port on the DXLink receiver
// scaleMode contains the scaler mode (DXLINK_SCALE_MODE_AUTO | DXLINK_SCALE_MODE_BYPASS | DXLINK_SCALE_MODE_MANUAL)
}
*/
/*
#define INCLUDE_DXLINK_NOTIFY_RX_VIDEO_OUTPUT_RESOLUTION_CALLBACK
define_function dxlinkNotifyRxVideoOutputResolution (dev dxlinkRxVideoOutput, char resolution[])
{
// dxlinkRxVideoOutput is the D:P:S of the video output port on the DXLink receiver
// resolution is the video output resolution and refresh (HORxVER,REF)
}
*/
/*
#define INCLUDE_DXLINK_NOTIFY_RX_VIDEO_OUTPUT_ASPECT_RATIO_CALLBACK
define_function dxlinkNotifyRxVideoOutputAspectRatio (dev dxlinkRxVideoOutput, char aspectRatio[])
{
// dxlinkRxVideoOutput is the D:P:S of the video output port on the DXLink receiver
// aspectRatio is the aspect ratio (DXLINK_ASPECT_RATIO_ANAMORPHIC | DXLINK_ASPECT_RATIO_MAINTAIN | DXLINK_ASPECT_RATIO_STRETCH | DXLINK_ASPECT_RATIO_ZOOM)
}
*/
/*
#define INCLUDE_DXLINK_NOTIFY_RX_VIDEO_OUTPUT_TEST_PATTERN_CALLBACK
define_function dxlinkNotifyRxVideoOutputTestPattern (dev dxlinkRxVideoOutput, char testPattern[])
{
// dxlinkRxVideoOutput is the D:P:S of the video output port on the DXLink receiver
// testPattern is the test pattern (DXLINK_TEST_PATTERN_OFF | DXLINK_TEST_PATTERN_COLOR_BAR | DXLINK_TEST_PATTERN_GRAY_RAMP | DXLINK_TEST_PATTERN_SMPTE_BAR | DXLINK_TEST_PATTERN_HILO_TRACK | DXLINK_TEST_PATTERN_PLUGE | DXLINK_TEST_PATTERN_X_HATCH)
}
*/
/*
#define INCLUDE_DXLINK_NOTIFY_RX_VIDEO_OUTPUT_MUTE_CALLBACK
define_function dxlinkNotifyRxVideoOutputMute (dev dxlinkRxVideoOutput, char muteStatus[])
{
// dxlinkRxVideoOutput is the D:P:S of the video output port on the DXLink receiver
// muteStatus contains the video output mute status (STATUS_ENABLE | STATUS_DISABLE)
}
*/
/*
* --------------------
* Audio output callback functions
* --------------------
*/
/*
#define INCLUDE_DXLINK_NOTIFY_RX_AUDIO_OUTPUT_FORMAT_CALLBACK
define_function dxlinkNotifyRxAudioOutputFormat (dev dxlinkRxAudioOutput, char audioFormat[])
{
// dxlinkRxAudioOutput is the D:P:S of the audio output port on the DXLink receiver.
// audioFormat is the audio format (DXLINK_AUDIO_OUTPUT_FORMAT_ALL | DXLINK_AUDIO_OUTPUT_FORMAT_ANALOG | DXLINK_AUDIO_OUTPUT_FORMAT_HDMI)
}
*/
/*
#define INCLUDE_DXLINK_NOTIFY_RX_AUDIO_OUTPUT_MUTE_CALLBACK
define_function dxlinkNotifyRxAudioOutputMute (dev dxlinkRxAudioOutput, char muteStatus[])
{
// dxlinkRxAudioOutput is the D:P:S of the audio output port on the DXLink receiver.
// muteStatus contains the audio output mute status (STATUS_ENABLE | STATUS_DISABLE)
}
*/
/*
* --------------------
* Common Tx/Rx callback functions
* --------------------
*/
/*
#define INCLUDE_DXLINK_NOTIFY_TX_FIRMWARE_VERSION
define_function dxlinkNotifyTxFirmwareVersion (dev dxlinkTxPort1, char firmwareVersion[])
{
// dxlinkTxPort1 is the port 1 on the DXLink Tx
// firmwareVersion contains the firmware version
}
*/
/*
#define INCLUDE_DXLINK_NOTIFY_RX_FIRMWARE_VERSION
define_function dxlinkNotifyRxFirmwareVersion (dev dxlinkRxPort1, char firmwareVersion[])
{
// dxlinkRxPort1 is the port 1 on the DXLink Rx
// firmwareVersion contains the firmware version
}
*/
/*
#define INCLUDE_DXLINK_NOTIFY_TX_DXLINK_MODE
define_function dxlinkNotifyTxDxlinkMode (dev dxlinkTxPort1, char modeStatus[])
{
// dxlinkTxPort1 is the port 1 on the DXLink Tx
// modeStatus contains the status of the DXLink mode (STATUS_ENABLE | STATUS_DISABLE)
}
*/
/*
#define INCLUDE_DXLINK_NOTIFY_RX_DXLINK_MODE
define_function dxlinkNotifyRxDxlinkMode (dev dxlinkRxPort1, char modeStatus[])
{
// dxlinkRxPort1 is the port 1 on the DXLink Rx
// modeStatus contains the status of the DXLink mode (STATUS_ENABLE | STATUS_DISABLE)
}
*/
/*
* --------------------
* USB callback functions
* --------------------
*/
/*
#define INCLUDE_DXLINK_NOTIFY_TX_USB_SERVICE_CALLBACK
define_function dxlinkNotifyTxUsbService (dev dxlinkTxPort1, char usbServiceStatus[])
{
// dxlinkTxPort1 is port 1 on the DXLink Tx.
// usbServiceStatus contains the status of the USB service (STATUS_ENABLE | STATUS_DISABLE)
}
*/
/*
#define INCLUDE_DXLINK_NOTIFY_RX_USB_ROUTE_CALLBACK
define_function dxlinkNotifyRxUsbRoute (dev dxlinkRxPort1, char usbRouteIp[])
{
// dxlinkRxPort1 is port 1 on the DXLink Rx.
// usbRouteIp contains the IP address that the USB data from the DXLink Rx is routed to
}
*/
/*
* --------------------
* Audio input callback functions
* --------------------
*/
/*
#define INCLUDE_DXLINK_NOTIFY_TX_AUDIO_INPUT_FORMAT_CALLBACK
define_function dxlinkNotifyTxAudioInputFormat (dev dxlinkTxAudioInput, char audioFormat[])
{
// dxlinkTxAudioInput is the D:P:S of the audio input port on the DXLink transmitter.
// audioFormat is the audio format (DXLINK_AUDIO_INPUT_FORMAT_ANALOG | DXLINK_AUDIO_INPUT_FORMAT_HDMI | DXLINK_AUDIO_INPUT_FORMAT_SPDIF)
}
*/
/*
#define INCLUDE_DXLINK_NOTIFY_TX_AUDIO_INPUT_FORMAT_AUTO_CALLBACK
define_function dxlinkNotifyTxAudioInputFormatAuto (dev dxlinkTxAudioInput, char autoStatus[])
{
// dxlinkTxAudioInput is the D:P:S of the audio input port on the DXLink transmitter.
// autoStatus contains the setting of the automatic audio input format detection feature (STATUS_ENABLE | STATUS_DISABLE)
}
*/
/*
* --------------------
* Events to capture responses from the DXLink Tx/Rx's or update notifications
* --------------------
*/
define_event
/*
* --------------------
* Data events
* --------------------
*/
#if_defined INCLUDE_DXLINK_MONITOR_TX_MAIN
data_event[dvDxlinkTxMainPorts]
{
command:
{
stack_var char cmdHeader[30]
// remove the header
cmdHeader = dxlinkParseCmdHeader(data.text)
// cmdHeader contains the header
// data.text is left with the parameters
switch (cmdHeader)
{
#if_defined INCLUDE_DXLINK_NOTIFY_TX_VIDEO_INPUT_AUTO_SELECT_CALLBACK
case DXLINK_COMMAND_TX_VIDEO_IN_AUTO_SELECT:
{
dxlinkNotifyTxVideoInputAutoSelect (data.device, data.text)
}
#end_if
#if_defined INCLUDE_DXLINK_NOTIFY_TX_SWITCH_CALLBACK
case DXLINK_COMMAND_TX_SWITCH_RESPONSE:
{
stack_var integer input
stack_var integer output
remove_string(data.text, 'LVIDEOI',1)
input = atoi(data.text)
remove_string(data.text, "'O'",1)
output = atoi(data.text)
dxlinkNotifyTxSwitch (data.device, input, output)
}
#end_if
#if_defined INCLUDE_DXLINK_NOTIFY_TX_FIRMWARE_VERSION
case DXLINK_COMMAND_FIRMWARE_VERSION_RESPONSE:
{
dxlinkNotifyTxFirmwareVersion (data.device, data.text)
}
#end_if
#if_defined INCLUDE_DXLINK_NOTIFY_TX_DXLINK_MODE
case DXLINK_COMMAND_DXLINK_MODE:
{
dxlinkNotifyTxDxlinkMode (data.device, data.text)
}
#end_if
default:
{
// unhandled - do nothing!
}
}
}
}
#end_if
#if_defined INCLUDE_DXLINK_MONITOR_TX_USB
data_event[dvDxlinkTxUsbPorts]
{
command:
{
stack_var char cmdHeader[30]
// remove the header
cmdHeader = dxlinkParseCmdHeader(data.text)
// cmdHeader contains the header
// data.text is left with the parameters
switch (cmdHeader)
{
#if_defined INCLUDE_DXLINK_NOTIFY_TX_USB_SERVICE_CALLBACK
case DXLINK_COMMAND_TX_USB_HID_SERVICE:
{
dxlinkNotifyTxUsbService(data.device, data.text)
}
#end_if
default:
{
// unhandled - do nothing!
}
}
}
}
#end_if
#if_defined INCLUDE_DXLINK_MONITOR_TX_AUDIO_INPUT
data_event[dvDxlinkTxAudInPorts]
{
command:
{
stack_var char cmdHeader[30]
// remove the header
cmdHeader = dxlinkParseCmdHeader(data.text)
// cmdHeader contains the header
// data.text is left with the parameters
switch (cmdHeader)
{
#if_defined INCLUDE_DXLINK_NOTIFY_TX_AUDIO_INPUT_FORMAT_AUTO_CALLBACK
case DXLINK_COMMAND_TX_AUDIO_IN_FORMAT_AUTO:
{
dxlinkNotifyTxAudioInputFormatAuto (data.device, data.text)
}
#end_if
#if_defined INCLUDE_DXLINK_NOTIFY_TX_AUDIO_INPUT_FORMAT_CALLBACK
case DXLINK_COMMAND_TX_AUDIO_IN_FORMAT:
{
dxlinkNotifyTxAudioInputFormat (data.device, data.text)
}
#end_if
default:
{
// unhandled - do nothing!
}
}
}
}
#end_if
#if_defined INCLUDE_DXLINK_MONITOR_TX_VIDEO_INPUT_DIGITAL
data_event[dvDxlinkTxDigitalVideoInPorts]
{
command:
{
stack_var char cmdHeader[30]
// remove the header
cmdHeader = dxlinkParseCmdHeader(data.text)
// cmdHeader contains the header
// data.text is left with the parameters
switch (cmdHeader)
{
#if_defined INCLUDE_DXLINK_NOTIFY_TX_VIDEO_INPUT_STATUS_DIGITAL_CALLBACK
case DXLINK_COMMAND_TX_VIDEO_IN_STATUS_RESPONSE:
{
dxlinkNotifyTxVideoInputStatusDigital (data.device, data.text)
}
#end_if
#if_defined INCLUDE_DXLINK_NOTIFY_TX_VIDEO_INPUT_FORMAT_DIGITAL_CALLBACK
case DXLINK_COMMAND_TX_VIDEO_IN_FORMAT:
{
dxlinkNotifyTxVideoInputFormatDigital (data.device, data.text)
}
#end_if
#if_defined INCLUDE_DXLINK_NOTIFY_TX_VIDEO_INPUT_RESOLUTION_AUTO_DIGITAL_CALLBACK
case DXLINK_COMMAND_TX_VIDEO_IN_RESOLUTION_AUTO:
{
dxlinkNotifyTxVideoInputResolutionAutoDigital (data.device, data.text)
}
#end_if
#if_defined INCLUDE_DXLINK_NOTIFY_TX_VIDEO_INPUT_RESOLUTION_DIGITAL_CALLBACK
case DXLINK_COMMAND_TX_VIDEO_IN_RESOLUTION:
{
dxlinkNotifyTxVideoInputResolutionDigital (data.device, data.text)
}
#end_if
#if_defined INCLUDE_DXLINK_NOTIFY_TX_VIDEO_INPUT_EDID_SOURCE_DIGITAL_CALLBACK
case DXLINK_COMMAND_TX_VIDEO_IN_EDID_SOURCE:
{
dxlinkNotifyTxVideoInputEdidSourceDigital (data.device, data.text)
}
#end_if
#if_defined INCLUDE_DXLINK_NOTIFY_TX_VIDEO_INPUT_HDCP_COMPLIANCE
case DXLINK_COMMAND_TX_VIDEO_IN_HDCP_COMPLIANCE:
{
dxlinkNotifyTxVideoInputHdcpCompliance (data.device, data.text)
}
#end_if
default:
{
// unhandled - do nothing!
}
}
}
}
#end_if
#if_defined INCLUDE_DXLINK_MONITOR_TX_VIDEO_INPUT_ANALOG
data_event[dvDxlinkTxAnalogVidInPorts]
{
command:
{
stack_var char cmdHeader[30]
// remove the header
cmdHeader = dxlinkParseCmdHeader(data.text)
// cmdHeader contains the header
// data.text is left with the parameters
switch (cmdHeader)
{
#if_defined INCLUDE_DXLINK_NOTIFY_TX_VIDEO_INPUT_STATUS_ANALOG_CALLBACK
case DXLINK_COMMAND_TX_VIDEO_IN_STATUS_RESPONSE:
{
dxlinkNotifyTxVideoInputStatusAnalog (data.device, data.text)
}
#end_if
#if_defined INCLUDE_DXLINK_NOTIFY_TX_VIDEO_INPUT_FORMAT_ANALOG_CALLBACK
case DXLINK_COMMAND_TX_VIDEO_IN_FORMAT:
{
dxlinkNotifyTxVideoInputFormatAnalog (data.device, data.text)
}
#end_if
#if_defined INCLUDE_DXLINK_NOTIFY_TX_VIDEO_INPUT_RESOLUTION_AUTO_ANALOG_CALLBACK
case DXLINK_COMMAND_TX_VIDEO_IN_RESOLUTION_AUTO:
{
dxlinkNotifyTxVideoInputResolutionAutoAnalog (data.device, data.text)
}
#end_if
#if_defined INCLUDE_DXLINK_NOTIFY_TX_VIDEO_INPUT_RESOLUTION_AUTO_DIGITAL_CALLBACK
case DXLINK_COMMAND_TX_VIDEO_IN_RESOLUTION:
{
dxlinkNotifyTxVideoInputResolutionAutoDigital (data.device, data.text)
}
#end_if
#if_defined INCLUDE_DXLINK_NOTIFY_TX_VIDEO_INPUT_EDID_PREFERRED_RESOLUTION_ANALOG_CALLBACK
case DXLINK_COMMAND_TX_VIDEO_IN_EDID_PREFERRED_RESOLUTION:
{
dxlinkNotifyVideoInputEdidPreferredResolutionAnalog (data.device, data.text)
}
#end_if
#if_defined INCLUDE_DXLINK_NOTIFY_TX_VIDEO_INPUT_EDID_SOURCE_ANALOG_CALLBACK
case DXLINK_COMMAND_TX_VIDEO_IN_EDID_SOURCE:
{
dxlinkNotifyTxVideoInputEdidSourceAnalog (data.device, data.text)
}
#end_if
#if_defined INCLUDE_DXLINK_NOTIFY_TX_VIDEO_INPUT_VERTICAL_SHIFT_CALLBACK
case DXLINK_COMMAND_TX_VIDEO_IN_VERTICAL_SHIFT:
{
dxlinkNotifyTxVideoInputVerticalShift (data.device, atoi(data.text))
}
#end_if
#if_defined INCLUDE_DXLINK_NOTIFY_TX_VIDEO_INPUT_HORIZONTAL_SHIFT_CALLBACK
case DXLINK_COMMAND_TX_VIDEO_IN_HORIZONTAL_SHIFT:
{
dxlinkNotifyTxVideoInputHorizontalShift (data.device, atoi(data.text))
}
#end_if
#if_defined INCLUDE_DXLINK_NOTIFY_TX_VIDEO_INPUT_PHASE_CALLBACK
case DXLINK_COMMAND_TX_VIDEO_IN_PHASE:
{
dxlinkNotifyTxVideoInputPhase (data.device, atoi(data.text))
}
#end_if
default:
{
// unhandled - do nothing!
}
}
}
}
#end_if
#if_defined INCLUDE_DXLINK_MONITOR_RX_MAIN
data_event[dvDxlinkRxMainPorts]
{
command:
{
stack_var char cmdHeader[30]
// remove the header
cmdHeader = dxlinkParseCmdHeader(data.text)
// cmdHeader contains the header
// data.text is left with the parameters
switch (cmdHeader)
{
#if_defined INCLUDE_DXLINK_NOTIFY_RX_FIRMWARE_VERSION
case DXLINK_COMMAND_FIRMWARE_VERSION_RESPONSE:
{
dxlinkNotifyRxFirmwareVersion (data.device, data.text)
}
#end_if
#if_defined INCLUDE_DXLINK_NOTIFY_RX_DXLINK_MODE
case DXLINK_COMMAND_DXLINK_MODE:
{
dxlinkNotifyRxDxlinkMode (data.device, data.text)
}
#end_if
default:
{
// unhandled - do nothing!
}
}
}
}
#end_if
#if_defined INCLUDE_DXLINK_MONITOR_RX_USB
data_event[dvDxlinkRxUsbPorts]
{
command:
{
stack_var char cmdHeader[30]
// remove the header
cmdHeader = dxlinkParseCmdHeader(data.text)
// cmdHeader contains the header
// data.text is left with the parameters
switch (cmdHeader)
{
#if_defined INCLUDE_DXLINK_NOTIFY_RX_USB_ROUTE_CALLBACK
case DXLINK_COMMAND_RX_USB_HID_ROUTE:
{
dxlinkNotifyRxUsbRoute(data.device, data.text)
}
#end_if
default:
{
// unhandled - do nothing!
}
}
}
}
#end_if
#if_defined INCLUDE_DXLINK_MONITOR_RX_VIDEO_OUTPUT
data_event[dvDxlinkRxVidOutPorts]
{
command:
{
stack_var char cmdHeader[30]
// remove the header
cmdHeader = dxlinkParseCmdHeader(data.text)
// cmdHeader contains the header
// data.text is left with the parameters
switch (cmdHeader)
{
#if_defined INCLUDE_DXLINK_NOTIFY_RX_VIDEO_OUTPUT_SCALE_MODE_CALLBACK
case DXLINK_COMMAND_RX_VIDEO_OUT_SCALE_MODE:
{
dxlinkNotifyRxVideoOutputScaleMode (data.device, data.text)
}
#end_if
#if_defined INCLUDE_DXLINK_NOTIFY_RX_VIDEO_OUTPUT_RESOLUTION_CALLBACK
case DXLINK_COMMAND_RX_VIDEO_OUT_RESOLUTION:
{
dxlinkNotifyRxVideoOutputResolution (data.device, data.text)
}
#end_if
#if_defined INCLUDE_DXLINK_NOTIFY_RX_VIDEO_OUTPUT_ASPECT_RATIO_CALLBACK
case DXLINK_COMMAND_RX_VIDEO_OUT_ASPECT_RATIO:
{
dxlinkNotifyRxVideoOutputAspectRatio (data.device, data.text)
}
#end_if
#if_defined INCLUDE_DXLINK_NOTIFY_RX_VIDEO_OUTPUT_TEST_PATTERN_CALLBACK
case DXLINK_COMMAND_RX_VIDEO_OUT_TEST_PATTERN:
{
dxlinkNotifyRxVideoOutputTestPattern (data.device, data.text)
}
#end_if
#if_defined INCLUDE_DXLINK_NOTIFY_RX_VIDEO_OUTPUT_MUTE_CALLBACK
case DXLINK_COMMAND_RX_VIDEO_OUT_MUTE:
{
dxlinkNotifyRxVideoOutputMute (data.device, data.text)
}
#end_if
default:
{
// unhandled - do nothing!
}
}
}
}
#end_if
#if_defined INCLUDE_DXLINK_MONITOR_RX_AUDIO_OUTPUT
data_event[dvDxlinkRxAudOutPorts]
{
command:
{
stack_var char cmdHeader[30]
// remove the header
cmdHeader = dxlinkParseCmdHeader(data.text)
// cmdHeader contains the header
// data.text is left with the parameters
switch (cmdHeader)
{
#if_defined INCLUDE_DXLINK_NOTIFY_RX_AUDIO_OUTPUT_MUTE_CALLBACK
case DXLINK_COMMAND_RX_AUDIO_OUT_MUTE:
{
dxlinkNotifyRxAudioOutputMute (data.device, data.text)
}
#end_if
#if_defined INCLUDE_DXLINK_NOTIFY_RX_AUDIO_OUTPUT_FORMAT_CALLBACK
case DXLINK_COMMAND_RX_AUDIO_OUT_FORMAT:
{
dxlinkNotifyRxAudioOutputFormat (data.device, data.text)
}
#end_if
default:
{
// unhandled - do nothing!
}
}
}
}
#end_if
#end_if