onboardapi-sys 9.10.0

Raw FFI to the Rheinmetall onboardapi C++ SDK through a generated extern "C" shim
Documentation
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
// @generated by onboardapi-codegen from the onboardapi .rmodel data model. Do not edit.
// SPDX-License-Identifier: EPL-2.0
#include "wire_Camera.hpp"
#include "../obapi_runtime.hpp"

#include <type_traits>

static_assert(static_cast<uint32_t>(::M_Camera::ScaleDirection::Increase) == 0u, "enum value M_Camera::ScaleDirection::Type::Increase differs from the data model");
static_assert(static_cast<uint32_t>(::M_Camera::ScaleDirection::Decrease) == 1u, "enum value M_Camera::ScaleDirection::Type::Decrease differs from the data model");
static_assert(static_cast<uint32_t>(::M_Camera::PolarityHotColor::White) == 0u, "enum value M_Camera::PolarityHotColor::Type::White differs from the data model");
static_assert(static_cast<uint32_t>(::M_Camera::PolarityHotColor::Black) == 1u, "enum value M_Camera::PolarityHotColor::Type::Black differs from the data model");
static_assert(static_cast<uint32_t>(::M_Camera::PolarityHotColor::Red) == 2u, "enum value M_Camera::PolarityHotColor::Type::Red differs from the data model");
static_assert(std::is_same<::M_Camera::PolarityHotColorOptionalType, std::vector<::M_Camera::PolarityHotColor::Type>>::value, "typedef M_Camera::PolarityHotColorOptionalType differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::SupportedPolarityHotColorType::IsWhiteSupported), bool>::value, "M_Camera::SupportedPolarityHotColorType field IsWhiteSupported differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::SupportedPolarityHotColorType::IsBlackSupported), bool>::value, "M_Camera::SupportedPolarityHotColorType field IsBlackSupported differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::SupportedPolarityHotColorType::IsRedSupported), bool>::value, "M_Camera::SupportedPolarityHotColorType field IsRedSupported differs from the data model");
static_assert(static_cast<uint32_t>(::M_Camera::AutoFocusKind::Stop) == 0u, "enum value M_Camera::AutoFocusKind::Type::Stop differs from the data model");
static_assert(static_cast<uint32_t>(::M_Camera::AutoFocusKind::Start) == 1u, "enum value M_Camera::AutoFocusKind::Type::Start differs from the data model");
static_assert(static_cast<uint32_t>(::M_Camera::AutoFocusKind::Hold) == 2u, "enum value M_Camera::AutoFocusKind::Type::Hold differs from the data model");
static_assert(static_cast<uint32_t>(::M_Camera::AutoFocusKind::Infinity) == 3u, "enum value M_Camera::AutoFocusKind::Type::Infinity differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::ZoomStateType::Level), double>::value, "M_Camera::ZoomStateType field Level differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::ZoomStateType::Fov), ::M_Common::DegreeRegionType>::value, "M_Camera::ZoomStateType field Fov differs from the data model");
static_assert(std::is_same<::M_Camera::ZoomStateListType, std::vector<::M_Camera::ZoomStateType>>::value, "typedef M_Camera::ZoomStateListType differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::RenderSettingsType::renderWidth), int32_t>::value, "M_Camera::RenderSettingsType field renderWidth differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::RenderSettingsType::renderHeight), int32_t>::value, "M_Camera::RenderSettingsType field renderHeight differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::RenderSettingsType::renderPosX), int32_t>::value, "M_Camera::RenderSettingsType field renderPosX differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::RenderSettingsType::renderPosY), int32_t>::value, "M_Camera::RenderSettingsType field renderPosY differs from the data model");
static_assert(std::is_same<::M_Camera::RenderSettingsOptionalType, std::vector<::M_Camera::RenderSettingsType>>::value, "typedef M_Camera::RenderSettingsOptionalType differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraSettingsType::ZoomStateList), std::vector<::M_Camera::ZoomStateType>>::value, "M_Camera::CameraSettingsType field ZoomStateList differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraSettingsType::FocusStepSize), double>::value, "M_Camera::CameraSettingsType field FocusStepSize differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraSettingsType::BrightnessStepSize), double>::value, "M_Camera::CameraSettingsType field BrightnessStepSize differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraSettingsType::ContrastStepSize), double>::value, "M_Camera::CameraSettingsType field ContrastStepSize differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraSettingsType::GainStepSize), double>::value, "M_Camera::CameraSettingsType field GainStepSize differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraSettingsType::AlphaBlendingStepSize), double>::value, "M_Camera::CameraSettingsType field AlphaBlendingStepSize differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraSettingsType::AvailableApertures), std::vector<double>>::value, "M_Camera::CameraSettingsType field AvailableApertures differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraSettingsType::IsAutoFocusSupported), bool>::value, "M_Camera::CameraSettingsType field IsAutoFocusSupported differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraSettingsType::IsFocusSupported), bool>::value, "M_Camera::CameraSettingsType field IsFocusSupported differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraSettingsType::IsFocusEngineSupported), bool>::value, "M_Camera::CameraSettingsType field IsFocusEngineSupported differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraSettingsType::IsDigitalZoomSupported), bool>::value, "M_Camera::CameraSettingsType field IsDigitalZoomSupported differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraSettingsType::IsZoomSupported), bool>::value, "M_Camera::CameraSettingsType field IsZoomSupported differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraSettingsType::IsZoomEngineSupported), bool>::value, "M_Camera::CameraSettingsType field IsZoomEngineSupported differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraSettingsType::IsAutoBrightnessSupported), bool>::value, "M_Camera::CameraSettingsType field IsAutoBrightnessSupported differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraSettingsType::IsBrightnessSupported), bool>::value, "M_Camera::CameraSettingsType field IsBrightnessSupported differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraSettingsType::IsAutoContrastSupported), bool>::value, "M_Camera::CameraSettingsType field IsAutoContrastSupported differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraSettingsType::IsContrastSupported), bool>::value, "M_Camera::CameraSettingsType field IsContrastSupported differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraSettingsType::IsPolaritySupported), bool>::value, "M_Camera::CameraSettingsType field IsPolaritySupported differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraSettingsType::SupportedHotColors), ::M_Camera::SupportedPolarityHotColorType>::value, "M_Camera::CameraSettingsType field SupportedHotColors differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraSettingsType::IsEconomyModeSupported), bool>::value, "M_Camera::CameraSettingsType field IsEconomyModeSupported differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraSettingsType::IsCoolerSupported), bool>::value, "M_Camera::CameraSettingsType field IsCoolerSupported differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraSettingsType::IsAutoGainSupported), bool>::value, "M_Camera::CameraSettingsType field IsAutoGainSupported differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraSettingsType::IsGainSupported), bool>::value, "M_Camera::CameraSettingsType field IsGainSupported differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraSettingsType::IsExposureSupported), bool>::value, "M_Camera::CameraSettingsType field IsExposureSupported differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraSettingsType::IsAutoExposureSupported), bool>::value, "M_Camera::CameraSettingsType field IsAutoExposureSupported differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraSettingsType::IsSetApertureSupported), bool>::value, "M_Camera::CameraSettingsType field IsSetApertureSupported differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraSettingsType::IsExternalTriggerModeSupported), bool>::value, "M_Camera::CameraSettingsType field IsExternalTriggerModeSupported differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraSettingsType::IsGrabbingSupported), bool>::value, "M_Camera::CameraSettingsType field IsGrabbingSupported differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraSettingsType::IsRegionOfInterestSupported), bool>::value, "M_Camera::CameraSettingsType field IsRegionOfInterestSupported differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraSettingsType::IsCalibrateNucSupported), bool>::value, "M_Camera::CameraSettingsType field IsCalibrateNucSupported differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraSettingsType::IsAbortCalibrateNucSupported), bool>::value, "M_Camera::CameraSettingsType field IsAbortCalibrateNucSupported differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraSettingsType::IsFalseColorSupported), bool>::value, "M_Camera::CameraSettingsType field IsFalseColorSupported differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraSettingsType::SupportedFalseColorAlgorithms), std::vector<std::string>>::value, "M_Camera::CameraSettingsType field SupportedFalseColorAlgorithms differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraSettingsType::IsOperationModeSupported), bool>::value, "M_Camera::CameraSettingsType field IsOperationModeSupported differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraSettingsType::IsAlphaBlendingSupported), bool>::value, "M_Camera::CameraSettingsType field IsAlphaBlendingSupported differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraSettingsType::IsInfraredDynamicModeSupported), bool>::value, "M_Camera::CameraSettingsType field IsInfraredDynamicModeSupported differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraSettingsType::IsFreezeImageSupported), bool>::value, "M_Camera::CameraSettingsType field IsFreezeImageSupported differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraSettingsType::IsHdrSupported), bool>::value, "M_Camera::CameraSettingsType field IsHdrSupported differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraSettingsType::SupportedCameraPresets), std::vector<std::string>>::value, "M_Camera::CameraSettingsType field SupportedCameraPresets differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraSettingsType::RenderSettings), std::vector<::M_Camera::RenderSettingsType>>::value, "M_Camera::CameraSettingsType field RenderSettings differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraSettingsType::Position), std::vector<::M_Common::PositionType>>::value, "M_Camera::CameraSettingsType field Position differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraSettingsType::Rotation), std::vector<::M_Common::EulerAttitudeType>>::value, "M_Camera::CameraSettingsType field Rotation differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraSettingsType::AdditionalInfo), std::vector<::M_Common::PropertyType>>::value, "M_Camera::CameraSettingsType field AdditionalInfo differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraStatusType::OperationStatus), ::M_Common::OperationStatusType>::value, "M_Camera::CameraStatusType field OperationStatus differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraStatusType::IsAutoFocusEnabled), std::vector<::M_Common::GeneralStatus::Type>>::value, "M_Camera::CameraStatusType field IsAutoFocusEnabled differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraStatusType::IsAutoFocusChangeInProgress), bool>::value, "M_Camera::CameraStatusType field IsAutoFocusChangeInProgress differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraStatusType::FocusLevel), std::vector<double>>::value, "M_Camera::CameraStatusType field FocusLevel differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraStatusType::IsFocusLevelChangeInProgress), bool>::value, "M_Camera::CameraStatusType field IsFocusLevelChangeInProgress differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraStatusType::IsFocusEngineRunning), std::vector<::M_Common::GeneralStatus::Type>>::value, "M_Camera::CameraStatusType field IsFocusEngineRunning differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraStatusType::IsFocusEngineChangeInProgress), bool>::value, "M_Camera::CameraStatusType field IsFocusEngineChangeInProgress differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraStatusType::ZoomState), ::M_Camera::ZoomStateType>::value, "M_Camera::CameraStatusType field ZoomState differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraStatusType::IsDigitalZoomEnabled), std::vector<::M_Common::GeneralStatus::Type>>::value, "M_Camera::CameraStatusType field IsDigitalZoomEnabled differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraStatusType::IsDigitalZoomChangeInProgress), bool>::value, "M_Camera::CameraStatusType field IsDigitalZoomChangeInProgress differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraStatusType::IsZoomLevelChangeInProgress), bool>::value, "M_Camera::CameraStatusType field IsZoomLevelChangeInProgress differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraStatusType::PredefinedZoomFov), std::vector<uint16_t>>::value, "M_Camera::CameraStatusType field PredefinedZoomFov differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraStatusType::IsPredefinedZoomFovChangeInProgress), bool>::value, "M_Camera::CameraStatusType field IsPredefinedZoomFovChangeInProgress differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraStatusType::IsZoomFovRegionChangeInProgress), bool>::value, "M_Camera::CameraStatusType field IsZoomFovRegionChangeInProgress differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraStatusType::IsZoomEngineRunning), std::vector<::M_Common::GeneralStatus::Type>>::value, "M_Camera::CameraStatusType field IsZoomEngineRunning differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraStatusType::IsZoomEngineChangeInProgress), bool>::value, "M_Camera::CameraStatusType field IsZoomEngineChangeInProgress differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraStatusType::IsAutoBrightnessEnabled), std::vector<::M_Common::GeneralStatus::Type>>::value, "M_Camera::CameraStatusType field IsAutoBrightnessEnabled differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraStatusType::BrightnessLevel), std::vector<double>>::value, "M_Camera::CameraStatusType field BrightnessLevel differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraStatusType::IsAutoContrastEnabled), std::vector<::M_Common::GeneralStatus::Type>>::value, "M_Camera::CameraStatusType field IsAutoContrastEnabled differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraStatusType::ContrastLevel), std::vector<double>>::value, "M_Camera::CameraStatusType field ContrastLevel differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraStatusType::PolarityHotIs), std::vector<::M_Camera::PolarityHotColor::Type>>::value, "M_Camera::CameraStatusType field PolarityHotIs differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraStatusType::IsEconomyModeEnabled), std::vector<::M_Common::GeneralStatus::Type>>::value, "M_Camera::CameraStatusType field IsEconomyModeEnabled differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraStatusType::IsCoolerEnabled), std::vector<::M_Common::GeneralStatus::Type>>::value, "M_Camera::CameraStatusType field IsCoolerEnabled differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraStatusType::Temperature), std::vector<double>>::value, "M_Camera::CameraStatusType field Temperature differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraStatusType::IsCommunicationActive), bool>::value, "M_Camera::CameraStatusType field IsCommunicationActive differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraStatusType::IsAutoGainEnabled), std::vector<::M_Common::GeneralStatus::Type>>::value, "M_Camera::CameraStatusType field IsAutoGainEnabled differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraStatusType::GainLevel), std::vector<double>>::value, "M_Camera::CameraStatusType field GainLevel differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraStatusType::IsAutoExposureEnabled), std::vector<::M_Common::GeneralStatus::Type>>::value, "M_Camera::CameraStatusType field IsAutoExposureEnabled differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraStatusType::ShutterSpeedPerSec), std::vector<uint16_t>>::value, "M_Camera::CameraStatusType field ShutterSpeedPerSec differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraStatusType::Aperture), std::vector<double>>::value, "M_Camera::CameraStatusType field Aperture differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraStatusType::IsExternalTriggerModeEnabled), std::vector<::M_Common::GeneralStatus::Type>>::value, "M_Camera::CameraStatusType field IsExternalTriggerModeEnabled differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraStatusType::IsGrabbingRunning), std::vector<::M_Common::GeneralStatus::Type>>::value, "M_Camera::CameraStatusType field IsGrabbingRunning differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraStatusType::RegionOfInterest), std::vector<::M_Common::PixelRegionType>>::value, "M_Camera::CameraStatusType field RegionOfInterest differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraStatusType::CoolerOperatingHoursCountTotal), std::vector<uint64_t>>::value, "M_Camera::CameraStatusType field CoolerOperatingHoursCountTotal differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraStatusType::ElectronicOperatingHoursCountTotal), std::vector<uint64_t>>::value, "M_Camera::CameraStatusType field ElectronicOperatingHoursCountTotal differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraStatusType::SensorResolution), std::vector<::M_Common::PixelRectSizeType>>::value, "M_Camera::CameraStatusType field SensorResolution differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraStatusType::IsFalseColorEnabled), std::vector<::M_Common::GeneralStatus::Type>>::value, "M_Camera::CameraStatusType field IsFalseColorEnabled differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraStatusType::IsInfraredDynamicModeEnabled), std::vector<::M_Common::GeneralStatus::Type>>::value, "M_Camera::CameraStatusType field IsInfraredDynamicModeEnabled differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraStatusType::HdrMode), int32_t>::value, "M_Camera::CameraStatusType field HdrMode differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraStatusType::FalseColorAlgorithmName), std::string>::value, "M_Camera::CameraStatusType field FalseColorAlgorithmName differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::CameraStatusType::Preset), std::string>::value, "M_Camera::CameraStatusType field Preset differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::SafetyCodeType::StartBuffer), std::vector<uint16_t>>::value, "M_Camera::SafetyCodeType field StartBuffer differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::SafetyCodeType::SourceId), std::vector<uint8_t>>::value, "M_Camera::SafetyCodeType field SourceId differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::SafetyCodeType::TimeStamp), std::vector<uint16_t>>::value, "M_Camera::SafetyCodeType field TimeStamp differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::SafetyCodeType::Checksum), std::vector<uint16_t>>::value, "M_Camera::SafetyCodeType field Checksum differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::SafetyCodeType::DisplayMask), std::vector<uint8_t>>::value, "M_Camera::SafetyCodeType field DisplayMask differs from the data model");
static_assert(std::is_same<decltype(::M_Camera::SafetyCodeType::RegionOfInterest), std::vector<::M_Common::PixelRegionType>>::value, "M_Camera::SafetyCodeType field RegionOfInterest differs from the data model");
static_assert(std::is_same<::M_Camera::SafetyCodeListType, std::vector<::M_Camera::SafetyCodeType>>::value, "typedef M_Camera::SafetyCodeListType differs from the data model");

