Loading...
Searching...
No Matches
uwb_dw1000.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2020 Inria
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
19
20#include <stdint.h>
21
22#include "dw1000/dw1000_dev.h"
23#include "dw1000/dw1000_hal.h"
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
32typedef struct dw1000_dev_cfg dw1000_params_t;
33
37typedef struct {
38 dw1000_dev_instance_t dev;
40
44void uwb_dw1000_init(void);
45
56void uwb_dw1000_set_buffs(dw1000_dev_instance_t* dev, uint8_t* tx_buf,
57 uint8_t* rx_buf);
58
67void uwb_dw1000_setup(dw1000_dev_instance_t* dev, dw1000_params_t* params);
68
78void uwb_dw1000_config_and_start(dw1000_dev_instance_t* dev);
79
86void uwb_dw1000_update_config_from_otp(dw1000_dev_instance_t* dev);
87
88#ifdef __cplusplus
89}
90#endif
Device descriptor for the driver.
Definition uwb_dw1000.h:37
dw1000_dev_instance_t dev
dwDevice parent struct
Definition uwb_dw1000.h:38
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:32
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.