From 17926da6e8b830c444bc22b90b63611562f0630e Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Sat, 28 Jun 2014 17:51:35 +0300 Subject: [PATCH] lib/mgmt: Add defines for Get Clock Information --- lib/mgmt.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/mgmt.h b/lib/mgmt.h index bab0f9995..2d3adfeb9 100644 --- a/lib/mgmt.h +++ b/lib/mgmt.h @@ -376,6 +376,17 @@ struct mgmt_rp_get_conn_info { int8_t max_tx_power; } __packed; +#define MGMT_OP_GET_CLOCK_INFO 0x0033 +struct mgmt_cp_get_clock_info { + struct mgmt_addr_info addr; +} __packed; +struct mgmt_rp_get_clock_info { + struct mgmt_addr_info addr; + uint32_t local_clock; + uint32_t piconet_clock; + uint16_t accuracy; +} __packed; + #define MGMT_EV_CMD_COMPLETE 0x0001 struct mgmt_ev_cmd_complete { uint16_t opcode; -- 2.47.3