File: temperature_resolution.3so

package info (click to toggle)
owfs 3.2p3+dfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 8,688 kB
  • sloc: ansic: 65,085; pascal: 5,957; tcl: 2,688; makefile: 1,357; python: 1,114; sh: 891; cs: 623; php: 600; perl: 587; java: 404; ruby: 289; cpp: 105; asm: 102; xml: 53
file content (17 lines) | stat: -rw-r--r-- 767 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
.SH TEMPERATURE RESOLUTION DEFAULT VALUE
.SS tempres
.I read-write, integer
.br
The device employs a non-volatile memory to store the default temperature resolution (9, 10, 11 or 12 bits) to be applied after power-up. This is useful if you use
.I simultaneous
temperature conversions. Reading this node gives you the value stored in the non-volatile memory. Writing sets a new power-on resolution value.
.PP
As a side effect, reading this node resets the temperature resolution used by
.I simultaneous
temperature conversions to its power-on value. It also affects the resolution value used by
.B latesttemp,
to scale the latest conversion value, so make sure to re-sample the temperature before accessing
.B latesttemp
after writing or reading the
.B tempres
value.