Lines Matching +full:convert +full:- +full:channels
5 through the sysfs interface. Since lm-sensors 3.0.0, libsensors is
6 completely chip-independent. It assumes that all the kernel drivers
10 This is a major improvement compared to lm-sensors 2.
22 For this reason, even if we aim at a chip-independent libsensors, it will
37 Up to lm-sensors 3.0.0, libsensors looks for hardware monitoring attributes
38 in the "physical" device directory. Since lm-sensors 3.0.1, attributes found
61 to cause an alarm) is chip-dependent.
69 ----------------
76 -------------------------------------------------------------------------
79 `[0-*]` denotes any positive number starting from 0
80 `[1-*]` denotes any positive number starting from 1
86 Read/write values may be read-only for some chips, depending on the
92 See Documentation/ABI/testing/sysfs-class-hwmon for a complete description
114 `in[0-*]_min`
117 `in[0-*]_lcrit`
120 `in[0-*]_max`
123 `in[0-*]_crit`
126 `in[0-*]_input`
129 `in[0-*]_average`
132 `in[0-*]_lowest`
135 `in[0-*]_highest`
138 `in[0-*]_reset_history`
144 `in[0-*]_label`
147 `in[0-*]_enable`
150 `cpu[0-*]_vid`
156 `in[0-*]_rated_min`
159 `in[0-*]_rated_max`
169 `fan[1-*]_min`
172 `fan[1-*]_max`
175 `fan[1-*]_input`
178 `fan[1-*]_div`
181 `fan[1-*]_pulses`
184 `fan[1-*]_target`
187 `fan[1-*]_label`
190 `fan[1-*]_enable`
200 `pwm[1-*]`
203 `pwm[1-*]_enable`
206 `pwm[1-*]_mode`
207 direct current or pulse-width modulation.
209 `pwm[1-*]_freq`
212 `pwm[1-*]_auto_channels_temp`
213 Select which temperature channels affect this PWM output in
216 `pwm[1-*]_auto_point[1-*]_pwm` / `pwm[1-*]_auto_point[1-*]_temp` / `pwm[1-*]_auto_point[1-*]_temp_h…
219 `temp[1-*]_auto_point[1-*]_pwm` / `temp[1-*]_auto_point[1-*]_temp` / `temp[1-*]_auto_point[1-*]_tem…
223 channels and temperature channels: the PWM values are associated to PWM
224 output channels while the temperature values are associated to temperature
225 channels. In that case, the result is determined by the mapping between
236 `temp[1-*]_type`
239 `temp[1-*]_max`
242 `temp[1-*]_min`
245 `temp[1-*]_max_hyst`
248 `temp[1-*]_min_hyst`
251 `temp[1-*]_input`
254 `temp[1-*]_crit`
258 `temp[1-*]_crit_hyst`
261 `temp[1-*]_emergency`
265 `temp[1-*]_emergency_hyst`
268 `temp[1-*]_lcrit`
272 `temp[1-*]_lcrit_hyst`
275 `temp[1-*]_offset`
279 `temp[1-*]_label`
282 `temp[1-*]_lowest`
285 `temp[1-*]_highest`
288 `temp[1-*]_reset_history`
294 `temp[1-*]_enable`
297 `temp[1-*]_rated_min`
300 `temp[1-*]_rated_max`
309 Celsius. In other words, such temperature channels are handled as voltage
310 channels by the driver.
319 `curr[1-*]_max`
322 `curr[1-*]_min`
325 `curr[1-*]_lcrit`
328 `curr[1-*]_crit`
331 `curr[1-*]_input`
334 `curr[1-*]_average`
337 `curr[1-*]_lowest`
340 `curr[1-*]_highest`
343 `curr[1-*]_reset_history`
351 `curr[1-*]_enable`
354 `curr[1-*]_rated_min`
357 `curr[1-*]_rated_max`
366 `power[1-*]_average`
369 `power[1-*]_average_interval`
372 `power[1-*]_average_interval_max`
375 `power[1-*]_average_interval_min`
378 `power[1-*]_average_highest`
381 `power[1-*]_average_lowest`
384 `power[1-*]_average_max`
385 A poll notification is sent to `power[1-*]_average` when
388 `power[1-*]_average_min`
389 A poll notification is sent to `power[1-*]_average` when
392 `power[1-*]_input`
395 `power[1-*]_input_highest`
398 `power[1-*]_input_lowest`
401 `power[1-*]_reset_history`
405 `power[1-*]_accuracy`
408 `power[1-*]_cap`
412 `power[1-*]_cap_hyst`
415 `power[1-*]_cap_max`
418 `power[1-*]_cap_min`
421 `power[1-*]_max`
424 `power[1-*]_crit`
436 `power[1-*]_enable`
440 -ENODATA.
442 - 1: Enable
443 - 0: Disable
447 `power[1-*]_rated_min`
454 `power[1-*]_rated_max`
467 `energy[1-*]_input`
474 `energy[1-*]_enable`
478 -ENODATA.
480 - 1: Enable
481 - 0: Disable
489 `humidity[1-*]_input`
492 `humidity[1-*]_enable`
495 `humidity[1-*]_rated_min`
498 `humidity[1-*]_rated_max`
508 Usually a given chip will either use channel-related alarms, or
509 limit-related alarms, not both. The driver should just reflect the hardware
512 +-------------------------------+-----------------------+
513 | **`in[0-*]_alarm`, | Channel alarm |
514 | `curr[1-*]_alarm`, | |
515 | `power[1-*]_alarm`, | - 0: no alarm |
516 | `fan[1-*]_alarm`, | - 1: alarm |
517 | `temp[1-*]_alarm`** | |
519 +-------------------------------+-----------------------+
523 +-------------------------------+-----------------------+
524 | **`in[0-*]_min_alarm`, | Limit alarm |
525 | `in[0-*]_max_alarm`, | |
526 | `in[0-*]_lcrit_alarm`, | - 0: no alarm |
527 | `in[0-*]_crit_alarm`, | - 1: alarm |
528 | `curr[1-*]_min_alarm`, | |
529 | `curr[1-*]_max_alarm`, | RO |
530 | `curr[1-*]_lcrit_alarm`, | |
531 | `curr[1-*]_crit_alarm`, | |
532 | `power[1-*]_cap_alarm`, | |
533 | `power[1-*]_max_alarm`, | |
534 | `power[1-*]_crit_alarm`, | |
535 | `fan[1-*]_min_alarm`, | |
536 | `fan[1-*]_max_alarm`, | |
537 | `temp[1-*]_min_alarm`, | |
538 | `temp[1-*]_max_alarm`, | |
539 | `temp[1-*]_lcrit_alarm`, | |
540 | `temp[1-*]_crit_alarm`, | |
541 | `temp[1-*]_emergency_alarm`** | |
542 +-------------------------------+-----------------------+
549 `fan[1-*]_fault` / `temp[1-*]_fault`
557 `in[0-*]_beep`, `curr[1-*]_beep`, `fan[1-*]_beep`, `temp[1-*]_beep`,
560 In theory, a chip could provide per-limit beep masking, but no such chip
563 Old drivers provided a different, non-standard interface to alarms and
578 `intrusion[0-*]_alarm`
581 `intrusion[0-*]_beep`
591 +--------------+---------------------------------------------------------------+
595 +--------------+---------------------------------------------------------------+
604 +--------------+---------------------------------------------------------------+
607 -------------------------------------
610 convert the input to a number, there are 2 ways todo this depending whether
637 -EINVAL should be returned.
639 Example1, temp1_max, register is a signed 8 bit value (-128 - 127 degrees)::
642 v = clamp_val(v, -128, 127);
654 return -EINVAL;