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
/* automatically generated by rust-bindgen 0.63.0 */

pub const HELIOS_SUCCESS: u32 = 1;
pub const HELIOS_ERROR_NOT_INITIALIZED: i32 = -1;
pub const HELIOS_ERROR_INVALID_DEVNUM: i32 = -2;
pub const HELIOS_ERROR_NULL_POINTS: i32 = -3;
pub const HELIOS_ERROR_TOO_MANY_POINTS: i32 = -4;
pub const HELIOS_ERROR_PPS_TOO_HIGH: i32 = -5;
pub const HELIOS_ERROR_PPS_TOO_LOW: i32 = -6;
pub const HELIOS_ERROR_DEVICE_CLOSED: i32 = -1000;
pub const HELIOS_ERROR_DEVICE_FRAME_READY: i32 = -1001;
pub const HELIOS_ERROR_DEVICE_SEND_CONTROL: i32 = -1002;
pub const HELIOS_ERROR_DEVICE_RESULT: i32 = -1003;
pub const HELIOS_ERROR_DEVICE_NULL_BUFFER: i32 = -1004;
pub const HELIOS_ERROR_DEVICE_SIGNAL_TOO_LONG: i32 = -1005;
pub const HELIOS_ERROR_LIBUSB_BASE: i32 = -5000;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct libusb_device_handle {
    _unused: [u8; 0],
}
#[doc = " \\ingroup libusb_asyncio\n The generic USB transfer structure. The user populates this structure and\n then submits it in order to request a transfer. After the transfer has\n completed, the library populates the transfer with the results and passes\n it back to the user."]
#[repr(C)]
#[repr(align(8))]
#[derive(Debug, Copy, Clone)]
pub struct libusb_transfer {
    pub _bindgen_opaque_blob: [u64; 8usize],
}
#[test]
fn bindgen_test_layout_libusb_transfer() {
    assert_eq!(
        ::std::mem::size_of::<libusb_transfer>(),
        64usize,
        concat!("Size of: ", stringify!(libusb_transfer))
    );
    assert_eq!(
        ::std::mem::align_of::<libusb_transfer>(),
        8usize,
        concat!("Alignment of ", stringify!(libusb_transfer))
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct std_allocator {
    pub _address: u8,
}
pub type std_allocator_value_type = u8;
pub type std_allocator_size_type = u64;
pub type std_allocator_difference_type = u64;
pub type std_allocator_pointer = u8;
pub type std_allocator_const_pointer = u8;
pub type std_allocator_reference = u8;
pub type std_allocator_const_reference = u8;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct std_allocator_rebind {
    pub _address: u8,
}
pub type std_allocator_rebind_other = u8;
pub type std_allocator_propagate_on_container_move_assignment = u8;
pub type std_allocator_is_always_equal = u8;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct std_default_delete {
    pub _address: u8,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct std_unique_ptr {
    pub _address: u8,
}
pub type std_unique_ptr__DeleterConstraint = u8;
pub type std_unique_ptr_pointer = u8;
pub type std_unique_ptr_element_type = u8;
pub type std_unique_ptr_deleter_type = u8;
pub type std_unique_ptr___safe_conversion_up = u8;
#[repr(C)]
#[repr(align(8))]
#[derive(Debug, Copy, Clone)]
pub struct std_mutex {
    pub _bindgen_opaque_blob: [u64; 5usize],
}
pub type std_mutex_native_handle_type = u64;
#[test]
fn bindgen_test_layout_std_mutex() {
    assert_eq!(
        ::std::mem::size_of::<std_mutex>(),
        40usize,
        concat!("Size of: ", stringify!(std_mutex))
    );
    assert_eq!(
        ::std::mem::align_of::<std_mutex>(),
        8usize,
        concat!("Alignment of ", stringify!(std_mutex))
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct std_vector {
    pub _address: u8,
}
pub type std_vector__Base = u8;
pub type std_vector__Tp_alloc_type = u8;
pub type std_vector__Alloc_traits = u8;
pub type std_vector_value_type = u8;
pub type std_vector_pointer = u8;
pub type std_vector_const_pointer = u8;
pub type std_vector_reference = u8;
pub type std_vector_const_reference = u8;
pub type std_vector_iterator = u8;
pub type std_vector_const_iterator = u8;
pub type std_vector_const_reverse_iterator = u8;
pub type std_vector_reverse_iterator = u8;
pub type std_vector_size_type = u64;
pub type std_vector_difference_type = u64;
pub type std_vector_allocator_type = u8;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct std_vector__Temporary_value {
    pub _address: u8,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct HeliosPoint {
    pub x: u16,
    pub y: u16,
    pub r: u8,
    pub g: u8,
    pub b: u8,
    pub i: u8,
}
#[test]
fn bindgen_test_layout_HeliosPoint() {
    const UNINIT: ::std::mem::MaybeUninit<HeliosPoint> = ::std::mem::MaybeUninit::uninit();
    let ptr = UNINIT.as_ptr();
    assert_eq!(
        ::std::mem::size_of::<HeliosPoint>(),
        8usize,
        concat!("Size of: ", stringify!(HeliosPoint))
    );
    assert_eq!(
        ::std::mem::align_of::<HeliosPoint>(),
        2usize,
        concat!("Alignment of ", stringify!(HeliosPoint))
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).x) as usize - ptr as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(HeliosPoint),
            "::",
            stringify!(x)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).y) as usize - ptr as usize },
        2usize,
        concat!(
            "Offset of field: ",
            stringify!(HeliosPoint),
            "::",
            stringify!(y)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).r) as usize - ptr as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(HeliosPoint),
            "::",
            stringify!(r)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).g) as usize - ptr as usize },
        5usize,
        concat!(
            "Offset of field: ",
            stringify!(HeliosPoint),
            "::",
            stringify!(g)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).b) as usize - ptr as usize },
        6usize,
        concat!(
            "Offset of field: ",
            stringify!(HeliosPoint),
            "::",
            stringify!(b)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).i) as usize - ptr as usize },
        7usize,
        concat!(
            "Offset of field: ",
            stringify!(HeliosPoint),
            "::",
            stringify!(i)
        )
    );
}
#[repr(C)]
#[derive(Debug)]
pub struct HeliosDac {
    pub deviceList: [u64; 3usize],
    pub threadLock: std_mutex,
    pub inited: bool,
}
#[repr(C)]
#[derive(Debug)]
pub struct HeliosDac_HeliosDacDevice {
    pub interruptTransfer: *mut libusb_transfer,
    pub usbHandle: *mut libusb_device_handle,
    pub frameLock: std_mutex,
    pub frameReady: bool,
    pub firmwareVersion: ::std::os::raw::c_int,
    pub name: [::std::os::raw::c_char; 32usize],
    pub closed: bool,
    pub frameBuffer: *mut u8,
    pub frameBufferSize: ::std::os::raw::c_uint,
    pub frameResult: ::std::os::raw::c_int,
    pub shutterIsOpen: bool,
}
#[test]
fn bindgen_test_layout_HeliosDac_HeliosDacDevice() {
    const UNINIT: ::std::mem::MaybeUninit<HeliosDac_HeliosDacDevice> =
        ::std::mem::MaybeUninit::uninit();
    let ptr = UNINIT.as_ptr();
    assert_eq!(
        ::std::mem::size_of::<HeliosDac_HeliosDacDevice>(),
        128usize,
        concat!("Size of: ", stringify!(HeliosDac_HeliosDacDevice))
    );
    assert_eq!(
        ::std::mem::align_of::<HeliosDac_HeliosDacDevice>(),
        8usize,
        concat!("Alignment of ", stringify!(HeliosDac_HeliosDacDevice))
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).interruptTransfer) as usize - ptr as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(HeliosDac_HeliosDacDevice),
            "::",
            stringify!(interruptTransfer)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).usbHandle) as usize - ptr as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(HeliosDac_HeliosDacDevice),
            "::",
            stringify!(usbHandle)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).frameLock) as usize - ptr as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(HeliosDac_HeliosDacDevice),
            "::",
            stringify!(frameLock)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).frameReady) as usize - ptr as usize },
        56usize,
        concat!(
            "Offset of field: ",
            stringify!(HeliosDac_HeliosDacDevice),
            "::",
            stringify!(frameReady)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).firmwareVersion) as usize - ptr as usize },
        60usize,
        concat!(
            "Offset of field: ",
            stringify!(HeliosDac_HeliosDacDevice),
            "::",
            stringify!(firmwareVersion)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize },
        64usize,
        concat!(
            "Offset of field: ",
            stringify!(HeliosDac_HeliosDacDevice),
            "::",
            stringify!(name)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).closed) as usize - ptr as usize },
        96usize,
        concat!(
            "Offset of field: ",
            stringify!(HeliosDac_HeliosDacDevice),
            "::",
            stringify!(closed)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).frameBuffer) as usize - ptr as usize },
        104usize,
        concat!(
            "Offset of field: ",
            stringify!(HeliosDac_HeliosDacDevice),
            "::",
            stringify!(frameBuffer)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).frameBufferSize) as usize - ptr as usize },
        112usize,
        concat!(
            "Offset of field: ",
            stringify!(HeliosDac_HeliosDacDevice),
            "::",
            stringify!(frameBufferSize)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).frameResult) as usize - ptr as usize },
        116usize,
        concat!(
            "Offset of field: ",
            stringify!(HeliosDac_HeliosDacDevice),
            "::",
            stringify!(frameResult)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).shutterIsOpen) as usize - ptr as usize },
        120usize,
        concat!(
            "Offset of field: ",
            stringify!(HeliosDac_HeliosDacDevice),
            "::",
            stringify!(shutterIsOpen)
        )
    );
}
extern "C" {
    #[link_name = "\u{1}_ZN9HeliosDac15HeliosDacDevice9SendFrameEjhP11HeliosPointj"]
    pub fn HeliosDac_HeliosDacDevice_SendFrame(
        this: *mut HeliosDac_HeliosDacDevice,
        pps: ::std::os::raw::c_uint,
        flags: u8,
        points: *mut HeliosPoint,
        numOfPoints: ::std::os::raw::c_uint,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[link_name = "\u{1}_ZN9HeliosDac15HeliosDacDevice9GetStatusEv"]
    pub fn HeliosDac_HeliosDacDevice_GetStatus(
        this: *mut HeliosDac_HeliosDacDevice,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[link_name = "\u{1}_ZN9HeliosDac15HeliosDacDevice18GetFirmwareVersionEv"]
    pub fn HeliosDac_HeliosDacDevice_GetFirmwareVersion(
        this: *mut HeliosDac_HeliosDacDevice,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[link_name = "\u{1}_ZN9HeliosDac15HeliosDacDevice7GetNameEPc"]
    pub fn HeliosDac_HeliosDacDevice_GetName(
        this: *mut HeliosDac_HeliosDacDevice,
        name: *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[link_name = "\u{1}_ZN9HeliosDac15HeliosDacDevice7SetNameEPc"]
    pub fn HeliosDac_HeliosDacDevice_SetName(
        this: *mut HeliosDac_HeliosDacDevice,
        name: *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[link_name = "\u{1}_ZN9HeliosDac15HeliosDacDevice10SetShutterEb"]
    pub fn HeliosDac_HeliosDacDevice_SetShutter(
        this: *mut HeliosDac_HeliosDacDevice,
        level: bool,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[link_name = "\u{1}_ZN9HeliosDac15HeliosDacDevice4StopEv"]
    pub fn HeliosDac_HeliosDacDevice_Stop(
        this: *mut HeliosDac_HeliosDacDevice,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[link_name = "\u{1}_ZN9HeliosDac15HeliosDacDevice13EraseFirmwareEv"]
    pub fn HeliosDac_HeliosDacDevice_EraseFirmware(
        this: *mut HeliosDac_HeliosDacDevice,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[link_name = "\u{1}_ZN9HeliosDac15HeliosDacDeviceC1EP20libusb_device_handle"]
    pub fn HeliosDac_HeliosDacDevice_HeliosDacDevice(
        this: *mut HeliosDac_HeliosDacDevice,
        arg1: *mut libusb_device_handle,
    );
}
extern "C" {
    #[link_name = "\u{1}_ZN9HeliosDac15HeliosDacDeviceD1Ev"]
    pub fn HeliosDac_HeliosDacDevice_HeliosDacDevice_destructor(
        this: *mut HeliosDac_HeliosDacDevice,
    );
}
impl HeliosDac_HeliosDacDevice {
    #[inline]
    pub unsafe fn SendFrame(
        &mut self,
        pps: ::std::os::raw::c_uint,
        flags: u8,
        points: *mut HeliosPoint,
        numOfPoints: ::std::os::raw::c_uint,
    ) -> ::std::os::raw::c_int {
        HeliosDac_HeliosDacDevice_SendFrame(self, pps, flags, points, numOfPoints)
    }
    #[inline]
    pub unsafe fn GetStatus(&mut self) -> ::std::os::raw::c_int {
        HeliosDac_HeliosDacDevice_GetStatus(self)
    }
    #[inline]
    pub unsafe fn GetFirmwareVersion(&mut self) -> ::std::os::raw::c_int {
        HeliosDac_HeliosDacDevice_GetFirmwareVersion(self)
    }
    #[inline]
    pub unsafe fn GetName(&mut self, name: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int {
        HeliosDac_HeliosDacDevice_GetName(self, name)
    }
    #[inline]
    pub unsafe fn SetName(&mut self, name: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int {
        HeliosDac_HeliosDacDevice_SetName(self, name)
    }
    #[inline]
    pub unsafe fn SetShutter(&mut self, level: bool) -> ::std::os::raw::c_int {
        HeliosDac_HeliosDacDevice_SetShutter(self, level)
    }
    #[inline]
    pub unsafe fn Stop(&mut self) -> ::std::os::raw::c_int {
        HeliosDac_HeliosDacDevice_Stop(self)
    }
    #[inline]
    pub unsafe fn EraseFirmware(&mut self) -> ::std::os::raw::c_int {
        HeliosDac_HeliosDacDevice_EraseFirmware(self)
    }
    #[inline]
    pub unsafe fn new(arg1: *mut libusb_device_handle) -> Self {
        let mut __bindgen_tmp = ::std::mem::MaybeUninit::uninit();
        HeliosDac_HeliosDacDevice_HeliosDacDevice(__bindgen_tmp.as_mut_ptr(), arg1);
        __bindgen_tmp.assume_init()
    }
    #[inline]
    pub unsafe fn destruct(&mut self) {
        HeliosDac_HeliosDacDevice_HeliosDacDevice_destructor(self)
    }
}
#[test]
fn bindgen_test_layout_HeliosDac() {
    const UNINIT: ::std::mem::MaybeUninit<HeliosDac> = ::std::mem::MaybeUninit::uninit();
    let ptr = UNINIT.as_ptr();
    assert_eq!(
        ::std::mem::size_of::<HeliosDac>(),
        72usize,
        concat!("Size of: ", stringify!(HeliosDac))
    );
    assert_eq!(
        ::std::mem::align_of::<HeliosDac>(),
        8usize,
        concat!("Alignment of ", stringify!(HeliosDac))
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).deviceList) as usize - ptr as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(HeliosDac),
            "::",
            stringify!(deviceList)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).threadLock) as usize - ptr as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(HeliosDac),
            "::",
            stringify!(threadLock)
        )
    );
    assert_eq!(
        unsafe { ::std::ptr::addr_of!((*ptr).inited) as usize - ptr as usize },
        64usize,
        concat!(
            "Offset of field: ",
            stringify!(HeliosDac),
            "::",
            stringify!(inited)
        )
    );
}
extern "C" {
    #[link_name = "\u{1}_ZN9HeliosDac11OpenDevicesEv"]
    pub fn HeliosDac_OpenDevices(this: *mut HeliosDac) -> ::std::os::raw::c_int;
}
extern "C" {
    #[link_name = "\u{1}_ZN9HeliosDac12CloseDevicesEv"]
    pub fn HeliosDac_CloseDevices(this: *mut HeliosDac) -> ::std::os::raw::c_int;
}
extern "C" {
    #[link_name = "\u{1}_ZN9HeliosDac22SetLibusbDebugLogLevelEi"]
    pub fn HeliosDac_SetLibusbDebugLogLevel(
        this: *mut HeliosDac,
        logLevel: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[link_name = "\u{1}_ZN9HeliosDac10WriteFrameEjjhP11HeliosPointj"]
    pub fn HeliosDac_WriteFrame(
        this: *mut HeliosDac,
        devNum: ::std::os::raw::c_uint,
        pps: ::std::os::raw::c_uint,
        flags: u8,
        points: *mut HeliosPoint,
        numOfPoints: ::std::os::raw::c_uint,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[link_name = "\u{1}_ZN9HeliosDac9GetStatusEj"]
    pub fn HeliosDac_GetStatus(
        this: *mut HeliosDac,
        devNum: ::std::os::raw::c_uint,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[link_name = "\u{1}_ZN9HeliosDac18GetFirmwareVersionEj"]
    pub fn HeliosDac_GetFirmwareVersion(
        this: *mut HeliosDac,
        devNum: ::std::os::raw::c_uint,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[link_name = "\u{1}_ZN9HeliosDac7GetNameEjPc"]
    pub fn HeliosDac_GetName(
        this: *mut HeliosDac,
        devNum: ::std::os::raw::c_uint,
        name: *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[link_name = "\u{1}_ZN9HeliosDac7SetNameEjPc"]
    pub fn HeliosDac_SetName(
        this: *mut HeliosDac,
        devNum: ::std::os::raw::c_uint,
        name: *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[link_name = "\u{1}_ZN9HeliosDac4StopEj"]
    pub fn HeliosDac_Stop(
        this: *mut HeliosDac,
        devNum: ::std::os::raw::c_uint,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[link_name = "\u{1}_ZN9HeliosDac10SetShutterEjb"]
    pub fn HeliosDac_SetShutter(
        this: *mut HeliosDac,
        devNum: ::std::os::raw::c_uint,
        level: bool,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[link_name = "\u{1}_ZN9HeliosDac13EraseFirmwareEj"]
    pub fn HeliosDac_EraseFirmware(
        this: *mut HeliosDac,
        devNum: ::std::os::raw::c_uint,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[link_name = "\u{1}_ZN9HeliosDacC1Ev"]
    pub fn HeliosDac_HeliosDac(this: *mut HeliosDac);
}
extern "C" {
    #[link_name = "\u{1}_ZN9HeliosDacD1Ev"]
    pub fn HeliosDac_HeliosDac_destructor(this: *mut HeliosDac);
}
impl HeliosDac {
    #[inline]
    pub unsafe fn OpenDevices(&mut self) -> ::std::os::raw::c_int {
        HeliosDac_OpenDevices(self)
    }
    #[inline]
    pub unsafe fn CloseDevices(&mut self) -> ::std::os::raw::c_int {
        HeliosDac_CloseDevices(self)
    }
    #[inline]
    pub unsafe fn SetLibusbDebugLogLevel(
        &mut self,
        logLevel: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int {
        HeliosDac_SetLibusbDebugLogLevel(self, logLevel)
    }
    #[inline]
    pub unsafe fn WriteFrame(
        &mut self,
        devNum: ::std::os::raw::c_uint,
        pps: ::std::os::raw::c_uint,
        flags: u8,
        points: *mut HeliosPoint,
        numOfPoints: ::std::os::raw::c_uint,
    ) -> ::std::os::raw::c_int {
        HeliosDac_WriteFrame(self, devNum, pps, flags, points, numOfPoints)
    }
    #[inline]
    pub unsafe fn GetStatus(&mut self, devNum: ::std::os::raw::c_uint) -> ::std::os::raw::c_int {
        HeliosDac_GetStatus(self, devNum)
    }
    #[inline]
    pub unsafe fn GetFirmwareVersion(
        &mut self,
        devNum: ::std::os::raw::c_uint,
    ) -> ::std::os::raw::c_int {
        HeliosDac_GetFirmwareVersion(self, devNum)
    }
    #[inline]
    pub unsafe fn GetName(
        &mut self,
        devNum: ::std::os::raw::c_uint,
        name: *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int {
        HeliosDac_GetName(self, devNum, name)
    }
    #[inline]
    pub unsafe fn SetName(
        &mut self,
        devNum: ::std::os::raw::c_uint,
        name: *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int {
        HeliosDac_SetName(self, devNum, name)
    }
    #[inline]
    pub unsafe fn Stop(&mut self, devNum: ::std::os::raw::c_uint) -> ::std::os::raw::c_int {
        HeliosDac_Stop(self, devNum)
    }
    #[inline]
    pub unsafe fn SetShutter(
        &mut self,
        devNum: ::std::os::raw::c_uint,
        level: bool,
    ) -> ::std::os::raw::c_int {
        HeliosDac_SetShutter(self, devNum, level)
    }
    #[inline]
    pub unsafe fn EraseFirmware(
        &mut self,
        devNum: ::std::os::raw::c_uint,
    ) -> ::std::os::raw::c_int {
        HeliosDac_EraseFirmware(self, devNum)
    }
    #[inline]
    pub unsafe fn new() -> Self {
        let mut __bindgen_tmp = ::std::mem::MaybeUninit::uninit();
        HeliosDac_HeliosDac(__bindgen_tmp.as_mut_ptr());
        __bindgen_tmp.assume_init()
    }
    #[inline]
    pub unsafe fn destruct(&mut self) {
        HeliosDac_HeliosDac_destructor(self)
    }
}