nanolr 2.0.0.0
|
This file contains API for Nano 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 | nanolr_t |
Click ctx object definition. More... | |
struct | nanolr_cfg_t |
Click configuration structure definition. More... | |
struct | nanolr_rsp_t |
Click response structure definition. More... | |
struct | nanolr_network_t |
Click network structure definition. More... | |
Functions | |
void | nanolr_cfg_setup (nanolr_cfg_t *cfg) |
Config Object Initialization function. | |
NANOLR_RETVAL | nanolr_init (nanolr_t *ctx, nanolr_cfg_t *cfg) |
Initialization function. | |
void | nanolr_default_cfg (nanolr_t *ctx) |
Click Default Configuration function. | |
void | nanolr_reset (nanolr_t *ctx) |
Reset module. | |
void | nanolr_generic_write (nanolr_t *ctx, char *data_buf, uint16_t len) |
Generic write function. | |
int32_t | nanolr_generic_read (nanolr_t *ctx, char *data_buf, uint16_t max_len) |
Generic read function. | |
uint8_t | nanolr_request_2_send (nanolr_t *ctx) |
Request to Send function. | |
void | nanolr_clear_2_send (nanolr_t *ctx, uint8_t state) |
Clear to Send function. | |
uint8_t | nanolr_get_gp1_pin (nanolr_t *ctx) |
Get GP1 pin state function. | |
void | nanolr_set_st_pin (nanolr_t *ctx, uint8_t state) |
Set ST pin state function. | |
void | nanolr_get_device_info (nanolr_t *ctx) |
Get device information function. | |
void | nanolr_get_device_state (nanolr_t *ctx) |
Get device state function. | |
void | nanolr_sw_reset (nanolr_t *ctx) |
Software reset function. | |
void | nanolr_get_fw_ver (nanolr_t *ctx) |
Get firmware version function. | |
void | nanolr_restore_2_factory (nanolr_t *ctx) |
Restore to factory function. | |
void | nanolr_save_settings (nanolr_t *ctx) |
Restore to factory function. | |
void | nanolr_get_output_power (nanolr_t *ctx) |
Get output power function. | |
void | nanolr_get_operating_channel (nanolr_t *ctx) |
Get operating channel function. | |
void | nanolr_set_output_power (nanolr_t *ctx, uint8_t out_pwr) |
Set output power function. | |
void | nanolr_set_operating_channel (nanolr_t *ctx, nanolr_network_t *net) |
Set operating channel function. | |
void | nanolr_save_energy_always_on (nanolr_t *ctx) |
Save energy on function. | |
void | nanolr_save_energy_rx_window (nanolr_t *ctx) |
Save energy rx window function. | |
void | nanolr_save_energy_tx_only (nanolr_t *ctx) |
Save energy tx only function. | |
void | nanolr_get_physical_address (nanolr_t *ctx) |
Get physical address function. | |
void | nanolr_set_physical_address (nanolr_t *ctx, uint8_t *app_eui, uint8_t *dev_eui) |
Set physical address function. | |
void | nanolr_get_network_address (nanolr_t *ctx) |
Get network address function. | |
void | nanolr_set_network_address (nanolr_t *ctx, uint16_t ntw_addr) |
Set network address function. | |
void | nanolr_get_network_id (nanolr_t *ctx) |
Get network identifiers function. | |
void | nanolr_set_network_id (nanolr_t *ctx, uint16_t ntw_id) |
Set network identifiers function. | |
void | nanolr_get_network_role (nanolr_t *ctx) |
Get network role function. | |
void | nanolr_set_network_role (nanolr_t *ctx, uint8_t ntw_role) |
Set network role function. | |
void | nanolr_get_network_auto_settings (nanolr_t *ctx) |
Get network automated settings function. | |
void | nanolr_get_network_preference (nanolr_t *ctx) |
Get network preference function. | |
void | nanolr_set_network_preference (nanolr_t *ctx, uint8_t prot, uint8_t auto_join, uint8_t adr) |
Set network preference function. | |
void | nanolr_get_network_join_mode (nanolr_t *ctx) |
Get network join mode function. | |
void | nanolr_set_network_join_mode (nanolr_t *ctx, uint8_t ntw_join_mode) |
Set network join mode function. | |
void | nanolr_get_battery_level (nanolr_t *ctx) |
Get battery level function. | |
void | nanolr_get_wan_network_type (nanolr_t *ctx) |
Get LRWAN network type function. | |
void | nanolr_wan_network_public (nanolr_t *ctx) |
Set LRWAN network type public function. | |
void | nanolr_wan_network_private (nanolr_t *ctx) |
Set LRWAN network type private function. | |
void | nanolr_network_stop (nanolr_t *ctx) |
Network stop function. | |
void | nanolr_network_start (nanolr_t *ctx) |
Network start function. | |
void | nanolr_send_data (nanolr_t *ctx, uint8_t *tx_data, uint8_t length) |
Send data function. | |
uint8_t | nanolr_rsp_rdy (nanolr_t *ctx) |
Check response ready function. | |
void | nanolr_uart_isr (nanolr_t *ctx) |
UART ISR function. | |
nanolr_err_t | nanolr_parser_rsp (nanolr_t *ctx, nanolr_rsp_t *response) |
Response parser function. | |
This file contains API for Nano LR Click driver.