forked from BrewBlox/brewblox-proto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTempSensorOneWire.proto
37 lines (32 loc) · 960 Bytes
/
TempSensorOneWire.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
syntax = "proto3";
import "brewblox.proto";
import "nanopb.proto";
package blox.TempSensorOneWire;
message Block {
option (brewblox.msg).objtype = TempSensorOneWire;
option (brewblox.msg).impl = TempSensorInterface;
option (brewblox.msg).impl = OneWireDeviceInterface;
sint32 value = 1 [
(brewblox.field).logged = true,
(brewblox.field).unit = Celsius,
(brewblox.field).scale = 4096,
(nanopb).int_size = IS_32,
(brewblox.field).readonly = true
];
sint32 offset = 3 [
(brewblox.field).unit = DeltaCelsius,
(brewblox.field).scale = 4096,
(nanopb).int_size = IS_32
];
fixed64 address = 4 [ (brewblox.field).hexed = true ];
uint32 oneWireBusId = 5 [
(brewblox.field).objtype = OneWireBus,
(nanopb).int_size = IS_16,
(brewblox.field).readonly = true
];
repeated uint32 strippedFields = 99 [
(brewblox.field).readonly = true,
(nanopb).int_size = IS_16,
(nanopb).max_count = 1
];
}