11/* automatically generated by rust-bindgen 0.71.1 */
22
3- #[ repr( C ) ]
4- #[ derive( Debug , Copy , Clone ) ]
5- pub struct tQueueHandleType {
6- _unused : [ u8 ; 0 ] ,
7- }
8- pub type tQueueHandle = * mut tQueueHandleType ;
9- #[ repr( C , packed) ]
10- #[ derive( Debug , Copy , Clone ) ]
11- pub struct tXcpOdt {
12- pub first_odt_entry : u16 ,
13- pub last_odt_entry : u16 ,
14- pub size : u16 ,
15- pub res : u16 ,
16- }
17- #[ allow( clippy:: unnecessary_operation, clippy:: identity_op) ]
18- const _: ( ) = {
19- [ "Size of tXcpOdt" ] [ :: std:: mem:: size_of :: < tXcpOdt > ( ) - 8usize ] ;
20- [ "Alignment of tXcpOdt" ] [ :: std:: mem:: align_of :: < tXcpOdt > ( ) - 1usize ] ;
21- [ "Offset of field: tXcpOdt::first_odt_entry" ] [ :: std:: mem:: offset_of!( tXcpOdt, first_odt_entry) - 0usize ] ;
22- [ "Offset of field: tXcpOdt::last_odt_entry" ] [ :: std:: mem:: offset_of!( tXcpOdt, last_odt_entry) - 2usize ] ;
23- [ "Offset of field: tXcpOdt::size" ] [ :: std:: mem:: offset_of!( tXcpOdt, size) - 4usize ] ;
24- [ "Offset of field: tXcpOdt::res" ] [ :: std:: mem:: offset_of!( tXcpOdt, res) - 6usize ] ;
25- } ;
26- #[ repr( C , packed) ]
27- #[ derive( Debug , Copy , Clone ) ]
28- pub struct tXcpDaqList {
29- pub last_odt : u16 ,
30- pub first_odt : u16 ,
31- pub event_channel : u16 ,
32- pub next : u16 ,
33- pub mode : u8 ,
34- pub state : u8 ,
35- pub priority : u8 ,
36- pub addr_ext : u8 ,
37- }
38- #[ allow( clippy:: unnecessary_operation, clippy:: identity_op) ]
39- const _: ( ) = {
40- [ "Size of tXcpDaqList" ] [ :: std:: mem:: size_of :: < tXcpDaqList > ( ) - 12usize ] ;
41- [ "Alignment of tXcpDaqList" ] [ :: std:: mem:: align_of :: < tXcpDaqList > ( ) - 1usize ] ;
42- [ "Offset of field: tXcpDaqList::last_odt" ] [ :: std:: mem:: offset_of!( tXcpDaqList, last_odt) - 0usize ] ;
43- [ "Offset of field: tXcpDaqList::first_odt" ] [ :: std:: mem:: offset_of!( tXcpDaqList, first_odt) - 2usize ] ;
44- [ "Offset of field: tXcpDaqList::event_channel" ] [ :: std:: mem:: offset_of!( tXcpDaqList, event_channel) - 4usize ] ;
45- [ "Offset of field: tXcpDaqList::next" ] [ :: std:: mem:: offset_of!( tXcpDaqList, next) - 6usize ] ;
46- [ "Offset of field: tXcpDaqList::mode" ] [ :: std:: mem:: offset_of!( tXcpDaqList, mode) - 8usize ] ;
47- [ "Offset of field: tXcpDaqList::state" ] [ :: std:: mem:: offset_of!( tXcpDaqList, state) - 9usize ] ;
48- [ "Offset of field: tXcpDaqList::priority" ] [ :: std:: mem:: offset_of!( tXcpDaqList, priority) - 10usize ] ;
49- [ "Offset of field: tXcpDaqList::addr_ext" ] [ :: std:: mem:: offset_of!( tXcpDaqList, addr_ext) - 11usize ] ;
50- } ;
51- #[ repr( C , packed) ]
52- #[ derive( Copy , Clone ) ]
53- pub struct tXcpDaqLists {
54- pub odt_entry_count : u16 ,
55- pub odt_count : u16 ,
56- pub daq_count : u16 ,
57- pub res : u16 ,
58- pub config_id : u16 ,
59- pub res1 : u16 ,
60- pub daq_first : [ u16 ; 256usize ] ,
61- pub u : tXcpDaqLists__bindgen_ty_1 ,
62- }
63- #[ repr( C , packed) ]
64- #[ derive( Copy , Clone ) ]
65- pub union tXcpDaqLists__bindgen_ty_1 {
66- pub daq_list : [ tXcpDaqList ; 13653usize ] ,
67- pub odt : [ tXcpOdt ; 20480usize ] ,
68- pub odt_entry_addr : [ u32 ; 40960usize ] ,
69- pub odt_entry_size : [ u8 ; 163840usize ] ,
70- pub b : [ u64 ; 20481usize ] ,
71- }
72- #[ allow( clippy:: unnecessary_operation, clippy:: identity_op) ]
73- const _: ( ) = {
74- [ "Size of tXcpDaqLists__bindgen_ty_1" ] [ :: std:: mem:: size_of :: < tXcpDaqLists__bindgen_ty_1 > ( ) - 163848usize ] ;
75- [ "Alignment of tXcpDaqLists__bindgen_ty_1" ] [ :: std:: mem:: align_of :: < tXcpDaqLists__bindgen_ty_1 > ( ) - 1usize ] ;
76- [ "Offset of field: tXcpDaqLists__bindgen_ty_1::daq_list" ] [ :: std:: mem:: offset_of!( tXcpDaqLists__bindgen_ty_1, daq_list) - 0usize ] ;
77- [ "Offset of field: tXcpDaqLists__bindgen_ty_1::odt" ] [ :: std:: mem:: offset_of!( tXcpDaqLists__bindgen_ty_1, odt) - 0usize ] ;
78- [ "Offset of field: tXcpDaqLists__bindgen_ty_1::odt_entry_addr" ] [ :: std:: mem:: offset_of!( tXcpDaqLists__bindgen_ty_1, odt_entry_addr) - 0usize ] ;
79- [ "Offset of field: tXcpDaqLists__bindgen_ty_1::odt_entry_size" ] [ :: std:: mem:: offset_of!( tXcpDaqLists__bindgen_ty_1, odt_entry_size) - 0usize ] ;
80- [ "Offset of field: tXcpDaqLists__bindgen_ty_1::b" ] [ :: std:: mem:: offset_of!( tXcpDaqLists__bindgen_ty_1, b) - 0usize ] ;
81- } ;
82- #[ allow( clippy:: unnecessary_operation, clippy:: identity_op) ]
83- const _: ( ) = {
84- [ "Size of tXcpDaqLists" ] [ :: std:: mem:: size_of :: < tXcpDaqLists > ( ) - 164372usize ] ;
85- [ "Alignment of tXcpDaqLists" ] [ :: std:: mem:: align_of :: < tXcpDaqLists > ( ) - 1usize ] ;
86- [ "Offset of field: tXcpDaqLists::odt_entry_count" ] [ :: std:: mem:: offset_of!( tXcpDaqLists, odt_entry_count) - 0usize ] ;
87- [ "Offset of field: tXcpDaqLists::odt_count" ] [ :: std:: mem:: offset_of!( tXcpDaqLists, odt_count) - 2usize ] ;
88- [ "Offset of field: tXcpDaqLists::daq_count" ] [ :: std:: mem:: offset_of!( tXcpDaqLists, daq_count) - 4usize ] ;
89- [ "Offset of field: tXcpDaqLists::res" ] [ :: std:: mem:: offset_of!( tXcpDaqLists, res) - 6usize ] ;
90- [ "Offset of field: tXcpDaqLists::config_id" ] [ :: std:: mem:: offset_of!( tXcpDaqLists, config_id) - 8usize ] ;
91- [ "Offset of field: tXcpDaqLists::res1" ] [ :: std:: mem:: offset_of!( tXcpDaqLists, res1) - 10usize ] ;
92- [ "Offset of field: tXcpDaqLists::daq_first" ] [ :: std:: mem:: offset_of!( tXcpDaqLists, daq_first) - 12usize ] ;
93- [ "Offset of field: tXcpDaqLists::u" ] [ :: std:: mem:: offset_of!( tXcpDaqLists, u) - 524usize ] ;
94- } ;
953unsafe extern "C" {
964 pub fn XcpInit ( ) ;
975}
986unsafe extern "C" {
99- pub fn XcpDisconnect ( ) ;
7+ pub fn XcpSetEpk ( epk : * const :: std :: os :: raw :: c_char ) ;
1008}
1019unsafe extern "C" {
102- pub fn XcpTriggerDaqEventAt ( daq_lists : * const tXcpDaqLists , queueHandle : tQueueHandle , event : u16 , base : * const u8 , clock : u64 ) ;
10+ pub fn XcpDisconnect ( ) ;
10311}
10412unsafe extern "C" {
10513 pub fn XcpEventExt ( event : u16 , base : * const u8 ) -> u8 ;
@@ -114,17 +22,11 @@ unsafe extern "C" {
11422 pub fn XcpPrint ( str_ : * const :: std:: os:: raw:: c_char ) ;
11523}
11624unsafe extern "C" {
117- pub fn XcpSetEpk ( epk : * const :: std:: os:: raw:: c_char ) ;
118- }
119- unsafe extern "C" {
120- pub fn ApplXcpGetAddr ( p : * const u8 ) -> u32 ;
25+ pub fn XcpSetLogLevel ( level : u8 ) ;
12126}
12227unsafe extern "C" {
12328 pub fn ApplXcpGetClock64 ( ) -> u64 ;
12429}
125- unsafe extern "C" {
126- pub fn ApplXcpSetLogLevel ( level : u8 ) ;
127- }
12830unsafe extern "C" {
12931 pub fn ApplXcpRegisterCallbacks (
13032 cb_connect : :: std:: option:: Option < unsafe extern "C" fn ( ) -> bool > ,
0 commit comments