namespace M_Camera {
    void obapi_put(::obapi::Writer& w, SupportedPolarityHotColorType const& v) {
        ::obapi::put(w, v.IsWhiteSupported);
        ::obapi::put(w, v.IsBlackSupported);
        ::obapi::put(w, v.IsRedSupported);
    }
    void obapi_get(::obapi::Reader& r, SupportedPolarityHotColorType& v) {
        ::obapi::get(r, v.IsWhiteSupported);
        ::obapi::get(r, v.IsBlackSupported);
        ::obapi::get(r, v.IsRedSupported);
    }
    void obapi_put(::obapi::Writer& w, ZoomStateType const& v) {
        ::obapi::put(w, v.Level);
        ::obapi::put(w, v.Fov);
    }
    void obapi_get(::obapi::Reader& r, ZoomStateType& v) {
        ::obapi::get(r, v.Level);
        ::obapi::get(r, v.Fov);
    }
    void obapi_put(::obapi::Writer& w, RenderSettingsType const& v) {
        ::obapi::put(w, v.renderWidth);
        ::obapi::put(w, v.renderHeight);
        ::obapi::put(w, v.renderPosX);
        ::obapi::put(w, v.renderPosY);
    }
    void obapi_get(::obapi::Reader& r, RenderSettingsType& v) {
        ::obapi::get(r, v.renderWidth);
        ::obapi::get(r, v.renderHeight);
        ::obapi::get(r, v.renderPosX);
        ::obapi::get(r, v.renderPosY);
    }
    void obapi_put(::obapi::Writer& w, CameraSettingsType const& v) {
        ::obapi::put(w, v.ZoomStateList);
        ::obapi::put(w, v.FocusStepSize);
        ::obapi::put(w, v.BrightnessStepSize);
        ::obapi::put(w, v.ContrastStepSize);
        ::obapi::put(w, v.GainStepSize);
        ::obapi::put(w, v.AlphaBlendingStepSize);
        ::obapi::put(w, v.AvailableApertures);
        ::obapi::put(w, v.IsAutoFocusSupported);
        ::obapi::put(w, v.IsFocusSupported);
        ::obapi::put(w, v.IsFocusEngineSupported);
        ::obapi::put(w, v.IsDigitalZoomSupported);
        ::obapi::put(w, v.IsZoomSupported);
        ::obapi::put(w, v.IsZoomEngineSupported);
        ::obapi::put(w, v.IsAutoBrightnessSupported);
        ::obapi::put(w, v.IsBrightnessSupported);
        ::obapi::put(w, v.IsAutoContrastSupported);
        ::obapi::put(w, v.IsContrastSupported);
        ::obapi::put(w, v.IsPolaritySupported);
        ::obapi::put(w, v.SupportedHotColors);
        ::obapi::put(w, v.IsEconomyModeSupported);
        ::obapi::put(w, v.IsCoolerSupported);
        ::obapi::put(w, v.IsAutoGainSupported);
        ::obapi::put(w, v.IsGainSupported);
        ::obapi::put(w, v.IsExposureSupported);
        ::obapi::put(w, v.IsAutoExposureSupported);
        ::obapi::put(w, v.IsSetApertureSupported);
        ::obapi::put(w, v.IsExternalTriggerModeSupported);
        ::obapi::put(w, v.IsGrabbingSupported);
        ::obapi::put(w, v.IsRegionOfInterestSupported);
        ::obapi::put(w, v.IsCalibrateNucSupported);
        ::obapi::put(w, v.IsAbortCalibrateNucSupported);
        ::obapi::put(w, v.IsFalseColorSupported);
        ::obapi::put(w, v.SupportedFalseColorAlgorithms);
        ::obapi::put(w, v.IsOperationModeSupported);
        ::obapi::put(w, v.IsAlphaBlendingSupported);
        ::obapi::put(w, v.IsInfraredDynamicModeSupported);
        ::obapi::put(w, v.IsFreezeImageSupported);
        ::obapi::put(w, v.IsHdrSupported);
        ::obapi::put(w, v.SupportedCameraPresets);
        ::obapi::put(w, v.RenderSettings);
        ::obapi::put(w, v.Position);
        ::obapi::put(w, v.Rotation);
        ::obapi::put(w, v.AdditionalInfo);
    }
    void obapi_get(::obapi::Reader& r, CameraSettingsType& v) {
        ::obapi::get(r, v.ZoomStateList);
        ::obapi::get(r, v.FocusStepSize);
        ::obapi::get(r, v.BrightnessStepSize);
        ::obapi::get(r, v.ContrastStepSize);
        ::obapi::get(r, v.GainStepSize);
        ::obapi::get(r, v.AlphaBlendingStepSize);
        ::obapi::get(r, v.AvailableApertures);
        ::obapi::get(r, v.IsAutoFocusSupported);
        ::obapi::get(r, v.IsFocusSupported);
        ::obapi::get(r, v.IsFocusEngineSupported);
        ::obapi::get(r, v.IsDigitalZoomSupported);
        ::obapi::get(r, v.IsZoomSupported);
        ::obapi::get(r, v.IsZoomEngineSupported);
        ::obapi::get(r, v.IsAutoBrightnessSupported);
        ::obapi::get(r, v.IsBrightnessSupported);
        ::obapi::get(r, v.IsAutoContrastSupported);
        ::obapi::get(r, v.IsContrastSupported);
        ::obapi::get(r, v.IsPolaritySupported);
        ::obapi::get(r, v.SupportedHotColors);
        ::obapi::get(r, v.IsEconomyModeSupported);
        ::obapi::get(r, v.IsCoolerSupported);
        ::obapi::get(r, v.IsAutoGainSupported);
        ::obapi::get(r, v.IsGainSupported);
        ::obapi::get(r, v.IsExposureSupported);
        ::obapi::get(r, v.IsAutoExposureSupported);
        ::obapi::get(r, v.IsSetApertureSupported);
        ::obapi::get(r, v.IsExternalTriggerModeSupported);
        ::obapi::get(r, v.IsGrabbingSupported);
        ::obapi::get(r, v.IsRegionOfInterestSupported);
        ::obapi::get(r, v.IsCalibrateNucSupported);
        ::obapi::get(r, v.IsAbortCalibrateNucSupported);
        ::obapi::get(r, v.IsFalseColorSupported);
        ::obapi::get(r, v.SupportedFalseColorAlgorithms);
        ::obapi::get(r, v.IsOperationModeSupported);
        ::obapi::get(r, v.IsAlphaBlendingSupported);
        ::obapi::get(r, v.IsInfraredDynamicModeSupported);
        ::obapi::get(r, v.IsFreezeImageSupported);
        ::obapi::get(r, v.IsHdrSupported);
        ::obapi::get(r, v.SupportedCameraPresets);
        ::obapi::get(r, v.RenderSettings);
        ::obapi::get(r, v.Position);
        ::obapi::get(r, v.Rotation);
        ::obapi::get(r, v.AdditionalInfo);
    }
    void obapi_put(::obapi::Writer& w, CameraStatusType const& v) {
        ::obapi::put(w, v.OperationStatus);
        ::obapi::put(w, v.IsAutoFocusEnabled);
        ::obapi::put(w, v.IsAutoFocusChangeInProgress);
        ::obapi::put(w, v.FocusLevel);
        ::obapi::put(w, v.IsFocusLevelChangeInProgress);
        ::obapi::put(w, v.IsFocusEngineRunning);
        ::obapi::put(w, v.IsFocusEngineChangeInProgress);
        ::obapi::put(w, v.ZoomState);
        ::obapi::put(w, v.IsDigitalZoomEnabled);
        ::obapi::put(w, v.IsDigitalZoomChangeInProgress);
        ::obapi::put(w, v.IsZoomLevelChangeInProgress);
        ::obapi::put(w, v.PredefinedZoomFov);
        ::obapi::put(w, v.IsPredefinedZoomFovChangeInProgress);
        ::obapi::put(w, v.IsZoomFovRegionChangeInProgress);
        ::obapi::put(w, v.IsZoomEngineRunning);
        ::obapi::put(w, v.IsZoomEngineChangeInProgress);
        ::obapi::put(w, v.IsAutoBrightnessEnabled);
        ::obapi::put(w, v.BrightnessLevel);
        ::obapi::put(w, v.IsAutoContrastEnabled);
        ::obapi::put(w, v.ContrastLevel);
        ::obapi::put(w, v.PolarityHotIs);
        ::obapi::put(w, v.IsEconomyModeEnabled);
        ::obapi::put(w, v.IsCoolerEnabled);
        ::obapi::put(w, v.Temperature);
        ::obapi::put(w, v.IsCommunicationActive);
        ::obapi::put(w, v.IsAutoGainEnabled);
        ::obapi::put(w, v.GainLevel);
        ::obapi::put(w, v.IsAutoExposureEnabled);
        ::obapi::put(w, v.ShutterSpeedPerSec);
        ::obapi::put(w, v.Aperture);
        ::obapi::put(w, v.IsExternalTriggerModeEnabled);
        ::obapi::put(w, v.IsGrabbingRunning);
        ::obapi::put(w, v.RegionOfInterest);
        ::obapi::put(w, v.CoolerOperatingHoursCountTotal);
        ::obapi::put(w, v.ElectronicOperatingHoursCountTotal);
        ::obapi::put(w, v.SensorResolution);
        ::obapi::put(w, v.IsFalseColorEnabled);
        ::obapi::put(w, v.IsInfraredDynamicModeEnabled);
        ::obapi::put(w, v.HdrMode);
        ::obapi::put(w, v.FalseColorAlgorithmName);
        ::obapi::put(w, v.Preset);
    }
    void obapi_get(::obapi::Reader& r, CameraStatusType& v) {
        ::obapi::get(r, v.OperationStatus);
        ::obapi::get(r, v.IsAutoFocusEnabled);
        ::obapi::get(r, v.IsAutoFocusChangeInProgress);
        ::obapi::get(r, v.FocusLevel);
        ::obapi::get(r, v.IsFocusLevelChangeInProgress);
        ::obapi::get(r, v.IsFocusEngineRunning);
        ::obapi::get(r, v.IsFocusEngineChangeInProgress);
        ::obapi::get(r, v.ZoomState);
        ::obapi::get(r, v.IsDigitalZoomEnabled);
        ::obapi::get(r, v.IsDigitalZoomChangeInProgress);
        ::obapi::get(r, v.IsZoomLevelChangeInProgress);
        ::obapi::get(r, v.PredefinedZoomFov);
        ::obapi::get(r, v.IsPredefinedZoomFovChangeInProgress);
        ::obapi::get(r, v.IsZoomFovRegionChangeInProgress);
        ::obapi::get(r, v.IsZoomEngineRunning);
        ::obapi::get(r, v.IsZoomEngineChangeInProgress);
        ::obapi::get(r, v.IsAutoBrightnessEnabled);
        ::obapi::get(r, v.BrightnessLevel);
        ::obapi::get(r, v.IsAutoContrastEnabled);
        ::obapi::get(r, v.ContrastLevel);
        ::obapi::get(r, v.PolarityHotIs);
        ::obapi::get(r, v.IsEconomyModeEnabled);
        ::obapi::get(r, v.IsCoolerEnabled);
        ::obapi::get(r, v.Temperature);
        ::obapi::get(r, v.IsCommunicationActive);
        ::obapi::get(r, v.IsAutoGainEnabled);
        ::obapi::get(r, v.GainLevel);
        ::obapi::get(r, v.IsAutoExposureEnabled);
        ::obapi::get(r, v.ShutterSpeedPerSec);
        ::obapi::get(r, v.Aperture);
        ::obapi::get(r, v.IsExternalTriggerModeEnabled);
        ::obapi::get(r, v.IsGrabbingRunning);
        ::obapi::get(r, v.RegionOfInterest);
        ::obapi::get(r, v.CoolerOperatingHoursCountTotal);
        ::obapi::get(r, v.ElectronicOperatingHoursCountTotal);
        ::obapi::get(r, v.SensorResolution);
        ::obapi::get(r, v.IsFalseColorEnabled);
        ::obapi::get(r, v.IsInfraredDynamicModeEnabled);
        ::obapi::get(r, v.HdrMode);
        ::obapi::get(r, v.FalseColorAlgorithmName);
        ::obapi::get(r, v.Preset);
    }
    void obapi_put(::obapi::Writer& w, SafetyCodeType const& v) {
        ::obapi::put(w, v.StartBuffer);
        ::obapi::put(w, v.SourceId);
        ::obapi::put(w, v.TimeStamp);
        ::obapi::put(w, v.Checksum);
        ::obapi::put(w, v.DisplayMask);
        ::obapi::put(w, v.RegionOfInterest);
    }
    void obapi_get(::obapi::Reader& r, SafetyCodeType& v) {
        ::obapi::get(r, v.StartBuffer);
        ::obapi::get(r, v.SourceId);
        ::obapi::get(r, v.TimeStamp);
        ::obapi::get(r, v.Checksum);
        ::obapi::get(r, v.DisplayMask);
        ::obapi::get(r, v.RegionOfInterest);
    }
} // namespace M_Camera

