lr 2.1.0.0
|
This file contains API for LR 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 | lr_buffers_t |
Click buffers object definition. More... | |
struct | lr_timer_t |
Timer Flags and Counter object definition. More... | |
struct | lr_procces_flags_t |
Process Flags object definition. More... | |
struct | lr_response_t |
Response object definition. More... | |
struct | lr_mac_t |
Mac object definition. More... | |
struct | lr_t |
LR Click context object. More... | |
struct | lr_cfg_t |
LR Click configuration object. More... | |
Macros | |
#define | LR_CMD_SYS_GET_VER "sys get ver" |
LR Click Commands. | |
#define | LR_CMD_MAC_PAUSE "mac pause" |
#define | LR_CMD_RADIO_SET_WDT "radio set wdt 0" |
#define | LR_ARG_0 "0" |
#define | LR_JM_OTAA "otaa" |
LR Join mode. | |
#define | LR_JM_ABP "abp" |
#define | LR_PL_CNF "cnf " |
LR Payload. | |
#define | LR_PL_UNCNF "uncnf " |
#define | LR_INVALID_PARAM 1 |
LR Errors. | |
#define | LR_NOT_JOINED 2 |
#define | LR_NO_FREE_CH 3 |
#define | LR_SILENT 4 |
#define | LR_ERR_REJOIN_NEEDED 5 |
#define | LR_BUSY 6 |
#define | LR_MAC_PAUSED 7 |
#define | LR_INVALID_PAR_DATA_LEN 8 |
#define | LR_KEYS_NOT_INIT 9 |
#define | LR_MAC_ERR 10 |
#define | LR_MAC_RX 12 |
#define | LR_INVALID_REPAR_DATA_LEN 13 |
#define | LR_RADIO_ERR 14 |
#define | LR_DENIED 18 |
#define | LR_MAX_DATA_SIZE 256 |
LR Command String Max Size. | |
#define | LR_MAX_TRANSFER_SIZE 384 |
#define | LR_MAX_CMD_SIZE 64 |
#define | LR_MAX_RSP_SIZE 20 |
LR Response String Max Size. | |
#define | LR_RESP_COUNT 100 |
LR Number of Response Indexes. | |
#define | LR_TIMER_EXPIRED 50000 |
LR Timer Limit. | |
#define | LR_MAC_TX "mac tx " |
LR Variables. | |
#define | LR_JOIN "mac join " |
#define | LR_RADIO_TX "radio tx " |
#define | LR_RADIO_RX "radio rx " |
#define | DRV_RX_BUFFER_SIZE 300 |
LR driver buffer size. | |
#define | LR_MAP_MIKROBUS(cfg, mikrobus) |
MikroBUS pin mapping. | |
Enumerations | |
enum | lr_return_value_t { LR_OK = 0 , LR_ERROR = -1 } |
LR Click return value data. More... | |
Functions | |
void | lr_cfg_setup (lr_cfg_t *cfg) |
LR configuration object setup function. | |
err_t | lr_init (lr_t *ctx, lr_cfg_t *cfg) |
LR initialization function. | |
void | lr_default_cfg (lr_t *ctx, bool cb_default, void(*response_p)(char *response)) |
LR default configuration function. | |
void | lr_generic_write (lr_t *ctx, char *data_buf, uint16_t len) |
LR data writing function. | |
int32_t | lr_generic_read (lr_t *ctx, char *data_buf, uint16_t max_len) |
LR data reading function. | |
void | lr_cmd (lr_t *ctx, char *cmd, char *response) |
Send command function. | |
uint8_t | lr_mac_tx (lr_t *ctx, lr_mac_t *mac) |
Function for writing mac parameters. | |
uint8_t | lr_join (lr_t *ctx, char *join_mode, char *response) |
Function for setting join mode. | |
uint8_t | lr_rx (lr_t *ctx, char *window_size, char *response) |
Main receiver function | |
uint8_t | lr_tx (lr_t *ctx, char *buffer) |
Main tnanceiver function. | |
void | lr_rx_isr (lr_t *ctx, char rx_input) |
Receiver. | |
void | lr_tick_isr (lr_t *ctx) |
Timer. | |
void | lr_tick_conf (lr_t *ctx, uint32_t timer_limit) |
Timer Configuration. | |
void | lr_isr_process (lr_t *ctx) |
Main Process. | |
void | lr_put_char (lr_t *ctx, char data_in) |
Function for write char. | |
This file contains API for LR Click Driver.
enum lr_return_value_t |