Skip to main content

Module ultrasound

Module ultrasound 

Source
Expand description

Q07 Mode 0x0107 (ultrasound_beam_summary, 64 B) & Mode 0x0105 (raw_RF / baseband_IQ, Schema 208).

Preserves raw transducer channel acquisition, array geometry, element delays, calibration, and derived beam summaries (MI, ISPTA, context-qualified TI, Doppler axial velocity, and positive-carrier IQ Re{(I + iQ) exp(+i(2*pi*fc*t + phi0))}).

Re-exports§

pub use super::ultrasound_codec::*;

Structs§

UltrasoundAcquisitionSpec
Complete Schema 208 acquisition, array geometry, derating, and thermal-context specification.
UltrasoundBeamSummaryRecord
Canonical 64-byte Q07 mode 0x0107 ultrasound beam summary record.
UltrasoundChunkView
Zero-heap borrowed view over verified mode 0x0107 ultrasound beam summary records.

Enums§

RawUltrasoundPayload
Optional linked raw RF or baseband-IQ transducer acquisition channels (mode 0x0105).
UltrasoundRole
Explicit role of an ultrasound entry recorded in Schema 208 key 1 (role).

Constants§

ULTRASOUND_SUMMARY_STRIDE
Frozen wire stride in bytes for mode 0x0107 ultrasound beam summary records.
US_VALID_ALL
US_VALID_AXIAL_VEL
US_VALID_HARMONIC
US_VALID_IQ
US_VALID_ISPTA
US_VALID_MI
US_VALID_PR
Bitmask constants for UltrasoundBeamSummaryRecord::validity_bits (0..=6).
US_VALID_TI

Functions§

demodulate_positive_carrier_iq
Coherent baseband IQ demodulation matching positive-carrier convention over rf_samples.
doppler_axial_velocity_m_s
Signed Doppler axial velocity v_axial = c * f_D / (2 * f_c) (positive toward transducer).
element_roundtrip_delay_s
Round-trip time-of-flight delay (||r_f - r_tx|| + ||r_f - e_k||) / c in seconds.
mechanical_index_derated
Standard derated Mechanical Index MI = p_{r,derated}(MPa) / sqrt(f_c(MHz)).
modulate_positive_carrier_rf
Positive-carrier RF reconstruction from baseband IQ: p_RF(t) = Re{ (I + iQ) * exp(+i * (2*pi*fc*t + phi0)) } = I*cos(th) - Q*sin(th).