namespace {
    struct ServiceCallbacks final : ::M_Camera::IService {
        ::obapi::Dispatcher dispatcher;
        void ConfigOperationMode(::M_Common::OperationModeType const& Mode) override {
            ::obapi::Writer w;
            ::obapi::put(w, Mode);
            dispatcher.dispatch(0u, w);
        }
        void ConfigAutoFocus(::M_Camera::AutoFocusKind::Type State) override {
            ::obapi::Writer w;
            ::obapi::put(w, State);
            dispatcher.dispatch(1u, w);
        }
        void ConfigFocusLevel(::M_Common::PercentType Level) override {
            ::obapi::Writer w;
            ::obapi::put(w, Level);
            dispatcher.dispatch(2u, w);
        }
        void CmdSetFocusByStep(int32_t Steps) override {
            ::obapi::Writer w;
            ::obapi::put(w, Steps);
            dispatcher.dispatch(3u, w);
        }
        void ConfigDigitalZoom(bool Enable) override {
            ::obapi::Writer w;
            ::obapi::put(w, Enable);
            dispatcher.dispatch(4u, w);
        }
        void ConfigZoomLevel(::M_Common::PercentType Level) override {
            ::obapi::Writer w;
            ::obapi::put(w, Level);
            dispatcher.dispatch(5u, w);
        }
        void CmdSetZoomByStep(int32_t Steps) override {
            ::obapi::Writer w;
            ::obapi::put(w, Steps);
            dispatcher.dispatch(6u, w);
        }
        void ConfigPredefinedZoomFov(uint16_t PredefinedLevel) override {
            ::obapi::Writer w;
            ::obapi::put(w, PredefinedLevel);
            dispatcher.dispatch(7u, w);
        }
        void CmdSetPredefinedZoomFovByStep(int32_t Steps) override {
            ::obapi::Writer w;
            ::obapi::put(w, Steps);
            dispatcher.dispatch(8u, w);
        }
        void ConfigAutoBrightness(bool Enable) override {
            ::obapi::Writer w;
            ::obapi::put(w, Enable);
            dispatcher.dispatch(9u, w);
        }
        void ConfigBrightnessLevel(::M_Common::PercentType Level) override {
            ::obapi::Writer w;
            ::obapi::put(w, Level);
            dispatcher.dispatch(10u, w);
        }
        void CmdSetBrightnessByStep(int32_t Steps) override {
            ::obapi::Writer w;
            ::obapi::put(w, Steps);
            dispatcher.dispatch(11u, w);
        }
        void ConfigAutoContrast(bool Enable) override {
            ::obapi::Writer w;
            ::obapi::put(w, Enable);
            dispatcher.dispatch(12u, w);
        }
        void ConfigContrastLevel(::M_Common::PercentType Level) override {
            ::obapi::Writer w;
            ::obapi::put(w, Level);
            dispatcher.dispatch(13u, w);
        }
        void CmdSetContrastByStep(int32_t Steps) override {
            ::obapi::Writer w;
            ::obapi::put(w, Steps);
            dispatcher.dispatch(14u, w);
        }
        void ConfigHdrMode(int32_t Mode) override {
            ::obapi::Writer w;
            ::obapi::put(w, Mode);
            dispatcher.dispatch(15u, w);
        }
        void ConfigPolarity(::M_Camera::PolarityHotColor::Type HotIs) override {
            ::obapi::Writer w;
            ::obapi::put(w, HotIs);
            dispatcher.dispatch(16u, w);
        }
        void ConfigEconomyMode(bool Enable) override {
            ::obapi::Writer w;
            ::obapi::put(w, Enable);
            dispatcher.dispatch(17u, w);
        }
        void ConfigCooler(bool Enable) override {
            ::obapi::Writer w;
            ::obapi::put(w, Enable);
            dispatcher.dispatch(18u, w);
        }
        void ConfigAutoGain(bool Enable) override {
            ::obapi::Writer w;
            ::obapi::put(w, Enable);
            dispatcher.dispatch(19u, w);
        }
        void ConfigGainLevel(::M_Common::PercentType Level) override {
            ::obapi::Writer w;
            ::obapi::put(w, Level);
            dispatcher.dispatch(20u, w);
        }
        void CmdSetGainByStep(int32_t Steps) override {
            ::obapi::Writer w;
            ::obapi::put(w, Steps);
            dispatcher.dispatch(21u, w);
        }
        void ConfigExposureTime(uint16_t ShutterSpeedPerSec) override {
            ::obapi::Writer w;
            ::obapi::put(w, ShutterSpeedPerSec);
            dispatcher.dispatch(22u, w);
        }
        void ConfigAutoExposure(bool Enable) override {
            ::obapi::Writer w;
            ::obapi::put(w, Enable);
            dispatcher.dispatch(23u, w);
        }
        void ConfigAperture(::M_Common::ProportionalType Aperture) override {
            ::obapi::Writer w;
            ::obapi::put(w, Aperture);
            dispatcher.dispatch(24u, w);
        }
        void CmdSetRegionOfInterest(::M_Common::PixelRegionType const& Rectangle) override {
            ::obapi::Writer w;
            ::obapi::put(w, Rectangle);
            dispatcher.dispatch(25u, w);
        }
        void CmdClearRegionOfInterest() override {
            ::obapi::Writer w;
            dispatcher.dispatch(26u, w);
        }
        void ConfigExternalTriggerMode(bool Enable) override {
            ::obapi::Writer w;
            ::obapi::put(w, Enable);
            dispatcher.dispatch(27u, w);
        }
        void ConfigGrabbing(bool Enable) override {
            ::obapi::Writer w;
            ::obapi::put(w, Enable);
            dispatcher.dispatch(28u, w);
        }
        void CmdCalibrateNuc(bool IsCalibrating) override {
            ::obapi::Writer w;
            ::obapi::put(w, IsCalibrating);
            dispatcher.dispatch(29u, w);
        }
        void ConfigAutoCalibrateNuc(bool IsActive) override {
            ::obapi::Writer w;
            ::obapi::put(w, IsActive);
            dispatcher.dispatch(30u, w);
        }
        void ConfigAlphaBlendingLevel(::M_Common::PercentType Level) override {
            ::obapi::Writer w;
            ::obapi::put(w, Level);
            dispatcher.dispatch(31u, w);
        }
        void CmdSetFalseColour(bool Enable, std::string const& Name) override {
            ::obapi::Writer w;
            ::obapi::put(w, Enable);
            ::obapi::put(w, Name);
            dispatcher.dispatch(32u, w);
        }
        void ConfigInfraredDynamicMode(bool Enable) override {
            ::obapi::Writer w;
            ::obapi::put(w, Enable);
            dispatcher.dispatch(33u, w);
        }
        void ConfigSelectCameraPreset(std::string const& Name) override {
            ::obapi::Writer w;
            ::obapi::put(w, Name);
            dispatcher.dispatch(34u, w);
        }
        void CmdStartFocusEngine(::M_Camera::ScaleDirection::Type Direction) override {
            ::obapi::Writer w;
            ::obapi::put(w, Direction);
            dispatcher.dispatch(35u, w);
        }
        void CmdStopFocusEngine() override {
            ::obapi::Writer w;
            dispatcher.dispatch(36u, w);
        }
        void CmdStartZoomEngine(::M_Camera::ScaleDirection::Type Direction) override {
            ::obapi::Writer w;
            ::obapi::put(w, Direction);
            dispatcher.dispatch(37u, w);
        }
        void CmdStopZoomEngine() override {
            ::obapi::Writer w;
            dispatcher.dispatch(38u, w);
        }
        void CmdFreezeImage() override {
            ::obapi::Writer w;
            dispatcher.dispatch(39u, w);
        }
    };

