lr3 2.0.0.0
|
This file contains API for LR 3 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 | lr3_t |
Click ctx object definition. More... | |
struct | lr3_cfg_t |
Click configuration structure definition. More... | |
struct | lr3_message_t |
struct | lr3_tx_msg_t |
Typedefs | |
typedef void(* | lr3_ind_hdl_t) (uint8_t *cmd, uint8_t *p_load_size, uint8_t *p_load) |
LR3_TYPES Types. | |
Functions | |
void | lr3_cfg_setup (lr3_cfg_t *cfg) |
Config Object Initialization function. | |
LR3_RETVAL | lr3_init (lr3_t *ctx, lr3_cfg_t *cfg) |
Initialization function. | |
uint8_t | lr3_chk_sum (lr3_message_t *cmd) |
Check sum function. | |
int32_t | lr3_generic_read (lr3_t *ctx, char *data_buf, uint16_t max_len) |
Generic read function. | |
void | lr3_generic_write (lr3_t *ctx, char *data_buf, uint16_t len) |
Generic write function. | |
void | lr3_hard_reset (lr3_t *ctx) |
Hardware reset function. | |
void | lr3_wake_up (lr3_t *ctx, uint8_t state) |
Wake Up function. | |
void | lr3_set_ind_handler (lr3_t *ctx, lr3_ind_hdl_t hdl) |
Set indication handler function. | |
uint8_t | lr3_command (lr3_t *ctx, lr3_message_t *msg, lr3_message_t *rsp) |
Command function. | |
uint8_t | lr3_read_message_process (lr3_t *ctx) |
Process function. | |
LR3_RETVAL | lr3_soft_reset (lr3_t *ctx) |
Software reset function. | |
LR3_RETVAL | lr3_factory_reset (lr3_t *ctx) |
Factory reset function. | |
LR3_RETVAL | lr3_write_eeprom (lr3_t *ctx, uint8_t address, uint8_t n_bytes, uint8_t *data_in) |
EEPROM write function. | |
LR3_RETVAL | lr3_read_eeprom (lr3_t *ctx, uint8_t address, uint8_t n_bytes, uint8_t *data_out) |
EEPROM read function. | |
LR3_RETVAL | lr3_get_fw_version (lr3_t *ctx, uint32_t *fw_version) |
Get FW Version function. | |
LR3_RETVAL | lr3_get_serial_no (lr3_t *ctx, uint32_t *serial_no) |
Get Serial Number function. | |
LR3_RETVAL | lr3_enable_pairing (lr3_t *ctx, uint8_t state) |
Enable Pairing function. | |
LR3_RETVAL | lr3_get_network_table_size (lr3_t *ctx) |
Get Network Table Size function. | |
LR3_RETVAL | lr3_get_network_table_row (lr3_t *ctx, uint8_t index, uint8_t *data_out) |
Get Network Table Row function. | |
LR3_RETVAL | lr3_delete_network_table_row (lr3_t *ctx, uint8_t *device_id) |
Delete Network Table Row function. | |
LR3_RETVAL | lr3_delete_all_network_table (lr3_t *ctx) |
Delete All Network Table function. | |
LR3_RETVAL | lr3_tx_message (lr3_t *ctx, lr3_tx_msg_t *tx_msg) |
Radio frame Transmission function. | |
LR3_RETVAL | lr3_get_pairing_request (lr3_t *ctx) |
Get Pairing Request function. | |
LR3_RETVAL | lr3_get_activation_status (lr3_t *ctx, uint8_t *data_out) |
Get Activation Status function. | |
LR3_RETVAL | lr3_check_link_request (lr3_t *ctx, uint8_t power, uint8_t message_num, uint8_t message_th) |
Radio frame Transmission function. | |
LR3_RETVAL | lr3_set_app_key (lr3_t *ctx, uint8_t *app_key) |
Set App Key function. | |
This file contains API for LR 3 Click driver.