We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f73f939 commit d780c32Copy full SHA for d780c32
driver/src/ps2000a.rs
@@ -434,4 +434,22 @@ impl PicoDriver for PS2000ADriver {
434
max_size,
435
}, "sig_gen_arbitrary_min_max_values")
436
}
437
+
438
+ fn sig_gen_frequency_to_phase(
439
+ &self,
440
+ handle: i16,
441
+ frequency: f64,
442
+ index_mode: PicoIndexMode,
443
+ buffer_length: u32,
444
+ ) -> PicoResult<u32> {
445
+ let mut phase: u32 = 0;
446
+ PicoStatus::from(unsafe {
447
+ self.bindings.ps2000aSigGenFrequencyToPhase(
448
+ handle,
449
+ frequency,
450
+ index_mode as u32,
451
+ buffer_length,
452
+ &mut phase,
453
+ )}).to_result(phase, "sig_gen_arbitrary_min_max_values")
454
+ }
455
0 commit comments