Loading...
Searching...
No Matches
uwb_dw1000.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2020 Inria
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser
5 * General Public License v2.1. See the file LICENSE in the top level
6 * directory for more details.
7 */
8
20#ifndef UWB_DW1000_H
21#define UWB_DW1000_H
22
23#include <stdint.h>
24
25#include "dw1000/dw1000_dev.h"
26#include "dw1000/dw1000_hal.h"
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
35typedef struct dw1000_dev_cfg dw1000_params_t;
36
40typedef struct {
41 dw1000_dev_instance_t dev;
43
47void uwb_dw1000_init(void);
48
59void uwb_dw1000_set_buffs(dw1000_dev_instance_t* dev, uint8_t* tx_buf,
60 uint8_t* rx_buf);
61
70void uwb_dw1000_setup(dw1000_dev_instance_t* dev, dw1000_params_t* params);
71
81void uwb_dw1000_config_and_start(dw1000_dev_instance_t* dev);
82
89void uwb_dw1000_update_config_from_otp(dw1000_dev_instance_t* dev);
90
91#ifdef __cplusplus
92}
93#endif
94
95#endif /* UWB_DW1000_H */
Device descriptor for the driver.
Definition uwb_dw1000.h:40
dw1000_dev_instance_t dev
dwDevice parent struct
Definition uwb_dw1000.h:41
void uwb_dw1000_init(void)
Sets device linked list to 0, not really needed...
void uwb_dw1000_config_and_start(dw1000_dev_instance_t *dev)
Configure and start the dw1000.
void uwb_dw1000_update_config_from_otp(dw1000_dev_instance_t *dev)
Updates tx_power config from OTP is any.
struct dw1000_dev_cfg dw1000_params_t
Device initialization parameters.
Definition uwb_dw1000.h:35
void uwb_dw1000_set_buffs(dw1000_dev_instance_t *dev, uint8_t *tx_buf, uint8_t *rx_buf)
Sets the tx and rx buffer for the uwb_dev in the dw1000 instance.
void uwb_dw1000_setup(dw1000_dev_instance_t *dev, dw1000_params_t *params)
Setup a dw1000 device.