uwb 2.0.0.0
|
This file contains API for UWB Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_spi_master.h"
#include "spi_specifics.h"
Go to the source code of this file.
Data Structures | |
struct | uwb_t |
Click ctx object definition. More... | |
struct | uwb_cfg_t |
Click configuration structure definition. More... | |
struct | uwb_dev_t |
Structure for device configuration. More... | |
Functions | |
void | uwb_cfg_setup (uwb_cfg_t *cfg) |
Config Object Initialization function. | |
err_t | uwb_init (uwb_t *ctx, uwb_cfg_t *cfg) |
Initialization function. | |
void | uwb_generic_write (uwb_t *ctx, uint8_t reg_adr, uint8_t *tx_buf, uint16_t buf_len) |
Function for writing data to register. | |
void | uwb_generic_read (uwb_t *ctx, uint8_t reg_adr, uint8_t *rx_buf, uint16_t buf_len) |
Function for reading data from register. | |
void | uwb_set_rst_pin_status (uwb_t *ctx, uint8_t status) |
Function for setting rst pin status. | |
uint8_t | uwb_get_qint_pin_status (uwb_t *ctx) |
Function for getting irq pin status. | |
void | uwb_read_otp (uwb_t *ctx, uint16_t otp_adr, uint8_t *rx_buf) |
Function for reading OTM memory. | |
void | uwb_set_bit (uwb_t *ctx, uint8_t reg_adr, uint16_t bit_num, uint8_t bit_state) |
Function for setting single bit state. | |
uint8_t | uwb_get_bit (uwb_t *ctx, uint8_t reg_adr, uint16_t bit_num) |
Function for getting single bit state. | |
uint16_t | uwb_reg_data_len (uint8_t reg_adr) |
Function for getting length of register data. | |
void | uwb_set_dev_adr_n_network_id (uwb_t *ctx, uint16_t dev_adr, uint16_t net_id) |
Function for setting device address and network ID. | |
uint8_t | uwb_set_data_rate (uwb_t *ctx, uint8_t rate) |
Function for setting data rate. | |
void | uwb_set_pulse_freq (uwb_t *ctx, uint8_t freq) |
Function for setting pulse frequency. | |
void | uwb_set_preamble_len (uwb_t *ctx, uint8_t prealen) |
Function for setting preamble length. | |
void | uwb_set_preable_code (uwb_t *ctx, uint8_t preamble) |
Function for setting preamble code. | |
void | uwb_set_channel (uwb_t *ctx, uint8_t channel) |
Function for setting channel. | |
void | uwb_set_transmit_type (uwb_t *ctx, const uint8_t *t_t) |
Function for setting transmit type mode. | |
void | uwb_get_transmit (uwb_t *ctx, uint8_t *rx_buf, uint16_t len_buf) |
Function for getting transmit data. | |
uint8_t | uwb_get_transmit_len (uwb_t *ctx) |
Function for getting transmit length. | |
void | uwb_set_transmit (uwb_t *ctx, uint8_t *tx_buf, uint16_t len_buf) |
Function for setting transmit data. | |
void | uwb_use_smart_power (uwb_t *ctx, uint8_t smart_power) |
Function for setting smart power option. | |
void | uwb_frame_check (uint8_t fc_val) |
Function for setting frame check option. | |
void | uwb_frame_filter (uwb_t *ctx, uint8_t ff_val) |
Function for setting frame filter option. | |
void | uwb_set_mode (uwb_t *ctx, uint8_t mode) |
Function for setting device working mode. | |
void | uwb_start_transceiver (uwb_t *ctx) |
Function for starting communication of device. | |
uint8_t | uwb_get_transmit_status (uwb_t *ctx) |
Function for getting transmit status. | |
void | uwb_clear_status (uwb_t *ctx) |
Function for clearing status. | |
void | uwb_int_mask_set (uwb_t *ctx) |
Function for setting interrupt mask. | |
void | uwb_tune_config (uwb_t *ctx) |
Function for tuneing configuration for set values. | |
void | uwb_dev_reset (uwb_t *ctx) |
Function for reseting device. | |
void | uwb_enable (uwb_t *ctx) |
Function for enabling device. | |
Variables | |
const uint8_t | UWB_TMODE_LONGDATA_RANGE_LOWPOWER [3] |
const uint8_t | UWB_TMODE_LONGDATA_RANGE_ACCURACY [3] |
const uint8_t | UWB_TMODE_LONGDATA_FAST_LOWPOWER [3] |
const uint8_t | UWB_TMODE_LONGDATA_FAST_ACCURACY [3] |
const uint8_t | UWB_TMODE_SHORTDATA_FAST_LOWPOWER [3] |
const uint8_t | UWB_TMODE_SHORTDATA_FAST_ACCURACY [3] |
This file contains API for UWB Click driver.