Skip to main content

Crate touchstone

Crate touchstone 

Source
Expand description

§Touchstone

A Rust library for parsing, manipulating, and plotting Touchstone (.sNp) files containing S-parameter data for RF and microwave networks.

§Examples

use touchstone::Network;

let net = Network::new("files/ntwk1.s2p").unwrap();
assert_eq!(net.rank, 2);

Modules§

cli
Command-line interface helpers for the touchstone binary.

Structs§

ABCDMatrix
Stable two-port ABCD transmission-parameter matrix.
Complex
Stable complex number representation used by public matrix accessors.
FrequencyDB
S-parameter data at a single frequency in Decibel/Angle format.
FrequencyMA
S-parameter data at a single frequency in Magnitude/Angle format.
FrequencyRI
S-parameter data at a single frequency in Real/Imaginary format.
Network
A network parsed from a Touchstone (.sNp) file.
NetworkBuilder
Builder for generated S-parameter networks.
NetworkPoint
Stable network data for one frequency point.
ParameterMatrix
Stable admittance- or impedance-parameter matrix for one frequency point.
SMatrix
Stable S-parameter matrix for one frequency point.
TouchstoneErrorContext
Source location attached to a Touchstone parse error.

Enums§

Extrapolation
Policy used when sampling outside the parsed frequency range.
Interpolation
Interpolation algorithm used when sampling S-parameter data between parsed frequencies.
ReferenceImpedance
Reference impedance metadata for a Touchstone network.
TouchstoneError
Error returned when Touchstone data cannot be read or parsed.
TouchstoneWarning
Non-fatal condition reported while parsing Touchstone data.