Skip to content

temperature

frog.hardware.plugins.temperature ¤

This module contains interfaces for temperature-related hardware.

Classes¤

Functions¤

get_temperature_controller_instance(name) ¤

Get the current temperature controller instance specified by name or None.

Parameters:

Name Type Description Default
name str

The name of the temperature controller instance (e.g. "hot_bb")

required
Source code in frog/hardware/plugins/temperature/__init__.py
12
13
14
15
16
17
18
def get_temperature_controller_instance(name: str) -> TemperatureControllerBase | None:
    """Get the current temperature controller instance specified by name or None.

    Args:
        name: The name of the temperature controller instance (e.g. "hot_bb")
    """
    return get_device_instance(TemperatureControllerBase, name)

get_temperature_monitor_instance() ¤

Get the current temperature monitor device or None.

Source code in frog/hardware/plugins/temperature/__init__.py
21
22
23
def get_temperature_monitor_instance() -> TemperatureMonitorBase | None:
    """Get the current temperature monitor device or None."""
    return get_device_instance(TemperatureMonitorBase)