Skip to content

rtd_acquire.max31865

MAX31865Config

Introduced in: rtd-acquire 0.1.0a1

MAX31865Config(
    reference_resistance_ohms: float,
    wire_count: Literal[2, 3, 4],
    filter_frequency_hz: Literal[50, 60],
    low_fault_threshold_ohms: float | None = None,
    high_fault_threshold_ohms: float | None = None,
)

The reference resistance must be finite and between 350 and 10,000 ohms. Fault thresholds, when supplied, are resistance thresholds in ohms and must satisfy the configuration validation rules.

MAX31865Timing

Introduced in: rtd-acquire 0.1.0a1

MAX31865Timing(
    input_filter_time_constant_seconds: float = 0.001,
)

Read-only calculated properties:

  • bias_settle_seconds
  • post_fault_settle_seconds

MAX31865

Introduced in: rtd-acquire 0.1.0a1

MAX31865(
    spi: SpiDevice,
    config: MAX31865Config,
    *,
    timing: MAX31865Timing | None = None,
    sleep: Callable[[float], None] = time.sleep,
)

read()

measurement = device.read()

Performs one fault-checked one-shot acquisition and returns Measurement.

MAX31865SpiEmulator

Introduced in: rtd-acquire 0.1.0a1

MAX31865SpiEmulator(
    *,
    rtd_code: int,
    fault_status_register: int = 0,
)

Public inspection properties:

  • settings
  • transactions
  • high_threshold_register
  • low_threshold_register
  • last_config_write

The emulator also implements transfer(tx: bytes) -> bytes, satisfying the SPI behavior used by the MAX31865 driver.