Home
last modified time | relevance | path

Searched +full:sensor +full:- +full:gain (Results 1 – 10 of 10) sorted by relevance

/openbmc/phosphor-hwmon/
H A Dsensor.cpp3 #include "sensor.hpp"
11 #include <phosphor-logging/elog-errors.hpp>
13 #include <xyz/openbmc_project/Sensor/Device/error.hpp>
24 namespace sensor namespace
31 Sensor::Sensor(const SensorSet::key_type& sensor, in Sensor() argument
34 _sensor(sensor), _ioAccess(ioAccess), _devPath(devPath), _scale(0), in Sensor()
37 auto chip = env::getEnv("GPIOCHIP", sensor); in Sensor()
38 auto access = env::getEnv("GPIO", sensor); in Sensor()
50 auto gain = env::getEnv("GAIN", sensor); in Sensor() local
51 if (!gain.empty()) in Sensor()
[all …]
H A Dsensor.hpp17 namespace sensor namespace
24 double gain = 1.0; member
29 /** @brief Custom exception for async sensor reading timeout
35 "Async sensor read timed out") in AsyncSensorReadTimeOut()
39 /** @class Sensor
40 * @brief Sensor object based on a SensorSet container's key type
41 * @details Sensor object to create and modify an associated device's sensor
42 * attributes based on the key type of each sensor in the set provided by the
45 class Sensor class
48 Sensor() = delete;
[all …]
/openbmc/phosphor-hwmon/test/
H A Dsensor_unittest.cpp4 #include "sensor.hpp"
59 /* Always calls GAIN and OFFSET, can use ON_CALL instead of EXPECT_CALL */ in TEST_F()
65 auto sensor = in TEST_F() local
66 std::make_unique<sensor::Sensor>(sensorKey, hwmonio_mock.get(), path); in TEST_F()
67 EXPECT_FALSE(sensor == nullptr); in TEST_F()
96 /* Always calls GAIN and OFFSET, can use ON_CALL instead of EXPECT_CALL */ in TEST_F()
102 auto sensor = in TEST_F() local
103 std::make_unique<sensor::Sensor>(sensorKey, hwmonio_mock.get(), path); in TEST_F()
104 EXPECT_FALSE(sensor == nullptr); in TEST_F()
109 /* Construct a sensor that has a gain and offset, then verify they are used in TEST_F()
[all …]
/openbmc/phosphor-pid-control/examples/
H A DREADME1 # Sensor Config
3 This program is only meant to control fans given thermal sensor readings.
5 All sensors in phosphor-dbus-interfaces for OpenBMC use Sensor.Value as their
6 accessor. This provides read-only access to information. The goal of the
9 access. If a writePath for a sensor is a dbus path, then the system will need
13 The min/max specified are to range a writePercent to the sensor. The current
17 The only requirement for a sensor is that it isn't writeonly. Only fans are
18 expected to have a writePath set, and in this current version non-fan sensors
21 The sensor names are unique across all zones.
25 "name": "fan1", /* Name of the sensor. */
[all …]
/openbmc/docs/architecture/
H A Dsensor-architecture.md1 # Sensor Support for OpenBMC using phosphor-hwmon
3 This document describes sensors provided by [phosphor-hwmon][15]. An alternate
4 method is to use the suite of applications provided by [dbus-sensors][16]. While
5 the configuration details between the two methods differ, the D-Bus
9 traditional Linux HWMon sensor format. The architecture of OpenBMC sensors is to
10 map sensors to [D-Bus][1] objects. The D-Bus object will broadcast the
11 `PropertiesChanged` signal when either the sensor or threshold value changes. It
15 ## D-Bus
18 Service xyz.openbmc_project.Hwmon-<hash>.Hwmon1
20 Interfaces xyz.openbmc_project.Sensor.[*], others (see below)
[all …]
/openbmc/qemu/hw/sensor/
H A Dlsm303dlhc_mag.c9 * SPDX-License-Identifier: GPL-2.0-or-later
13 * The I2C address associated with this device is set on the command-line when
16 * Get and set functions for 'mag-x', 'mag-y' and 'mag-z' assume that
76 * Conversion factor from Gauss to sensor values for each GN gain setting,
88 int gm = extract32(s->crb, 5, 3); in lsm303dlhc_mag_get_x()
90 /* Convert to uT where 1000 = 1 uT. Conversion factor depends on gain. */ in lsm303dlhc_mag_get_x()
91 int64_t value = muldiv64(s->x, 100000, xy_gain[gm]); in lsm303dlhc_mag_get_x()
99 int gm = extract32(s->crb, 5, 3); in lsm303dlhc_mag_get_y()
101 /* Convert to uT where 1000 = 1 uT. Conversion factor depends on gain. */ in lsm303dlhc_mag_get_y()
102 int64_t value = muldiv64(s->y, 100000, xy_gain[gm]); in lsm303dlhc_mag_get_y()
[all …]
/openbmc/bmcweb/redfish-core/schema/oem/openbmc/json-schema/
H A DOpenBMCManager.v1_0_0.json2 …"$id": "https://github.com/openbmc/bmcweb/tree/master/redfish-core/schema/oem/openbmc/json-schema/…
3 "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema-v1.json",
11 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
87 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
102 "description": "Feed forward gain coefficient for the PID.",
103 "longDescription": "Feed forward gain coefficient for the PID.",
201 "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/count"
211 "[A-Za-z0-9_.:]+": {
214 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
235 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
[all …]
/openbmc/phosphor-pid-control/
H A Dconfigure.md1 # How to Configure Phosphor-pid-control
5 They can come either from a dedicated config file or via D-Bus from e.g.
6 `entity-manager`.
8 ## D-Bus Configuration
10 If config file does not exist the configuration is obtained from a set of D-Bus
11 interfaces. When using `entity-manager` to provide them refer to `Pid`,
13 [schemas](https://github.com/openbmc/entity-manager/tree/master/schemas). The
19 ### --strict-failsafe-pwm
26 ### --offline-failsafe-pwm
35 using `--conf` command line option.
[all …]
/openbmc/bmcweb/redfish-core/schema/oem/openbmc/csdl/
H A DOpenBMCManager_v1.xml1 <?xml version="1.0" encoding="UTF-8"?>
2 <edmx:Edmx xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx" Version="4.0">
3 …<edmx:Reference Uri="http://docs.oasis-open.org/odata/odata/v4.0/errata03/csd01/complete/vocabular…
22 <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="OpenBMCManager">
32 <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="OpenBMCManager.v1_0_0">
76 <PropertyValue Property="Pattern" String="[A-Za-z0-9_.:]+"/>
89 <PropertyValue Property="Pattern" String="[A-Za-z0-9_.:]+"/>
102 <PropertyValue Property="Pattern" String="[A-Za-z0-9_.:]+"/>
115 <PropertyValue Property="Pattern" String="[A-Za-z0-9_.:]+"/>
126 <Annotation Term="OData.Description" String="Feed forward gain coefficient for the PID."/>
[all …]
/openbmc/ipmitool/lib/
H A Dipmi_sunoem.c22 * PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED.
113 lprintf(LOG_NOTICE, " - cli [<command string> ...]"); in ipmi_sunoem_usage()
116 lprintf(LOG_NOTICE, " - led get [<sensor_id>] [ledtype]"); in ipmi_sunoem_usage()
117 lprintf(LOG_NOTICE, " - Read status of LED found in Generic Device Locator."); in ipmi_sunoem_usage()
119 lprintf(LOG_NOTICE, " - led set <sensor_id> <led_mode> [led_type]"); in ipmi_sunoem_usage()
120 lprintf(LOG_NOTICE, " - Set mode of LED found in Generic Device Locator."); in ipmi_sunoem_usage()
121 …lprintf(LOG_NOTICE, " - You can pass 'all' as the <senso_rid> to change the LED mode of all s… in ipmi_sunoem_usage()
122 lprintf(LOG_NOTICE, " - Use 'sdr list generic' command to get list of Generic"); in ipmi_sunoem_usage()
123 lprintf(LOG_NOTICE, " - Devices that are controllable LEDs."); in ipmi_sunoem_usage()
125 lprintf(LOG_NOTICE, " - Required SIS LED Mode:"); in ipmi_sunoem_usage()
[all …]