summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2005-01-25 21:36:28 +0000
committerMarcel Holtmann <marcel@holtmann.org>2005-01-25 21:36:28 +0000
commit1e2dec5679c175fc52d2e19ebe06b9e1a7b05461 (patch)
tree8a895d580e2356761afdd43a5646eb797b4ccea5 /include
parent654f832d98530b05dc7ffaefff5950a32de76b3c (diff)
Add hci_read_clock() function
Diffstat (limited to 'include')
-rw-r--r--include/hci.h14
-rw-r--r--include/hci_lib.h1
2 files changed, 15 insertions, 0 deletions
diff --git a/include/hci.h b/include/hci.h
index a5435cd1..640e22da 100644
--- a/include/hci.h
+++ b/include/hci.h
@@ -821,6 +821,20 @@ typedef struct {
} __attribute__ ((packed)) read_afh_map_rp;
#define READ_AFH_MAP_RP_SIZE 14
+#define OCF_READ_CLOCK 0x0007
+typedef struct {
+ uint16_t handle;
+ uint8_t which_clock;
+} __attribute__ ((packed)) read_clock_cp;
+#define READ_CLOCK_CP_SIZE 3
+typedef struct {
+ uint8_t status;
+ uint16_t handle;
+ uint32_t clock;
+ uint16_t accuracy;
+} __attribute__ ((packed)) read_clock_rp;
+#define READ_CLOCK_RP_SIZE 9
+
/* Testing commands */
#define OGF_TESTING_CMD 0x3e
diff --git a/include/hci_lib.h b/include/hci_lib.h
index f6259f51..ed7ad291 100644
--- a/include/hci_lib.h
+++ b/include/hci_lib.h
@@ -96,6 +96,7 @@ int hci_set_afh_classification(int dd, uint8_t *map, int to);
int hci_read_link_quality(int dd, uint16_t handle, uint8_t *link_quality, int to);
int hci_read_rssi(int dd, uint16_t handle, int8_t *rssi, int to);
int hci_read_afh_map(int dd, uint16_t handle, uint8_t *mode, uint8_t *map, int to);
+int hci_read_clock(int dd, uint16_t handle, uint8_t which, uint32_t *clock, uint16_t *accuracy, int to);
int hci_local_name(int dd, int len, char *name, int to);
int hci_remote_name(int dd, const bdaddr_t *bdaddr, int len, char *name, int to);