forked from intrepidcs/python_ics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
icsnVC40_processed.h
4225 lines (4224 loc) · 97.7 KB
/
icsnVC40_processed.h
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
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#pragma pack(push, 8)
#pragma warning(push)
#pragma warning(disable : 4514 4820)
typedef unsigned __int64 uintptr_t;
typedef char* va_list;
void __cdecl __va_start(va_list*, ...);
#pragma warning(pop)
#pragma pack(pop)
#pragma warning(push)
#pragma warning(disable : 4514 4820)
#pragma pack(push, 8)
typedef unsigned __int64 size_t;
typedef __int64 ptrdiff_t;
typedef __int64 intptr_t;
typedef _Bool __vcrt_bool;
typedef unsigned short wchar_t;
void __cdecl __security_init_cookie(void);
void __cdecl __security_check_cookie(uintptr_t _StackCookie);
__declspec(noreturn) void __cdecl __report_gsfailure(uintptr_t _StackCookie);
extern uintptr_t __security_cookie;
#pragma pack(pop)
#pragma warning(pop)
#pragma warning(push)
#pragma warning(disable : 4514 4820)
typedef signed char int8_t;
typedef short int16_t;
typedef int int32_t;
typedef long long int64_t;
typedef unsigned char uint8_t;
typedef unsigned short uint16_t;
typedef unsigned int uint32_t;
typedef unsigned long long uint64_t;
typedef signed char int_least8_t;
typedef short int_least16_t;
typedef int int_least32_t;
typedef long long int_least64_t;
typedef unsigned char uint_least8_t;
typedef unsigned short uint_least16_t;
typedef unsigned int uint_least32_t;
typedef unsigned long long uint_least64_t;
typedef signed char int_fast8_t;
typedef int int_fast16_t;
typedef int int_fast32_t;
typedef long long int_fast64_t;
typedef unsigned char uint_fast8_t;
typedef unsigned int uint_fast16_t;
typedef unsigned int uint_fast32_t;
typedef unsigned long long uint_fast64_t;
typedef long long intmax_t;
typedef unsigned long long uintmax_t;
#pragma warning(pop)
#pragma warning(disable : 4200)
typedef enum
{
eSupportedWILVersions_WIL_1_1_0 = 1,
eSupportedWILVersions_WIL_2_0_0,
} eSupportedWILVersions;
typedef enum SwitchwBMSVersionError
{
SwitchwBMSVersion_Failed = 0,
SwitchwBMSVersion_OK,
SwitchwBMSVersion_Reflashed,
SwitchwBMSVersion_ParameterNotValid,
} SwitchwBMSVersionError;
typedef struct SExtendedDataFlashHeader
{
uint16_t version;
uint16_t chksum;
uint32_t len;
} ExtendedDataFlashHeader_t;
typedef struct
{
uint32_t DeviceType;
int32_t Handle;
int32_t NumberOfClients;
int32_t SerialNumber;
int32_t MaxAllowedClients;
} NeoDevice;
typedef struct _NeoDeviceEx
{
NeoDevice neoDevice;
uint32_t FirmwareMajor;
uint32_t FirmwareMinor;
uint32_t Status;
uint32_t Options;
void* pAvailWIFINetwork;
void* pWIFIInterfaceInfo;
int isEthernetDevice;
uint8_t MACAddress[6];
uint16_t hardwareRev;
uint16_t revReserved;
uint32_t tcpIpAddress[4];
uint16_t tcpPort;
uint16_t Reserved0;
uint32_t Reserved1;
} NeoDeviceEx;
typedef union tagOptionsOpenNeoEx
{
struct
{
int32_t iNetworkID;
} CANOptions;
uint32_t Reserved[16];
} OptionsOpenNeoEx, *POptionsOpenNeoEx;
typedef union tagOptionsFindNeoEx
{
struct
{
int32_t iNetworkID;
} CANOptions;
uint32_t Reserved[16];
} OptionsFindNeoEx, *POptionsFindNeoEx;
typedef struct tagicsneoVICommand
{
uint8_t CommandType;
uint8_t CommandByteLength;
uint8_t Data[14];
} icsneoVICommand;
#pragma pack(push, 1)
typedef struct _stAPIFirmwareInfo
{
int32_t iType;
int32_t iMainFirmDateDay;
int32_t iMainFirmDateMonth;
int32_t iMainFirmDateYear;
int32_t iMainFirmDateHour;
int32_t iMainFirmDateMin;
int32_t iMainFirmDateSecond;
int32_t iMainFirmChkSum;
uint8_t iAppMajor;
uint8_t iAppMinor;
uint8_t iManufactureDay;
uint8_t iManufactureMonth;
uint16_t iManufactureYear;
uint8_t iBoardRevMajor;
uint8_t iBoardRevMinor;
uint8_t iBootLoaderVersionMajor;
uint8_t iBootLoaderVersionMinor;
uint8_t iMainVnetHWrevMajor;
uint8_t iMainVnetHWrevMinor;
uint8_t iMainVnetSRAMSize;
uint8_t iPhySiliconRev;
} stAPIFirmwareInfo;
#pragma pack(pop)
#pragma pack(push, 2)
enum
{
AUTO,
USE_TQ
};
enum
{
BPS20,
BPS33,
BPS50,
BPS62,
BPS83,
BPS100,
BPS125,
BPS250,
BPS500,
BPS800,
BPS1000,
BPS666,
BPS2000,
BPS4000,
CAN_BPS5000,
CAN_BPS6667,
CAN_BPS8000,
CAN_BPS10000,
};
enum
{
NORMAL = 0,
DISABLE = 1,
LOOPBACK = 2,
LISTEN_ONLY = 3,
LISTEN_ALL = 7
};
typedef struct
{
uint8_t Mode;
uint8_t SetBaudrate;
uint8_t Baudrate;
uint8_t transceiver_mode;
uint8_t TqSeg1;
uint8_t TqSeg2;
uint8_t TqProp;
uint8_t TqSync;
uint16_t BRP;
uint8_t auto_baud;
uint8_t innerFrameDelay25us;
} CAN_SETTINGS;
enum
{
NO_CANFD,
CANFD_ENABLED,
CANFD_BRS_ENABLED,
CANFD_ENABLED_ISO,
CANFD_BRS_ENABLED_ISO
};
typedef struct _CANFD_SETTINGS
{
uint8_t FDMode;
uint8_t FDBaudrate;
uint8_t FDTqSeg1;
uint8_t FDTqSeg2;
uint8_t FDTqProp;
uint8_t FDTqSync;
uint16_t FDBRP;
uint8_t FDTDC;
uint8_t reserved;
} CANFD_SETTINGS;
enum
{
SWCAN_AUTOSWITCH_DISABLED,
SWCAN_AUTOSWITCH_NO_RESISTOR,
SWCAN_AUTOSWITCH_WITH_RESISTOR,
SWCAN_AUTOSWITCH_DISABLED_RESISTOR_ENABLED
};
typedef struct
{
uint8_t Mode;
uint8_t SetBaudrate;
uint8_t Baudrate;
uint8_t transceiver_mode;
uint8_t TqSeg1;
uint8_t TqSeg2;
uint8_t TqProp;
uint8_t TqSync;
uint16_t BRP;
uint16_t high_speed_auto_switch;
uint8_t auto_baud;
uint8_t RESERVED;
} SWCAN_SETTINGS;
enum
{
BPS5000,
BPS10400,
BPS33333,
BPS50000,
BPS62500,
BPS71429,
BPS83333,
BPS100000,
BPS117647
};
enum
{
RESISTOR_ON,
RESISTOR_OFF
};
enum
{
SLEEP_MODE,
SLOW_MODE,
NORMAL_MODE,
FAST_MODE
};
typedef struct _LIN_SETTINGS
{
uint32_t Baudrate;
uint16_t spbrg;
uint8_t brgh;
uint8_t numBitsDelay;
uint8_t MasterResistor;
uint8_t Mode;
} LIN_SETTINGS;
typedef struct
{
uint16_t time_500us;
uint16_t k;
uint16_t l;
} ISO9141_KEYWORD2000__INIT_STEP;
typedef struct
{
uint32_t Baudrate;
uint16_t spbrg;
uint16_t brgh;
ISO9141_KEYWORD2000__INIT_STEP init_steps[16];
uint8_t init_step_count;
uint16_t p2_500us;
uint16_t p3_500us;
uint16_t p4_500us;
uint16_t chksum_enabled;
} ISO9141_KEYWORD2000_SETTINGS;
typedef struct _UART_SETTINGS
{
uint16_t Baudrate;
uint16_t spbrg;
uint16_t brgh;
uint16_t parity;
uint16_t stop_bits;
uint8_t flow_control;
uint8_t reserved_1;
union
{
uint32_t bOptions;
struct
{
unsigned invert_tx : 1;
unsigned invert_rx : 1;
unsigned half_duplex : 1;
unsigned reserved_bits : 13;
unsigned reserved_bits2 : 16;
};
};
} UART_SETTINGS;
typedef struct
{
uint16_t enable_convert_mode;
} J1708_SETTINGS;
typedef struct _SRedSettings
{
CAN_SETTINGS can1;
CAN_SETTINGS can2;
LIN_SETTINGS lin1;
LIN_SETTINGS lin2;
} SRedSettings;
typedef struct _STextAPISettings
{
uint32_t can1_tx_id;
uint32_t can1_rx_id;
union
{
struct
{
unsigned bExtended : 1;
unsigned : 31;
};
uint32_t DWord;
} can1_options;
uint32_t can2_tx_id;
uint32_t can2_rx_id;
union
{
struct
{
unsigned bExtended : 1;
unsigned : 31;
};
uint32_t DWord;
} can2_options;
uint32_t network_enables;
uint32_t can3_tx_id;
uint32_t can3_rx_id;
union
{
struct
{
unsigned bExtended : 1;
unsigned : 31;
};
uint32_t DWord;
} can3_options;
uint32_t can4_tx_id;
uint32_t can4_rx_id;
union
{
struct
{
unsigned bExtended : 1;
unsigned : 31;
};
uint32_t DWord;
} can4_options;
uint32_t reserved[5];
} STextAPISettings;
typedef union _stChipVersions
{
struct
{
uint8_t mpic_maj;
uint8_t mpic_min;
uint8_t upic_maj;
uint8_t upic_min;
uint8_t lpic_maj;
uint8_t lpic_min;
uint8_t jpic_maj;
uint8_t jpic_min;
} fire_versions;
struct
{
uint8_t mpic_maj;
uint8_t mpic_min;
uint8_t core_maj;
uint8_t core_min;
uint8_t lpic_maj;
uint8_t lpic_min;
uint8_t hid_maj;
uint8_t hid_min;
} plasma_fire_vnet;
struct
{
uint8_t mpic_maj;
uint8_t mpic_min;
} vcan3_versions;
struct
{
uint8_t mpic_maj;
uint8_t mpic_min;
} vcanrf_versions;
struct
{
uint8_t zynq_core_major;
uint8_t zynq_core_minor;
} radgalaxy_versions;
struct
{
uint8_t zynq_core_major;
uint8_t zynq_core_minor;
} radstar2_versions;
struct
{
uint8_t mpic_maj;
uint8_t mpic_min;
uint8_t ext_flash_maj;
uint8_t ext_flash_min;
uint8_t nrf52_maj;
uint8_t nrf52_min;
} vividcan_versions;
struct
{
uint8_t zynq_core_major;
uint8_t zynq_core_minor;
} cmprobe_versions;
struct
{
uint8_t mchip_major;
uint8_t mchip_minor;
uint8_t schip_major;
uint8_t schip_minor;
uint8_t core_major;
uint8_t core_minor;
} obd2pro_versions;
struct
{
uint8_t mchip_major;
uint8_t mchip_minor;
} vcan41_versions;
struct
{
uint8_t mchip_major;
uint8_t mchip_minor;
} vcan42_versions;
struct
{
uint8_t mchip_major;
uint8_t mchip_minor;
} neoecu_avb_versions;
struct
{
uint8_t zynq_core_major;
uint8_t zynq_core_minor;
} radsupermoon_versions;
struct
{
uint8_t zynq_core_major;
uint8_t zynq_core_minor;
} radmoon2_versions;
struct
{
uint8_t zynq_core_major;
uint8_t zynq_core_minor;
} radmoon2_z7010_versions;
struct
{
uint8_t mchip_major;
uint8_t mchip_minor;
} radmoon3_versions;
struct
{
uint8_t mchip_major;
uint8_t mchip_minor;
} pluto_versions;
struct
{
uint8_t zynq_core_major;
uint8_t zynq_core_minor;
} radgigalog_versions;
struct
{
uint8_t zynq_core_major;
uint8_t zynq_core_minor;
} radgigalog3_versions;
struct
{
uint8_t zynq_core_major;
uint8_t zynq_core_minor;
} radgigastar_versions;
struct
{
uint8_t zynq_core_major;
uint8_t zynq_core_minor;
} radgigastar_usbz_versions;
struct
{
uint8_t mchip_major;
uint8_t mchip_minor;
uint8_t schip_major;
uint8_t schip_minor;
} obd2lc_versions;
struct
{
uint8_t mchip_major;
uint8_t mchip_minor;
} jupiter_versions;
struct
{
uint8_t zchip_major;
uint8_t zchip_minor;
uint8_t schip_major;
uint8_t schip_minor;
} red2_versions;
struct
{
uint8_t zchip_major;
uint8_t zchip_minor;
uint8_t schip_major;
uint8_t schip_minor;
uint8_t vem_z_major;
uint8_t vem_z_minor;
} fire3_versions;
struct
{
uint8_t zchip_major;
uint8_t zchip_minor;
uint8_t schip_major;
uint8_t schip_minor;
uint8_t vem_z_major;
uint8_t vem_z_minor;
uint8_t vem_f_major;
uint8_t vem_f_minor;
} fire3_flexray_versions;
struct
{
uint8_t mchip_major;
uint8_t mchip_minor;
} rad_moon_duo_versions;
struct
{
uint8_t mchip_major;
uint8_t mchip_minor;
uint8_t schip_major;
uint8_t schip_minor;
} obd2dev_versions;
struct
{
uint8_t mchip_major;
uint8_t mchip_minor;
} ether_badge_versions;
struct
{
uint8_t zynq_core_major;
uint8_t zynq_core_minor;
} rad_a2b_versions;
struct
{
uint8_t mchip_major;
uint8_t mchip_minor;
} epsilon_versions;
struct
{
uint8_t mchip_major;
uint8_t mchip_minor;
uint8_t wil_major;
uint8_t wil_minor;
} rad_wbms_versions;
struct
{
uint8_t zynq_core_major;
uint8_t zynq_core_minor;
} rad_comet_versions;
} stChipVersions;
typedef struct _SNeoMostGatewaySettings
{
uint16_t netId;
uint8_t zero0;
uint8_t Config;
} SNeoMostGatewaySettings;
enum
{
OPETH_FUNC_TAP = 0,
OPETH_FUNC_MEDIACONVERTER,
OPETH_FUNC_TAP_LOW_LATENCY,
OPETH_FUNC_RAW_MEDIA_CONVERTER,
OPETH_FUNC_RAW_MEDIA_CONVERTER2,
OPETH_FUNC_RAW_MEDIA_CONVERTER2_LOW_LATENCY,
};
typedef struct OP_ETH_GENERAL_SETTINGS_t
{
uint8_t ucInterfaceType;
uint8_t reserved0[3];
uint16_t tapPair0;
uint16_t tapPair1;
uint16_t tapPair2;
uint16_t tapPair3;
uint16_t tapPair4;
uint16_t tapPair5;
union
{
struct
{
uint32_t bTapEnSwitch : 1;
uint32_t bTapEnPtp : 1;
uint32_t bEnReportLinkQuality : 1;
uint32_t bEnTapTxReceipts : 1;
uint32_t reserved : 28;
} flags;
uint32_t uFlags;
};
} OP_ETH_GENERAL_SETTINGS;
typedef struct SRAD_GPTP_SETTINGS_s
{
uint32_t neighborPropDelayThresh;
uint32_t sys_phc_sync_interval;
int8_t logPDelayReqInterval;
int8_t logSyncInterval;
int8_t logAnnounceInterval;
uint8_t profile;
uint8_t priority1;
uint8_t clockclass;
uint8_t clockaccuracy;
uint8_t priority2;
uint16_t offset_scaled_log_variance;
uint8_t gPTPportRole;
uint8_t gptpEnabledPort;
uint8_t enableClockSyntonization;
uint8_t rsvd[15];
} RAD_GPTP_SETTINGS;
typedef struct SRAD_GPTP_AND_TAP_SETTINGS_s
{
RAD_GPTP_SETTINGS gPTP;
OP_ETH_GENERAL_SETTINGS tap;
} RAD_GPTP_AND_TAP_SETTINGS;
typedef struct HW_ETH_SETTINGS_t
{
OP_ETH_GENERAL_SETTINGS General_Settings;
} HW_ETH_SETTINGS;
typedef enum _opEthLinkMode
{
OPETH_LINK_AUTO = 0,
OPETH_LINK_MASTER,
OPETH_LINK_SLAVE
} opEthLinkMode;
enum
{
OPETH_MAC_SPOOF_DST_ADDR = 0,
OPETH_MAC_SPOOF_SRC_ADDR = 1,
};
typedef struct OP_ETH_SETTINGS_t
{
uint8_t ucConfigMode;
unsigned char preemption_en;
union
{
struct
{
unsigned char mac_addr1[6];
unsigned char mac_addr2[6];
unsigned short mac_spoofing_en : 1;
unsigned short mac_spoofing_isDstOrSrc : 1;
unsigned short link_spd : 2;
unsigned short q2112_phy_mode : 1;
unsigned short reserved : 11;
};
unsigned char reserved0[14];
};
} OP_ETH_SETTINGS;
typedef struct ETHERNET_SETTINGS_t
{
uint8_t duplex;
uint8_t link_speed;
uint8_t auto_neg;
uint8_t led_mode;
uint8_t rsvd[4];
} ETHERNET_SETTINGS;
typedef struct ETHERNET_SETTINGS2_t
{
uint8_t flags;
uint8_t link_speed;
uint32_t ip_addr;
uint32_t netmask;
uint32_t gateway;
uint8_t flags2;
uint8_t rsvd;
} ETHERNET_SETTINGS2;
typedef struct ETHERNET10G_SETTINGS_t
{
uint32_t flags;
uint32_t ip_addr;
uint32_t netmask;
uint32_t gateway;
uint8_t link_speed;
uint8_t rsvd2[7];
} ETHERNET10G_SETTINGS;
typedef struct ETHERNET10T1S_SETTINGS_t
{
uint8_t max_burst_count;
uint8_t burst_timer;
uint8_t max_num_nodes;
uint8_t local_id;
uint8_t to_timer;
uint8_t flags;
uint8_t local_id_alternate;
uint8_t rsvd[5];
} ETHERNET10T1S_SETTINGS;
typedef struct LOGGER_SETTINGS_t
{
uint8_t extraction_timeout;
uint8_t rsvd[3];
} LOGGER_SETTINGS;
typedef struct DISK_SETTINGS_t
{
uint8_t disk_layout;
uint8_t disk_format;
uint32_t disk_enables;
uint8_t rsvd[8];
} DISK_SETTINGS;
typedef struct
{
uint8_t term_enabled;
uint8_t term_network;
uint16_t reserved[2];
} CANTERM_SETTINGS;
typedef struct
{
uint8_t MasterEnable;
uint8_t SlaveEnable;
uint8_t MasterNetwork;
uint8_t SlaveNetwork;
} TIMESYNC_ICSHARDWARE_SETTINGS;
typedef enum _EDiskFormat
{
DiskFormatUnknown = 0,
DiskFormatFAT32,
DiskFormatexFAT,
} EDiskFormat;
typedef enum _EDiskLayout
{
DiskLayoutSpanned = 0,
DiskLayoutRAID0,
DiskLayoutRAID1,
DiskLayoutRAID5,
DiskLayoutIndividual,
} EDiskLayout;
typedef struct _SDiskStatus
{
uint16_t status;
uint8_t sectors[8];
uint8_t bytesPerSector[4];
} SDiskStatus;
typedef struct _SDiskStructure
{
DISK_SETTINGS settings;
uint16_t options;
} SDiskStructure;
typedef struct _SDiskDetails
{
SDiskStructure structure;
SDiskStatus status[12];
} SDiskDetails;
typedef struct _SDiskFormatProgress
{
uint16_t state;
uint8_t sectorsRemaining[8];
} SDiskFormatProgress;
typedef struct _StartDHCPServerCommand
{
uint16_t networkId;
uint32_t serverIpAddress;
uint32_t subnetMask;
uint32_t gatewayAddress;
uint32_t startAddress;
uint32_t endAddress;
uint32_t leaseTime;
uint32_t overwrite;
} StartDHCPServerCommand;
typedef struct _StopDHCPServerCommand
{
uint16_t networkId;
} StopDHCPServerCommand;
typedef enum _ExtendedResponseCode
{
EXTENDED_RESPONSE_OK = 0,
EXTENDED_RESPONSE_INVALID_COMMAND = -1,
EXTENDED_RESPONSE_INVALID_STATE = -2,
EXTENDED_RESPONSE_OPERATION_FAILED = -3,
EXTENDED_RESPONSE_OPERATION_PENDING = -4,
EXTENDED_RESPONSE_INVALID_PARAMETER = -5,
} ExtendedResponseCode;
typedef struct _ExtendedResponseGeneric
{
uint16_t commandType;
int32_t returnCode;
} ExtendedResponseGeneric;
typedef struct _GenericAPISelector
{
uint8_t apiIndex;
uint8_t instance;
uint8_t functionID;
} GenericAPISelector;
typedef struct _GenericAPIStatus
{
GenericAPISelector api;
uint8_t functionError;
uint8_t calbackError;
uint8_t finishedProcessing;
} GenericAPIStatus;
typedef struct _GenericAPIData
{
uint16_t length;
GenericAPISelector api;
uint8_t bData[513];
} GenericAPIData;
typedef struct _GenericAPIData_OLD
{
GenericAPISelector api;
uint8_t bData[513];
uint16_t length;
} GenericAPIData_OLD;
typedef struct _wBMSManagerSetLock
{
uint8_t managerIndex;
uint8_t setLock;
} wBMSManagerSetLock;
typedef struct _wBMSManagerReset
{
uint8_t managerIndex;
} wBMSManagerReset;
typedef struct _UartPortData
{
uint16_t len;
uint8_t port;
uint8_t bData[256];
} UartPortData;
typedef struct _UartPortPortBytes
{
uint16_t len;
uint8_t port;
uint8_t flag;
} UartPortPortBytes;
typedef struct _UartPortConfig
{
uint32_t baudrate;
uint8_t port;
uint8_t reserve[7];
} UartPortConfig;
typedef struct
{
uint16_t cmdVersion;
uint16_t numValidBits;
uint32_t featureBitfields[0];
} GetSupportedFeaturesResponse;
typedef struct _VersionReport
{
uint8_t valid;
uint8_t expansionSlot;
uint8_t componentInfo;
uint8_t reserved;
uint32_t identifier;
uint32_t dotVersion;
uint32_t commitHash;
} VersionReport;
typedef struct _GetComponentVersions
{
uint32_t reserved[2];
} GetComponentVersions;
typedef struct _ExtendedGetVersionsResponse
{
uint16_t numVersions;
VersionReport versions[(16)];
} GetComponentVersionsResponse;
enum
{
swUpdateWrite = 0,
swUpdateErase = 1,
swUpdateGetProgress = 2,
swUpdateValidateAll = 3,
swUpdateGetBufferSize = 4,
swUpdateCheckHostVersion = 5,
swUpdateValidateComponent = 6,
swUpdateFinalize = 7,
swUpdateGetCommunicationVersion = 8,
};
typedef struct
{
uint32_t componentIdentifier;
uint8_t commandType;
uint32_t offset;
uint32_t commandSizeOrProgress;
uint8_t commandData[0];
} SoftwareUpdateCommand;
typedef struct _SExtSubCmdHdr
{
uint16_t command;
uint16_t length;
} SExtSubCmdHdr;
#pragma pack(push, 1)
struct _timestamp
{
uint16_t seconds_msb;
uint32_t seconds_lsb;
uint32_t nanoseconds;
};
typedef uint64_t _clock_identity;
struct port_identity
{
_clock_identity clock_identity;
uint16_t port_number;
};
struct _clock_quality
{
uint8_t clock_class;
uint8_t clock_accuracy;
uint16_t offset_scaled_log_variance;
};
struct system_identity
{
uint8_t priority_1;
struct _clock_quality clock_quality;
uint8_t priority_2;
_clock_identity clock_identity;
};
struct priority_vector
{
struct system_identity sysid;
uint16_t steps_removed;
struct port_identity portid;
uint16_t port_number;
};
typedef struct _GPTPStatus
{
struct _timestamp current_time;
struct priority_vector gm_priority;
int64_t ms_offset_ns;
uint8_t is_sync;
uint8_t link_status;
int64_t link_delay_ns;
uint8_t selected_role;
uint8_t as_capable;
uint8_t is_syntonized;
uint8_t reserved[8];
} GPTPStatus;
typedef struct _GenericBinaryStatus
{
uint32_t size;
uint16_t index;
uint16_t status;
uint8_t reserved[8];
} GenericBinaryStatus;
#pragma pack(pop)
enum
{
SERDESCAM_MODE_TAP_REPEATER = 0,
SERDESCAM_MODE_SPLITTER,
SERDESCAM_MODE_LOG_ONLY,
SERDESCAM_MODE_CUSTOM,
SERDESCAM_MODE_COUNT,
};
enum
{
SERDESCAM_PIXEL_BIT_POS_0 = 0,
SERDESCAM_PIXEL_BIT_POS_1,
SERDESCAM_PIXEL_BIT_POS_2,
SERDESCAM_PIXEL_BIT_POS_3,
};
enum
{
SERDESCAM_VIDEO_FORMAT_NONE = -1,
SERDESCAM_VIDEO_FORMAT_UYVY_422_8 = 0,
SERDESCAM_VIDEO_FORMAT_YUYV_422_8,
SERDESCAM_VIDEO_FORMAT_YVYU_422_8,
SERDESCAM_VIDEO_FORMAT_VYUY_422_8,
SERDESCAM_VIDEO_FORMAT_BAYER_BGGR_8,
SERDESCAM_VIDEO_FORMAT_RAW_8,
SERDESCAM_VIDEO_FORMAT_RAW_10,
SERDESCAM_VIDEO_FORMAT_RAW_12,
SERDESCAM_VIDEO_FORMAT_RAW_16,
SERDESCAM_VIDEO_FORMAT_RAW_20,
SERDESCAM_VIDEO_FORMAT_RAW_24,
SERDESCAM_VIDEO_FORMAT_RAW_30,
SERDESCAM_VIDEO_FORMAT_RAW_32,
SERDESCAM_VIDEO_FORMAT_RAW_36,
SERDESCAM_VIDEO_FORMAT_RGB888,
SERDESCAM_VIDEO_FORMAT_UYVY_422_10LE_PACKED,
SERDESCAM_VIDEO_FORMAT_YUYV_422_10LE_PACKED,
SERDESCAM_VIDEO_FORMAT_YVYU_422_10LE_PACKED,
SERDESCAM_VIDEO_FORMAT_VYUY_422_10LE_PACKED,
SERDESCAM_VIDEO_FORMAT_BAYER_BGGR_10LE_PACKED,
SERDESCAM_VIDEO_FORMAT_BAYER_BGGR_12LE_PACKED,
SERDESCAM_VIDEO_FORMAT_BAYER_BGGR_16LE,
SERDESCAM_VIDEO_FORMAT_BAYER_BGGR_16BE,
SERDESCAM_VIDEO_FORMAT_JPEG,
SERDESCAM_VIDEO_FORMAT_UYVY_422_12LE_PACKED,
SERDESCAM_VIDEO_FORMAT_YUYV_422_12LE_PACKED,
SERDESCAM_VIDEO_FORMAT_YVYU_422_12LE_PACKED,
SERDESCAM_VIDEO_FORMAT_VYUY_422_12LE_PACKED,
SERDESCAM_VIDEO_FORMAT_YUV422_10LE_PLANAR,