    struct ClientCallbacks final : ::M_Camera::IClient {
        ::obapi::Dispatcher dispatcher;
        void ReportCameraSettings(::M_Camera::CameraSettingsType const& Settings) override {
            ::obapi::Writer w;
            ::obapi::put(w, Settings);
            dispatcher.dispatch(0u, w);
        }
        void ReportCameraStatus(::M_Camera::CameraStatusType const& Status, bool IsRemoved) override {
            ::obapi::Writer w;
            ::obapi::put(w, Status);
            ::obapi::put(w, IsRemoved);
            dispatcher.dispatch(1u, w);
        }
        void EventSafetyCode(::M_Camera::SafetyCodeListType const& SafetyCodeList) override {
            ::obapi::Writer w;
            ::obapi::put(w, SafetyCodeList);
            dispatcher.dispatch(2u, w);
        }
    };

    void service_send(::obapi::Holder<::M_Camera::Service, ServiceCallbacks>& h, uint32_t op, ::obapi::Reader& r) {
        switch (op) {
            case 0u: {
                ::M_Camera::CameraSettingsType Settings{};
                ::obapi::get(r, Settings);
                r.finish();
                h.endpoint->ReportCameraSettings(Settings);
                return;
            }
            case 1u: {
                ::M_Camera::CameraStatusType Status{};
                ::obapi::get(r, Status);
                bool IsRemoved{};
                ::obapi::get(r, IsRemoved);
                r.finish();
                h.endpoint->ReportCameraStatus(Status, IsRemoved);
                return;
            }
            case 2u: {
                ::M_Camera::SafetyCodeListType SafetyCodeList{};
                ::obapi::get(r, SafetyCodeList);
                r.finish();
                h.endpoint->EventSafetyCode(SafetyCodeList);
                return;
            }
            default: throw ::obapi::UnknownOp(op);
        }
    }

