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
//! This module provides signal generators and signal generation functionality.
//!
//! The main public types are:
//! - [`SourceDescriptor`]: Describes different signal sources (sine, noise, sweep, etc.)
//! - [`SiggenCommand`]: Commands to control signal generation
//! - [`SweepSettings`] and [`SweepType`]: Configuration for sweep signals
//!
//! # Examples
//!
//! ## Create a white noise source descriptor
//!
//! ```
//! use lasprs::siggen::SourceDescriptor;
//!
//! # fn main() -> Result<(), Box<dyn std::error::Error>> {
//! // Create a white noise source descriptor with no interruption
//! let noise = SourceDescriptor::newWhiteNoise(None)?;
//! # Ok(())
//! # }
//! ```
//!
//! ## Create a sine wave source descriptor
//!
//! ```
//! use lasprs::siggen::SourceDescriptor;
//! use lasprs::Positive;
//!
//! # fn main() -> Result<(), Box<dyn std::error::Error>> {
//! // Create a sine wave at 1000 Hz
//! let frequency = Positive::new(1000.0)?;
//! let sine = SourceDescriptor::Sine { frequency };
//! # Ok(())
//! # }
//! ```
pub use *;
pub use Siggen;
pub use SiggenCommand;
pub use *;
pub use ;