lr4 2.0.0.0
|
This file contains API for LR 4 Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_uart.h"
Go to the source code of this file.
Data Structures | |
struct | lr4_t |
Click ctx object definition. More... | |
struct | lr4_cfg_t |
Click configuration structure definition. More... | |
struct | lr4_message_t |
struct | lr4_tx_msg_t |
Typedefs | |
typedef void(* | lr4_ind_hdl_t) (uint8_t *cmd, uint8_t *p_load_size, uint8_t *p_load) |
LR4_TYPES Types. | |
Functions | |
void | lr4_cfg_setup (lr4_cfg_t *cfg) |
Config Object Initialization function. | |
LR4_RETVAL | lr4_init (lr4_t *ctx, lr4_cfg_t *cfg) |
Initialization function. | |
int32_t | lr4_generic_read (lr4_t *ctx, char *data_buf, uint16_t max_len) |
Generic read function. | |
void | lr4_generic_write (lr4_t *ctx, char *data_buf, uint16_t len) |
Generic write function. | |
void | lr4_hard_reset (lr4_t *ctx) |
Hardware reset function. | |
void | lr4_wake_up (lr4_t *ctx, uint8_t state) |
Wake Up function. | |
void | lr4_set_ind_handler (lr4_t *ctx, lr4_ind_hdl_t hdl) |
Set indication handler function. | |
uint8_t | lr4_command (lr4_t *ctx, lr4_message_t *msg, lr4_message_t *rsp) |
Command function. | |
uint8_t | lr4_read_message_process (lr4_t *ctx) |
Process function. | |
LR4_RETVAL | lr4_soft_reset (lr4_t *ctx) |
Software reset function. | |
LR4_RETVAL | lr4_factory_reset (lr4_t *ctx) |
Factory reset function. | |
LR4_RETVAL | lr4_write_eeprom (lr4_t *ctx, uint8_t address, uint8_t n_bytes, uint8_t *data_in) |
EEPROM write function. | |
LR4_RETVAL | lr4_read_eeprom (lr4_t *ctx, uint8_t address, uint8_t n_bytes, uint8_t *data_out) |
EEPROM read function. | |
LR4_RETVAL | lr4_get_fw_version (lr4_t *ctx, uint32_t *fw_version) |
Get FW Version function. | |
LR4_RETVAL | lr4_get_serial_no (lr4_t *ctx, uint32_t *serial_no) |
Get Serial Number function. | |
LR4_RETVAL | lr4_get_dev_eui (lr4_t *ctx, uint8_t *dev_eui) |
Get DevEUI function. | |
LR4_RETVAL | lr4_join_network (lr4_t *ctx, uint8_t mode) |
Join Network function. | |
LR4_RETVAL | lr4_get_status (lr4_t *ctx, uint8_t status_mode) |
Get Status function. | |
LR4_RETVAL | lr4_set_key (lr4_t *ctx, uint8_t *key_data, uint8_t key_mode) |
Set Key function. | |
LR4_RETVAL | lr4_tx_message (lr4_t *ctx, lr4_tx_msg_t *tx_msg) |
Radio frame Transmission function. | |
LR4_RETVAL | lr4_set_next_tx_data_rate (lr4_t *ctx, uint8_t data_rate) |
Set Next Data Rate function. | |
LR4_RETVAL | lr4_set_battery_level (lr4_t *ctx, uint8_t battery_level) |
Set Battery Level function. | |
LR4_RETVAL | lr4_get_battery_level (lr4_t *ctx) |
Get Battery Level function. | |
LR4_RETVAL | lr4_set_counter (lr4_t *ctx, uint32_t cnt, uint8_t cnt_mode) |
Set Counter function. | |
LR4_RETVAL | lr4_get_counter (lr4_t *ctx, uint32_t *cnt, uint8_t cnt_mode) |
Get Counter function. | |
LR4_RETVAL | lr4_set_channel (lr4_t *ctx, uint8_t index, uint32_t freq, uint8_t data_rate_range, uint8_t status) |
Set Channel function. | |
uint8_t | lr4_chk_sum (lr4_message_t *cmd) |
Check sum function. | |
This file contains API for LR 4 Click driver.