    void client_send(::obapi::Holder<::M_Camera::Client, ClientCallbacks>& h, uint32_t op, ::obapi::Reader& r) {
        switch (op) {
            case 0u: {
                ::M_Common::OperationModeType Mode{};
                ::obapi::get(r, Mode);
                r.finish();
                h.endpoint->ConfigOperationMode(Mode);
                return;
            }
            case 1u: {
                ::M_Camera::AutoFocusKind::Type State{};
                ::obapi::get(r, State);
                r.finish();
                h.endpoint->ConfigAutoFocus(State);
                return;
            }
            case 2u: {
                ::M_Common::PercentType Level{};
                ::obapi::get(r, Level);
                r.finish();
                h.endpoint->ConfigFocusLevel(Level);
                return;
            }
            case 3u: {
                int32_t Steps{};
                ::obapi::get(r, Steps);
                r.finish();
                h.endpoint->CmdSetFocusByStep(Steps);
                return;
            }
            case 4u: {
                bool Enable{};
                ::obapi::get(r, Enable);
                r.finish();
                h.endpoint->ConfigDigitalZoom(Enable);
                return;
            }
            case 5u: {
                ::M_Common::PercentType Level{};
                ::obapi::get(r, Level);
                r.finish();
                h.endpoint->ConfigZoomLevel(Level);
                return;
            }
            case 6u: {
                int32_t Steps{};
                ::obapi::get(r, Steps);
                r.finish();
                h.endpoint->CmdSetZoomByStep(Steps);
                return;
            }
            case 7u: {
                uint16_t PredefinedLevel{};
                ::obapi::get(r, PredefinedLevel);
                r.finish();
                h.endpoint->ConfigPredefinedZoomFov(PredefinedLevel);
                return;
            }
            case 8u: {
                int32_t Steps{};
                ::obapi::get(r, Steps);
                r.finish();
                h.endpoint->CmdSetPredefinedZoomFovByStep(Steps);
                return;
            }
            case 9u: {
                bool Enable{};
                ::obapi::get(r, Enable);
                r.finish();
                h.endpoint->ConfigAutoBrightness(Enable);
                return;
            }
            case 10u: {
                ::M_Common::PercentType Level{};
                ::obapi::get(r, Level);
                r.finish();
                h.endpoint->ConfigBrightnessLevel(Level);
                return;
            }
            case 11u: {
                int32_t Steps{};
                ::obapi::get(r, Steps);
                r.finish();
                h.endpoint->CmdSetBrightnessByStep(Steps);
                return;
            }
            case 12u: {
                bool Enable{};
                ::obapi::get(r, Enable);
                r.finish();
                h.endpoint->ConfigAutoContrast(Enable);
                return;
            }
            case 13u: {
                ::M_Common::PercentType Level{};
                ::obapi::get(r, Level);
                r.finish();
                h.endpoint->ConfigContrastLevel(Level);
                return;
            }
            case 14u: {
                int32_t Steps{};
                ::obapi::get(r, Steps);
                r.finish();
                h.endpoint->CmdSetContrastByStep(Steps);
                return;
            }
            case 15u: {
                int32_t Mode{};
                ::obapi::get(r, Mode);
                r.finish();
                h.endpoint->ConfigHdrMode(Mode);
                return;
            }
            case 16u: {
                ::M_Camera::PolarityHotColor::Type HotIs{};
                ::obapi::get(r, HotIs);
                r.finish();
                h.endpoint->ConfigPolarity(HotIs);
                return;
            }
            case 17u: {
                bool Enable{};
                ::obapi::get(r, Enable);
                r.finish();
                h.endpoint->ConfigEconomyMode(Enable);
                return;
            }
            case 18u: {
                bool Enable{};
                ::obapi::get(r, Enable);
                r.finish();
                h.endpoint->ConfigCooler(Enable);
                return;
            }
            case 19u: {
                bool Enable{};
                ::obapi::get(r, Enable);
                r.finish();
                h.endpoint->ConfigAutoGain(Enable);
                return;
            }
            case 20u: {
                ::M_Common::PercentType Level{};
                ::obapi::get(r, Level);
                r.finish();
                h.endpoint->ConfigGainLevel(Level);
                return;
            }
            case 21u: {
                int32_t Steps{};
                ::obapi::get(r, Steps);
                r.finish();
                h.endpoint->CmdSetGainByStep(Steps);
                return;
            }
            case 22u: {
                uint16_t ShutterSpeedPerSec{};
                ::obapi::get(r, ShutterSpeedPerSec);
                r.finish();
                h.endpoint->ConfigExposureTime(ShutterSpeedPerSec);
                return;
            }
            case 23u: {
                bool Enable{};
                ::obapi::get(r, Enable);
                r.finish();
                h.endpoint->ConfigAutoExposure(Enable);
                return;
            }
            case 24u: {
                ::M_Common::ProportionalType Aperture{};
                ::obapi::get(r, Aperture);
                r.finish();
                h.endpoint->ConfigAperture(Aperture);
                return;
            }
            case 25u: {
                ::M_Common::PixelRegionType Rectangle{};
                ::obapi::get(r, Rectangle);
                r.finish();
                h.endpoint->CmdSetRegionOfInterest(Rectangle);
                return;
            }
            case 26u: {
                r.finish();
                h.endpoint->CmdClearRegionOfInterest();
                return;
            }
            case 27u: {
                bool Enable{};
                ::obapi::get(r, Enable);
                r.finish();
                h.endpoint->ConfigExternalTriggerMode(Enable);
                return;
            }
            case 28u: {
                bool Enable{};
                ::obapi::get(r, Enable);
                r.finish();
                h.endpoint->ConfigGrabbing(Enable);
                return;
            }
            case 29u: {
                bool IsCalibrating{};
                ::obapi::get(r, IsCalibrating);
                r.finish();
                h.endpoint->CmdCalibrateNuc(IsCalibrating);
                return;
            }
            case 30u: {
                bool IsActive{};
                ::obapi::get(r, IsActive);
                r.finish();
                h.endpoint->ConfigAutoCalibrateNuc(IsActive);
                return;
            }
            case 31u: {
                ::M_Common::PercentType Level{};
                ::obapi::get(r, Level);
                r.finish();
                h.endpoint->ConfigAlphaBlendingLevel(Level);
                return;
            }
            case 32u: {
                bool Enable{};
                ::obapi::get(r, Enable);
                std::string Name{};
                ::obapi::get(r, Name);
                r.finish();
                h.endpoint->CmdSetFalseColour(Enable, Name);
                return;
            }
            case 33u: {
                bool Enable{};
                ::obapi::get(r, Enable);
                r.finish();
                h.endpoint->ConfigInfraredDynamicMode(Enable);
                return;
            }
            case 34u: {
                std::string Name{};
                ::obapi::get(r, Name);
                r.finish();
                h.endpoint->ConfigSelectCameraPreset(Name);
                return;
            }
            case 35u: {
                ::M_Camera::ScaleDirection::Type Direction{};
                ::obapi::get(r, Direction);
                r.finish();
                h.endpoint->CmdStartFocusEngine(Direction);
                return;
            }
            case 36u: {
                r.finish();
                h.endpoint->CmdStopFocusEngine();
                return;
            }
            case 37u: {
                ::M_Camera::ScaleDirection::Type Direction{};
                ::obapi::get(r, Direction);
                r.finish();
                h.endpoint->CmdStartZoomEngine(Direction);
                return;
            }
            case 38u: {
                r.finish();
                h.endpoint->CmdStopZoomEngine();
                return;
            }
            case 39u: {
                r.finish();
                h.endpoint->CmdFreezeImage();
                return;
            }
            default: throw ::obapi::UnknownOp(op);
        }
    }

} // namespace

extern "C" const obapi_vtable obapi_Camera_service_vtable = ::obapi::Endpoint<::M_Camera::Service, ServiceCallbacks, &service_send, false>::vtable("M_Camera", "Service");
extern "C" const obapi_vtable obapi_Camera_client_vtable = ::obapi::Endpoint<::M_Camera::Client, ClientCallbacks, &client_send, true>::vtable("M_Camera", "Client");