uwb 2.0.0.0
|
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. | |
void uwb_cfg_setup | ( | uwb_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
This function initializes click configuration structure to init state.
void uwb_clear_status | ( | uwb_t * | ctx | ) |
Function for clearing status.
ctx | Click object. |
This function clear status.
void uwb_dev_reset | ( | uwb_t * | ctx | ) |
Function for reseting device.
ctx | Click object. |
This function reset device.
void uwb_enable | ( | uwb_t * | ctx | ) |
Function for enabling device.
ctx | Click object. |
This function enables device.
void uwb_frame_check | ( | uint8_t | fc_val | ) |
Function for setting frame check option.
ctx | Click object. |
fc_val | Frame check data. |
This function set frame check option.
void uwb_frame_filter | ( | uwb_t * | ctx, |
uint8_t | ff_val ) |
Function for setting frame filter option.
ctx | Click object. |
ff_val | Frame filter data. |
This function set frame filter option.
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.
ctx | Click object. |
reg_adr | Register address. |
rx_buf | Receive buffer. |
buf_len | Receive buffer length. |
This function read data from register.
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.
ctx | Click object. |
reg_adr | Register address. |
tx_buf | Transmit buffer. |
buf_len | Transmit buffer length. |
This function write data to register.
uint8_t uwb_get_bit | ( | uwb_t * | ctx, |
uint8_t | reg_adr, | ||
uint16_t | bit_num ) |
Function for getting single bit state.
ctx | Click object. |
reg_adr | Register address of bit. |
bit_num | Bit number. |
This function
uint8_t uwb_get_qint_pin_status | ( | uwb_t * | ctx | ) |
Function for getting irq pin status.
ctx | Click object. |
This function gets irq pin status.
void uwb_get_transmit | ( | uwb_t * | ctx, |
uint8_t * | rx_buf, | ||
uint16_t | len_buf ) |
Function for getting transmit data.
ctx | Click object. |
rx_buf | Receive buffer. |
len_buf | Transmit data length. |
This function get transmit data.
uint8_t uwb_get_transmit_len | ( | uwb_t * | ctx | ) |
Function for getting transmit length.
ctx | Click object. |
This function get transmit length.
uint8_t uwb_get_transmit_status | ( | uwb_t * | ctx | ) |
Function for getting transmit status.
ctx | Click object. |
This function get transmit status.
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
This function initializes all necessary pins and peripherals used for this click.
void uwb_int_mask_set | ( | uwb_t * | ctx | ) |
Function for setting interrupt mask.
ctx | Click object. |
This function set interrupt mask.
void uwb_read_otp | ( | uwb_t * | ctx, |
uint16_t | otp_adr, | ||
uint8_t * | rx_buf ) |
Function for reading OTM memory.
ctx | Click object. |
otp_adr | Otp register address. |
rx_buf | Receive data buffer. |
This function read OTM memory.
uint16_t uwb_reg_data_len | ( | uint8_t | reg_adr | ) |
Function for getting length of register data.
ctx | Click object. |
reg_adr | Register address. |
This function get length of register data
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.
ctx | Click object. |
reg_adr | Register address of bit. |
bit_num | Bit number. |
bit_state | Bit state. |
This function set single bit state.
void uwb_set_channel | ( | uwb_t * | ctx, |
uint8_t | channel ) |
Function for setting channel.
ctx | Click object. |
channel | Device channel. |
This function set channel.
uint8_t uwb_set_data_rate | ( | uwb_t * | ctx, |
uint8_t | rate ) |
Function for setting data rate.
ctx | Click object. |
rate | Data rate. |
This function set data rate.
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.
ctx | Click object. |
dev_adr | Device address. |
net_id | Network ID. |
This function set device address and network ID
void uwb_set_mode | ( | uwb_t * | ctx, |
uint8_t | mode ) |
Function for setting device working mode.
ctx | Click object. |
mode | Device working mode. |
This function set device working mode.
void uwb_set_preable_code | ( | uwb_t * | ctx, |
uint8_t | preamble ) |
Function for setting preamble code.
ctx | Click object. |
preamble | Device preamble code. |
This function set preamble code.
void uwb_set_preamble_len | ( | uwb_t * | ctx, |
uint8_t | prealen ) |
Function for setting preamble length.
ctx | Click object. |
prealen | Device preamble length. |
This function set preamble length.
void uwb_set_pulse_freq | ( | uwb_t * | ctx, |
uint8_t | freq ) |
Function for setting pulse frequency.
ctx | Click object. |
freq | Device pulse frequency. |
This function set pulse frequency.
void uwb_set_rst_pin_status | ( | uwb_t * | ctx, |
uint8_t | status ) |
Function for setting rst pin status.
ctx | Click object. |
status | Pin status. |
This function sets rst pin status.
void uwb_set_transmit | ( | uwb_t * | ctx, |
uint8_t * | tx_buf, | ||
uint16_t | len_buf ) |
Function for setting transmit data.
ctx | Click object. |
tx_buf | Transmit buffer. |
len_buf | Transmit data length. |
This function set transmit data.
void uwb_set_transmit_type | ( | uwb_t * | ctx, |
const uint8_t * | t_t ) |
Function for setting transmit type mode.
ctx | Click object. |
t_t | Transmit type mode. |
This function set transmit type mode.
void uwb_start_transceiver | ( | uwb_t * | ctx | ) |
Function for starting communication of device.
ctx | Click object. |
This function start communication of device.
void uwb_tune_config | ( | uwb_t * | ctx | ) |
Function for tuneing configuration for set values.
ctx | Click object. |
This function tune configuration for set values.
void uwb_use_smart_power | ( | uwb_t * | ctx, |
uint8_t | smart_power ) |
Function for setting smart power option.
ctx | Click object. |
smart_power | Smart power data. |
This function set smart power option.