Skip to content

Commit 00f8169

Browse files
committed
generated: regenerate definitions
Update definitions from infuse-iot. Signed-off-by: Jordan Yates <jordan@embeint.com>
1 parent 8b1b301 commit 00f8169

2 files changed

Lines changed: 60 additions & 0 deletions

File tree

src/infuse_iot/generated/kv_definitions.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,17 @@ class fixed_location(VLACompatLittleEndianStruct):
228228
]
229229
_pack_ = 1
230230

231+
class broadcast_fixed_indoors(VLACompatLittleEndianStruct):
232+
"""Device is fixed indoors and should broadcast the fact"""
233+
234+
NAME = "BROADCAST_FIXED_INDOORS"
235+
BASE_ID = 11
236+
RANGE = 1
237+
_fields_ = [
238+
("indoors", ctypes.c_uint8),
239+
]
240+
_pack_ = 1
241+
231242
class wifi_ssid(VLACompatLittleEndianStruct):
232243
"""WiFi network name"""
233244

@@ -576,6 +587,7 @@ class secure_storage_reserved(VLACompatLittleEndianStruct):
576587
7: board_target,
577588
8: secondary_remote_public_key,
578589
10: fixed_location,
590+
11: broadcast_fixed_indoors,
579591
20: wifi_ssid,
580592
21: wifi_psk,
581593
22: wifi_channels,

src/infuse_iot/generated/rpc_definitions.py

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,16 @@ class rpc_struct_thread_stats(VLACompatLittleEndianStruct):
244244
_pack_ = 1
245245

246246

247+
class rpc_struct_data_logger_flushed(VLACompatLittleEndianStruct):
248+
"""IPv6 address"""
249+
250+
_fields_ = [
251+
("logger", ctypes.c_uint8),
252+
("num", ctypes.c_uint16),
253+
]
254+
_pack_ = 1
255+
256+
247257
class rpc_enum_bt_le_addr_type(enum.IntEnum):
248258
"""Bluetooth LE address type"""
249259

@@ -279,6 +289,17 @@ class rpc_enum_data_logger(enum.IntEnum):
279289
UDP = 3
280290

281291

292+
class rpc_enum_tdf_data_logger(enum.IntEnum):
293+
"""TDF data Logger identifier"""
294+
295+
FLASH_ONBOARD = 1
296+
FLASH_REMOVABLE = 2
297+
SERIAL = 4
298+
UDP = 8
299+
BT_ADV = 16
300+
BT_PERIPH = 32
301+
302+
282303
class rpc_enum_zperf_data_source(enum.IntEnum):
283304
"""Source for zperf data upload"""
284305

@@ -1039,6 +1060,29 @@ class response(VLACompatLittleEndianStruct):
10391060
_pack_ = 1
10401061

10411062

1063+
class tdf_data_logger_flush(RPCDefinitionBase):
1064+
"""Write an annotation to the device"""
1065+
1066+
NAME = "tdf_data_logger_flush"
1067+
HELP = "Write an annotation to the device"
1068+
DESCRIPTION = "Write an annotation to the device"
1069+
COMMAND_ID = 42
1070+
1071+
class request(VLACompatLittleEndianStruct):
1072+
_fields_ = [
1073+
("loggers", ctypes.c_uint8),
1074+
]
1075+
_pack_ = 1
1076+
1077+
class response(VLACompatLittleEndianStruct):
1078+
_fields_ = [
1079+
("num", ctypes.c_uint8),
1080+
]
1081+
vla_field = ("flushed", 0 * rpc_struct_data_logger_flushed)
1082+
vla_counted_by = "num"
1083+
_pack_ = 1
1084+
1085+
10421086
class bt_connect_infuse(RPCDefinitionBase):
10431087
"""Connect to an Infuse-IoT Bluetooth device"""
10441088

@@ -1371,6 +1415,7 @@ class response(VLACompatLittleEndianStruct):
13711415
coap_download_v2.COMMAND_ID: coap_download_v2,
13721416
file_write_basic.COMMAND_ID: file_write_basic,
13731417
annotate.COMMAND_ID: annotate,
1418+
tdf_data_logger_flush.COMMAND_ID: tdf_data_logger_flush,
13741419
bt_connect_infuse.COMMAND_ID: bt_connect_infuse,
13751420
bt_disconnect.COMMAND_ID: bt_disconnect,
13761421
bt_file_copy_basic.COMMAND_ID: bt_file_copy_basic,
@@ -1406,10 +1451,12 @@ class response(VLACompatLittleEndianStruct):
14061451
"rpc_struct_data_logger_chunk",
14071452
"rpc_struct_public_key_info_256bit",
14081453
"rpc_struct_thread_stats",
1454+
"rpc_struct_data_logger_flushed",
14091455
"rpc_enum_bt_le_addr_type",
14101456
"rpc_enum_file_action",
14111457
"rpc_enum_infuse_bt_characteristic",
14121458
"rpc_enum_data_logger",
1459+
"rpc_enum_tdf_data_logger",
14131460
"rpc_enum_zperf_data_source",
14141461
"rpc_enum_key_id",
14151462
"rpc_enum_key_action",
@@ -1445,6 +1492,7 @@ class response(VLACompatLittleEndianStruct):
14451492
"coap_download_v2",
14461493
"file_write_basic",
14471494
"annotate",
1495+
"tdf_data_logger_flush",
14481496
"bt_connect_infuse",
14491497
"bt_disconnect",
14501498
"bt_file_copy_basic",

0 commit comments

Comments
 (0)