forked from br101/libdeca
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsync.h
More file actions
28 lines (21 loc) · 638 Bytes
/
Copy pathsync.h
File metadata and controls
28 lines (21 loc) · 638 Bytes
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
/*
* libdeca - UWB Library for Qorvo/Decawave DW3000
*
* Copyright (C) 2016 - 2024 Bruno Randolf (br@einfach.org)
*
* This source code is licensed under the GNU Lesser General Public License,
* Version 3. See the file LICENSE.txt for more details.
*/
#ifndef SYNC_H
#define SYNC_H
#include <stdbool.h>
#include <stdint.h>
#include "dwmac.h"
#define SYNC_MSG 0x10
typedef void (*sync_cb_t)(uint64_t src, uint32_t seq, uint64_t tx_ts,
uint64_t rx_ts, float skew);
bool sync_send_short(void);
bool sync_send_long(uint64_t src);
void sync_handle_msg(const struct rxbuf* rx);
void sync_set_observer(sync_cb_t cb);
#endif