RUI3 (RAK Unified Interface 3) - RAK4631
service_lora.h File Reference

Provide LoRa service layer for API layer to use. More...

Go to the source code of this file.

Data Structures

struct  SERVICE_LORA_RECEIVE
 
struct  sbeacon_bgw
 
struct  sdelay_send
 
struct  _SERVICE_LORA_SEND_INFO
 

Macros

#define SERVICE_LORA_DLINK_BUFF_SIZE   256
 
#define LORAWAN_VERSION   "LoRaWAN 1.0.3"
 
#define SERVICE_LORA_CHANNEL_ALL   0U
 
#define SERVICE_LORA_CHANNEL_0_63   0x00ff
 
#define SERVICE_LORA_CHANNEL_0_7   (1 << 0)
 
#define SERVICE_LORA_CHANNEL_8_15   (1 << 1)
 
#define SERVICE_LORA_CHANNEL_16_23   (1 << 2)
 
#define SERVICE_LORA_CHANNEL_24_31   (1 << 3)
 
#define SERVICE_LORA_CHANNEL_32_39   (1 << 4)
 
#define SERVICE_LORA_CHANNEL_40_47   (1 << 5)
 
#define SERVICE_LORA_CHANNEL_48_55   (1 << 6)
 
#define SERVICE_LORA_CHANNEL_56_63   (1 << 7)
 
#define SERVICE_LORA_CHANNEL_80_87   (1 << 10)
 
#define SERVICE_LORA_CHANNEL_88_95   (1 << 11)
 

Typedefs

typedef enum _SERVICE_LORA_MAC_CMD SERVICE_LORA_MAC_CMD
 
typedef enum _SERVICE_LORA_CLASS_B_STATE SERVICE_LORA_CLASS_B_STATE
 
typedef enum _TIMEREQ_STATE TIMEREQ_STATE
 
typedef struct SERVICE_LORA_RECEIVE SERVICE_LORA_RECEIVE_T
 
typedef void(* service_lora_recv_cb) (SERVICE_LORA_RECEIVE_T *data)
 
typedef void(* service_lora_join_cb) (int32_t status)
 
typedef void(* service_lora_send_cb) (int32_t status)
 
typedef enum _SERVICE_LORA_TX_POWER SERVICE_LORA_TX_POWER
 
typedef struct sbeacon_bgw beacon_bgw_t
 
typedef struct sdelay_send delay_send_t
 
typedef enum _SERVICE_LORA_WORK_MODE SERVICE_LORA_WORK_MODE
 
typedef enum _LINK_CHECK_MODE LINK_CHECK_MODE
 
typedef enum _SERVICE_LORA_CONFIRM_MODE SERVICE_LORA_CONFIRM_MODE
 
typedef enum _SERVICE_LORA_JOIN_MODE SERVICE_LORA_JOIN_MODE
 
typedef enum _SERVICE_LORA_DATA_RATE SERVICE_LORA_DATA_RATE
 
typedef enum _SERVICE_LORA_CH_EIGHT_MODE SERVICE_LORA_CH_EIGHT_MODE
 
typedef struct _SERVICE_LORA_SEND_INFO SERVICE_LORA_SEND_INFO
 
typedef enum _SERVICE_LORA_CLASS SERVICE_LORA_CLASS
 
typedef enum _AS923_SUB_BAND AS923_SUB_BAND
 
typedef enum _SERVICE_LORA_BAND SERVICE_LORA_BAND
 

Enumerations

enum  _SERVICE_LORA_MAC_CMD {
  SERVICE_LORA_MAC_CMD_NONE,
  SERVICE_LORA_MAC_CMD_DEVICE_TIME,
  SERVICE_LORA_MAC_CMD_PING_SLOT_INFO
}
 
enum  _SERVICE_LORA_CLASS_B_STATE {
  SERVICE_LORA_CLASS_B_S0,
  SERVICE_LORA_CLASS_B_S1,
  SERVICE_LORA_CLASS_B_S2,
  SERVICE_LORA_CLASS_B_S3,
  SERVICE_LORA_CLASS_B_COMPLETED
}
 
enum  _TIMEREQ_STATE {
  TIMEREQ_DISABLED,
  TIMEREQ_ENABLED
}
 
enum  _SERVICE_LORA_TX_POWER {
  SERVICE_LORA_TX_POWER_0 = TX_POWER_0,
  SERVICE_LORA_TX_POWER_1 = TX_POWER_1,
  SERVICE_LORA_TX_POWER_2 = TX_POWER_2,
  SERVICE_LORA_TX_POWER_3 = TX_POWER_3,
  SERVICE_LORA_TX_POWER_4 = TX_POWER_4,
  SERVICE_LORA_TX_POWER_5 = TX_POWER_5,
  SERVICE_LORA_TX_POWER_6 = TX_POWER_6,
  SERVICE_LORA_TX_POWER_7 = TX_POWER_7,
  SERVICE_LORA_TX_POWER_8 = TX_POWER_8,
  SERVICE_LORA_TX_POWER_9 = TX_POWER_9,
  SERVICE_LORA_TX_POWER_10 = TX_POWER_10,
  SERVICE_LORA_TX_POWER_11 = TX_POWER_11,
  SERVICE_LORA_TX_POWER_12 = TX_POWER_12,
  SERVICE_LORA_TX_POWER_13 = TX_POWER_13,
  SERVICE_LORA_TX_POWER_14 = TX_POWER_14,
  SERVICE_LORA_TX_POWER_15 = TX_POWER_15,
  SERVICE_LORA_TX_POWER_MAX = TX_POWER_15
}
 
enum  _SERVICE_LORA_WORK_MODE {
  SERVICE_LORA_P2P = 0,
  SERVICE_LORAWAN = 1,
  SERVICE_LORA_FSK = 2
}
 
enum  _LINK_CHECK_MODE {
  LINK_CHECK_DISABLE = 0,
  LINK_CHECK_ONCE = 1,
  LINK_CHECK_EVERYTIME = 2
}
 
enum  _SERVICE_LORA_CONFIRM_MODE {
  SERVICE_LORA_NO_ACK = 0,
  SERVICE_LORA_ACK = 1
}
 
enum  _SERVICE_LORA_JOIN_MODE {
  SERVICE_LORA_ABP = 0,
  SERVICE_LORA_OTAA = 1
}
 
enum  _SERVICE_LORA_DATA_RATE {
  SERVICE_LORA_DR_0 = DR_0,
  SERVICE_LORA_DR_1 = DR_1,
  SERVICE_LORA_DR_2 = DR_2,
  SERVICE_LORA_DR_3 = DR_3,
  SERVICE_LORA_DR_4 = DR_4,
  SERVICE_LORA_DR_5 = DR_5,
  SERVICE_LORA_DR_6 = DR_6,
  SERVICE_LORA_DR_7 = DR_7,
  SERVICE_LORA_DR_8 = DR_8,
  SERVICE_LORA_DR_9 = DR_9,
  SERVICE_LORA_DR_10 = DR_10,
  SERVICE_LORA_DR_11 = DR_11,
  SERVICE_LORA_DR_12 = DR_12,
  SERVICE_LORA_DR_13 = DR_13,
  SERVICE_LORA_DR_14 = DR_14,
  SERVICE_LORA_DR_15 = DR_15
}
 
enum  _SERVICE_LORA_CH_EIGHT_MODE {
  SERVICE_LORA_CH_EIGHT_MODE_0,
  SERVICE_LORA_CH_EIGHT_MODE_1,
  SERVICE_LORA_CH_EIGHT_MODE_2,
  SERVICE_LORA_CH_EIGHT_MODE_3,
  SERVICE_LORA_CH_EIGHT_MODE_4,
  SERVICE_LORA_CH_EIGHT_MODE_5,
  SERVICE_LORA_CH_EIGHT_MODE_6,
  SERVICE_LORA_CH_EIGHT_MODE_7,
  SERVICE_LORA_CH_EIGHT_MODE_8
}
 
enum  _SERVICE_LORA_CLASS {
  SERVICE_LORA_CLASS_A = 0,
  SERVICE_LORA_CLASS_B = 1,
  SERVICE_LORA_CLASS_C = 2
}
 
enum  _AS923_SUB_BAND {
  AS923_1 = 1,
  AS923_2 = 2,
  AS923_3 = 3,
  AS923_4 = 4
}
 
enum  _SERVICE_LORA_BAND {
  SERVICE_LORA_AS923 = LORAMAC_REGION_AS923,
  SERVICE_LORA_AU915 = LORAMAC_REGION_AU915,
  SERVICE_LORA_CN470 = LORAMAC_REGION_CN470,
  SERVICE_LORA_CN779 = LORAMAC_REGION_CN779,
  SERVICE_LORA_EU433 = LORAMAC_REGION_EU433,
  SERVICE_LORA_EU868 = LORAMAC_REGION_EU868,
  SERVICE_LORA_KR920 = LORAMAC_REGION_KR920,
  SERVICE_LORA_IN865 = LORAMAC_REGION_IN865,
  SERVICE_LORA_US915 = LORAMAC_REGION_US915,
  SERVICE_LORA_RU864 = LORAMAC_REGION_RU864,
  SERVICE_LORA_AS923_2 = 20,
  SERVICE_LORA_AS923_3 = 21,
  SERVICE_LORA_AS923_4 = 22
}
 

Functions

LmHandlerErrorStatus_t LmHandlerPackageRegister (uint8_t id, void *params)
 
bool LmHandlerPackageIsInitialized (uint8_t id)
 
bool LmHandlerPackageIsRunning (uint8_t id)
 
void LmHandlerPackagesProcess (void)
 
int32_t service_lora_init (SERVICE_LORA_BAND band)
 
SERVICE_LORA_BAND service_lora_get_band (void)
 
int32_t service_lora_set_band (SERVICE_LORA_BAND band)
 
int32_t service_lora_get_app_eui (uint8_t *buff, uint32_t len)
 
int32_t service_lora_set_app_eui (uint8_t *buff, uint32_t len)
 
int32_t service_lora_get_app_key (uint8_t *buff, uint32_t len)
 
int32_t service_lora_set_app_key (uint8_t *buff, uint32_t len)
 
int32_t service_lora_get_app_skey (uint8_t *buff, uint32_t len)
 
int32_t service_lora_set_app_skey (uint8_t *buff, uint32_t len)
 
int32_t service_lora_get_dev_addr (uint8_t *buff, uint32_t len)
 
int32_t service_lora_set_dev_addr (uint8_t *buff, uint32_t len)
 
int32_t service_lora_get_dev_eui (uint8_t *buff, uint32_t len)
 
int32_t service_lora_set_dev_eui (uint8_t *buff, uint32_t len)
 
int32_t service_lora_get_net_id (uint8_t *buff, uint32_t len)
 
int32_t service_lora_set_nwk_id (uint8_t *buff, uint32_t len)
 
int32_t service_lora_get_nwk_skey (uint8_t *buff, uint32_t len)
 
int32_t service_lora_set_nwk_skey (uint8_t *buff, uint32_t len)
 
int32_t service_lora_get_McRoot_key (uint8_t *buff)
 
int32_t service_lora_set_lora_default (void)
 
uint8_t service_lora_get_retry (void)
 
int32_t service_lora_set_retry (uint8_t retry)
 
SERVICE_LORA_CONFIRM_MODE service_lora_get_cfm (void)
 
int32_t service_lora_set_cfm (SERVICE_LORA_CONFIRM_MODE cfm)
 
bool service_lora_get_cfs (void)
 
int32_t service_lora_join (int32_t param1, int32_t param2, int32_t param3, int32_t param4)
 
SERVICE_LORA_WORK_MODE service_lora_get_nwm (void)
 
int32_t service_lora_set_nwm (SERVICE_LORA_WORK_MODE nwm)
 
SERVICE_LORA_JOIN_MODE service_lora_get_njm (void)
 
int32_t service_lora_set_njm (SERVICE_LORA_JOIN_MODE njm, bool commit)
 
bool service_lora_get_njs (void)
 
int32_t service_lora_send (uint8_t *buff, uint32_t len, SERVICE_LORA_SEND_INFO info, bool blocking)
 
bool service_lora_get_adr (void)
 
int32_t service_lora_set_adr (bool adr, bool commit)
 
SERVICE_LORA_CLASS service_lora_get_class (void)
 
SERVICE_LORA_CLASS service_lora_get_real_class_from_stack (void)
 
int32_t service_lora_set_class (SERVICE_LORA_CLASS device_class, bool commit)
 
bool service_lora_get_dcs (void)
 
int32_t service_lora_set_dcs (uint8_t dutycycle, bool commit)
 
SERVICE_LORA_DATA_RATE service_lora_get_dr (void)
 
int32_t service_lora_set_dr (SERVICE_LORA_DATA_RATE dr, bool commit)
 
uint32_t service_lora_get_jn1dl (void)
 
int32_t service_lora_set_jn1dl (uint32_t jn1dl, bool commit)
 
uint32_t service_lora_get_jn2dl (void)
 
int32_t service_lora_set_jn2dl (uint32_t jn2dl, bool commit)
 
bool service_lora_get_pub_nwk_mode (void)
 
int32_t service_lora_set_pub_nwk_mode (bool pnm, bool commit)
 
uint32_t service_lora_get_rx1dl (void)
 
int32_t service_lora_set_rx1dl (uint32_t rx1dl, bool commit)
 
uint32_t service_lora_get_rx2dl (void)
 
int32_t service_lora_set_rx2dl (uint32_t rx2dl, bool commit)
 
uint8_t service_lora_get_txpower (void)
 
int32_t service_lora_set_txpower (uint8_t txp, bool commit)
 
uint8_t service_lora_get_ping_slot_periodicity (void)
 
int32_t service_lora_set_ping_slot_periodicity (uint8_t periodicity)
 
uint32_t service_lora_get_beacon_freq (void)
 
uint32_t service_lora_get_beacon_time (void)
 
int16_t service_lora_get_rssi (void)
 
int8_t service_lora_get_snr (void)
 
int32_t service_lora_get_local_time (char *local_time)
 
uint32_t service_lora_get_lorawan_version (char **version)
 
uint32_t service_lora_get_rx2freq (void)
 
uint32_t service_lora_set_rx2freq (uint32_t freq, bool commit)
 
uint32_t service_lora_set_rx2dr (SERVICE_LORA_DATA_RATE datarate, bool commit)
 
SERVICE_LORA_DATA_RATE service_lora_get_rx2dr (void)
 
int32_t service_lora_set_linkcheck (uint8_t mode)
 
uint8_t service_lora_get_linkcheck (void)
 
void service_lora_lptp_send_callback (int status)
 
int32_t service_lora_lptp_send (uint8_t port, bool ack, uint8_t *p_data, uint16_t len)
 
bool service_lora_get_join_start (void)
 
int32_t service_lora_set_join_start (bool join_start)
 
bool service_lora_get_auto_join (void)
 
int32_t service_lora_set_auto_join (bool auto_join)
 
uint32_t service_lora_get_auto_join_period (void)
 
int32_t service_lora_set_auto_join_period (uint32_t auto_join_period)
 
uint32_t service_lora_get_auto_join_max_cnt (void)
 
int32_t service_lora_set_auto_join_max_cnt (uint32_t auto_join_period)
 
int32_t service_lora_get_last_recv (uint8_t *port, uint8_t *buff, uint32_t len)
 
int32_t service_lora_set_che (uint8_t sub_band)
 
int32_t service_lora_get_che (void)
 
beacon_bgw_t service_lora_get_beacon_gwspecific (void)
 
int32_t service_lora_get_chs (void)
 
int32_t service_lora_set_chs (uint32_t frequency)
 
int32_t service_lora_register_recv_cb (service_lora_recv_cb callback)
 
int32_t service_lora_register_join_cb (service_lora_join_cb callback)
 
int32_t service_lora_register_send_cb (service_lora_send_cb callback)
 
uint32_t service_lora_get_beacon_dr (void)
 
SERVICE_LORA_CLASS_B_STATE service_lora_get_class_b_state (void)
 
int32_t service_lora_query_txPossible (int16_t len)
 
void service_lora_suspend (void)
 
void service_lora_resume (void)
 
uint8_t service_lora_get_timereq (void)
 
int32_t service_lora_set_timereq (uint8_t mode)
 
void service_lora_systemMaxRxError (void)
 
int32_t service_lora_get_lbt ()
 
int32_t service_lora_set_lbt (uint8_t enable)
 
int16_t service_lora_get_lbt_rssi ()
 
int32_t service_lora_set_lbt_rssi (int16_t rssi)
 
uint32_t service_lora_get_lbt_scantime ()
 
int32_t service_lora_set_lbt_scantime (uint32_t time)
 

Detailed Description

Provide LoRa service layer for API layer to use.

Author
Rakwireless
Version
0.0.0
Date
2021.5

Macro Definition Documentation

◆ SERVICE_LORA_DLINK_BUFF_SIZE

#define SERVICE_LORA_DLINK_BUFF_SIZE   256

◆ LORAWAN_VERSION

#define LORAWAN_VERSION   "LoRaWAN 1.0.3"

◆ SERVICE_LORA_CHANNEL_ALL

#define SERVICE_LORA_CHANNEL_ALL   0U

◆ SERVICE_LORA_CHANNEL_0_63

#define SERVICE_LORA_CHANNEL_0_63   0x00ff

◆ SERVICE_LORA_CHANNEL_0_7

#define SERVICE_LORA_CHANNEL_0_7   (1 << 0)

◆ SERVICE_LORA_CHANNEL_8_15

#define SERVICE_LORA_CHANNEL_8_15   (1 << 1)

◆ SERVICE_LORA_CHANNEL_16_23

#define SERVICE_LORA_CHANNEL_16_23   (1 << 2)

◆ SERVICE_LORA_CHANNEL_24_31

#define SERVICE_LORA_CHANNEL_24_31   (1 << 3)

◆ SERVICE_LORA_CHANNEL_32_39

#define SERVICE_LORA_CHANNEL_32_39   (1 << 4)

◆ SERVICE_LORA_CHANNEL_40_47

#define SERVICE_LORA_CHANNEL_40_47   (1 << 5)

◆ SERVICE_LORA_CHANNEL_48_55

#define SERVICE_LORA_CHANNEL_48_55   (1 << 6)

◆ SERVICE_LORA_CHANNEL_56_63

#define SERVICE_LORA_CHANNEL_56_63   (1 << 7)

◆ SERVICE_LORA_CHANNEL_80_87

#define SERVICE_LORA_CHANNEL_80_87   (1 << 10)

◆ SERVICE_LORA_CHANNEL_88_95

#define SERVICE_LORA_CHANNEL_88_95   (1 << 11)

Typedef Documentation

◆ SERVICE_LORA_MAC_CMD

◆ SERVICE_LORA_CLASS_B_STATE

◆ TIMEREQ_STATE

◆ SERVICE_LORA_RECEIVE_T

◆ service_lora_recv_cb

typedef void(* service_lora_recv_cb) (SERVICE_LORA_RECEIVE_T *data)

◆ service_lora_join_cb

typedef void(* service_lora_join_cb) (int32_t status)

◆ service_lora_send_cb

typedef void(* service_lora_send_cb) (int32_t status)

◆ SERVICE_LORA_TX_POWER

◆ beacon_bgw_t

typedef struct sbeacon_bgw beacon_bgw_t

◆ delay_send_t

typedef struct sdelay_send delay_send_t

◆ SERVICE_LORA_WORK_MODE

◆ LINK_CHECK_MODE

◆ SERVICE_LORA_CONFIRM_MODE

◆ SERVICE_LORA_JOIN_MODE

◆ SERVICE_LORA_DATA_RATE

◆ SERVICE_LORA_CH_EIGHT_MODE

◆ SERVICE_LORA_SEND_INFO

◆ SERVICE_LORA_CLASS

◆ AS923_SUB_BAND

◆ SERVICE_LORA_BAND

LoRaMAC region enumeration

Enumeration Type Documentation

◆ _SERVICE_LORA_MAC_CMD

Enumerator
SERVICE_LORA_MAC_CMD_NONE 
SERVICE_LORA_MAC_CMD_DEVICE_TIME 
SERVICE_LORA_MAC_CMD_PING_SLOT_INFO 

◆ _SERVICE_LORA_CLASS_B_STATE

Enumerator
SERVICE_LORA_CLASS_B_S0 
SERVICE_LORA_CLASS_B_S1 
SERVICE_LORA_CLASS_B_S2 
SERVICE_LORA_CLASS_B_S3 
SERVICE_LORA_CLASS_B_COMPLETED 

◆ _TIMEREQ_STATE

Enumerator
TIMEREQ_DISABLED 
TIMEREQ_ENABLED 

◆ _SERVICE_LORA_TX_POWER

Enumerator
SERVICE_LORA_TX_POWER_0 
SERVICE_LORA_TX_POWER_1 
SERVICE_LORA_TX_POWER_2 
SERVICE_LORA_TX_POWER_3 
SERVICE_LORA_TX_POWER_4 
SERVICE_LORA_TX_POWER_5 
SERVICE_LORA_TX_POWER_6 
SERVICE_LORA_TX_POWER_7 
SERVICE_LORA_TX_POWER_8 
SERVICE_LORA_TX_POWER_9 
SERVICE_LORA_TX_POWER_10 
SERVICE_LORA_TX_POWER_11 
SERVICE_LORA_TX_POWER_12 
SERVICE_LORA_TX_POWER_13 
SERVICE_LORA_TX_POWER_14 
SERVICE_LORA_TX_POWER_15 
SERVICE_LORA_TX_POWER_MAX 

◆ _SERVICE_LORA_WORK_MODE

Enumerator
SERVICE_LORA_P2P 
SERVICE_LORAWAN 
SERVICE_LORA_FSK 

◆ _LINK_CHECK_MODE

Enumerator
LINK_CHECK_DISABLE 
LINK_CHECK_ONCE 
LINK_CHECK_EVERYTIME 

◆ _SERVICE_LORA_CONFIRM_MODE

Enumerator
SERVICE_LORA_NO_ACK 
SERVICE_LORA_ACK 

◆ _SERVICE_LORA_JOIN_MODE

Enumerator
SERVICE_LORA_ABP 
SERVICE_LORA_OTAA 

◆ _SERVICE_LORA_DATA_RATE

Enumerator
SERVICE_LORA_DR_0 
SERVICE_LORA_DR_1 
SERVICE_LORA_DR_2 
SERVICE_LORA_DR_3 
SERVICE_LORA_DR_4 
SERVICE_LORA_DR_5 
SERVICE_LORA_DR_6 
SERVICE_LORA_DR_7 
SERVICE_LORA_DR_8 
SERVICE_LORA_DR_9 
SERVICE_LORA_DR_10 
SERVICE_LORA_DR_11 
SERVICE_LORA_DR_12 
SERVICE_LORA_DR_13 
SERVICE_LORA_DR_14 
SERVICE_LORA_DR_15 

◆ _SERVICE_LORA_CH_EIGHT_MODE

Enumerator
SERVICE_LORA_CH_EIGHT_MODE_0 
SERVICE_LORA_CH_EIGHT_MODE_1 
SERVICE_LORA_CH_EIGHT_MODE_2 
SERVICE_LORA_CH_EIGHT_MODE_3 
SERVICE_LORA_CH_EIGHT_MODE_4 
SERVICE_LORA_CH_EIGHT_MODE_5 
SERVICE_LORA_CH_EIGHT_MODE_6 
SERVICE_LORA_CH_EIGHT_MODE_7 
SERVICE_LORA_CH_EIGHT_MODE_8 

◆ _SERVICE_LORA_CLASS

Enumerator
SERVICE_LORA_CLASS_A 
SERVICE_LORA_CLASS_B 
SERVICE_LORA_CLASS_C 

◆ _AS923_SUB_BAND

Enumerator
AS923_1 
AS923_2 
AS923_3 
AS923_4 

◆ _SERVICE_LORA_BAND

LoRaMAC region enumeration

Enumerator
SERVICE_LORA_AS923 

AS band on 923MHz SERVICE_LORA_AS923-1

SERVICE_LORA_AU915 

Australian band on 915MHz

SERVICE_LORA_CN470 

Chinese band on 470MHz

SERVICE_LORA_CN779 

Chinese band on 779MHz

SERVICE_LORA_EU433 

European band on 433MHz

SERVICE_LORA_EU868 

European band on 868MHz

SERVICE_LORA_KR920 

South korean band on 920MHz

SERVICE_LORA_IN865 

India band on 865MHz

SERVICE_LORA_US915 

North american band on 915MHz

SERVICE_LORA_RU864 

Russia band on 864MHz

SERVICE_LORA_AS923_2 
SERVICE_LORA_AS923_3 
SERVICE_LORA_AS923_4 

Function Documentation

◆ LmHandlerPackageRegister()

LmHandlerErrorStatus_t LmHandlerPackageRegister ( uint8_t  id,
void *  params 
)

◆ LmHandlerPackageIsInitialized()

bool LmHandlerPackageIsInitialized ( uint8_t  id)

◆ LmHandlerPackageIsRunning()

bool LmHandlerPackageIsRunning ( uint8_t  id)

◆ LmHandlerPackagesProcess()

void LmHandlerPackagesProcess ( void  )

◆ service_lora_init()

int32_t service_lora_init ( SERVICE_LORA_BAND  band)

◆ service_lora_get_band()

SERVICE_LORA_BAND service_lora_get_band ( void  )

◆ service_lora_set_band()

int32_t service_lora_set_band ( SERVICE_LORA_BAND  band)

◆ service_lora_get_app_eui()

int32_t service_lora_get_app_eui ( uint8_t *  buff,
uint32_t  len 
)

◆ service_lora_set_app_eui()

int32_t service_lora_set_app_eui ( uint8_t *  buff,
uint32_t  len 
)

◆ service_lora_get_app_key()

int32_t service_lora_get_app_key ( uint8_t *  buff,
uint32_t  len 
)

◆ service_lora_set_app_key()

int32_t service_lora_set_app_key ( uint8_t *  buff,
uint32_t  len 
)

◆ service_lora_get_app_skey()

int32_t service_lora_get_app_skey ( uint8_t *  buff,
uint32_t  len 
)

◆ service_lora_set_app_skey()

int32_t service_lora_set_app_skey ( uint8_t *  buff,
uint32_t  len 
)

◆ service_lora_get_dev_addr()

int32_t service_lora_get_dev_addr ( uint8_t *  buff,
uint32_t  len 
)

◆ service_lora_set_dev_addr()

int32_t service_lora_set_dev_addr ( uint8_t *  buff,
uint32_t  len 
)

◆ service_lora_get_dev_eui()

int32_t service_lora_get_dev_eui ( uint8_t *  buff,
uint32_t  len 
)

◆ service_lora_set_dev_eui()

int32_t service_lora_set_dev_eui ( uint8_t *  buff,
uint32_t  len 
)

◆ service_lora_get_net_id()

int32_t service_lora_get_net_id ( uint8_t *  buff,
uint32_t  len 
)

◆ service_lora_set_nwk_id()

int32_t service_lora_set_nwk_id ( uint8_t *  buff,
uint32_t  len 
)

◆ service_lora_get_nwk_skey()

int32_t service_lora_get_nwk_skey ( uint8_t *  buff,
uint32_t  len 
)

◆ service_lora_set_nwk_skey()

int32_t service_lora_set_nwk_skey ( uint8_t *  buff,
uint32_t  len 
)

◆ service_lora_get_McRoot_key()

int32_t service_lora_get_McRoot_key ( uint8_t *  buff)

◆ service_lora_set_lora_default()

int32_t service_lora_set_lora_default ( void  )

◆ service_lora_get_retry()

uint8_t service_lora_get_retry ( void  )

◆ service_lora_set_retry()

int32_t service_lora_set_retry ( uint8_t  retry)

◆ service_lora_get_cfm()

SERVICE_LORA_CONFIRM_MODE service_lora_get_cfm ( void  )

◆ service_lora_set_cfm()

int32_t service_lora_set_cfm ( SERVICE_LORA_CONFIRM_MODE  cfm)

◆ service_lora_get_cfs()

bool service_lora_get_cfs ( void  )

◆ service_lora_join()

int32_t service_lora_join ( int32_t  param1,
int32_t  param2,
int32_t  param3,
int32_t  param4 
)

◆ service_lora_get_nwm()

SERVICE_LORA_WORK_MODE service_lora_get_nwm ( void  )

◆ service_lora_set_nwm()

int32_t service_lora_set_nwm ( SERVICE_LORA_WORK_MODE  nwm)

◆ service_lora_get_njm()

SERVICE_LORA_JOIN_MODE service_lora_get_njm ( void  )

◆ service_lora_set_njm()

int32_t service_lora_set_njm ( SERVICE_LORA_JOIN_MODE  njm,
bool  commit 
)

◆ service_lora_get_njs()

bool service_lora_get_njs ( void  )

◆ service_lora_send()

int32_t service_lora_send ( uint8_t *  buff,
uint32_t  len,
SERVICE_LORA_SEND_INFO  info,
bool  blocking 
)

◆ service_lora_get_adr()

bool service_lora_get_adr ( void  )

◆ service_lora_set_adr()

int32_t service_lora_set_adr ( bool  adr,
bool  commit 
)

◆ service_lora_get_class()

SERVICE_LORA_CLASS service_lora_get_class ( void  )

◆ service_lora_get_real_class_from_stack()

SERVICE_LORA_CLASS service_lora_get_real_class_from_stack ( void  )

◆ service_lora_set_class()

int32_t service_lora_set_class ( SERVICE_LORA_CLASS  device_class,
bool  commit 
)

◆ service_lora_get_dcs()

bool service_lora_get_dcs ( void  )

◆ service_lora_set_dcs()

int32_t service_lora_set_dcs ( uint8_t  dutycycle,
bool  commit 
)

◆ service_lora_get_dr()

SERVICE_LORA_DATA_RATE service_lora_get_dr ( void  )

◆ service_lora_set_dr()

int32_t service_lora_set_dr ( SERVICE_LORA_DATA_RATE  dr,
bool  commit 
)

◆ service_lora_get_jn1dl()

uint32_t service_lora_get_jn1dl ( void  )

◆ service_lora_set_jn1dl()

int32_t service_lora_set_jn1dl ( uint32_t  jn1dl,
bool  commit 
)

◆ service_lora_get_jn2dl()

uint32_t service_lora_get_jn2dl ( void  )

◆ service_lora_set_jn2dl()

int32_t service_lora_set_jn2dl ( uint32_t  jn2dl,
bool  commit 
)

◆ service_lora_get_pub_nwk_mode()

bool service_lora_get_pub_nwk_mode ( void  )

◆ service_lora_set_pub_nwk_mode()

int32_t service_lora_set_pub_nwk_mode ( bool  pnm,
bool  commit 
)

◆ service_lora_get_rx1dl()

uint32_t service_lora_get_rx1dl ( void  )

◆ service_lora_set_rx1dl()

int32_t service_lora_set_rx1dl ( uint32_t  rx1dl,
bool  commit 
)

◆ service_lora_get_rx2dl()

uint32_t service_lora_get_rx2dl ( void  )

◆ service_lora_set_rx2dl()

int32_t service_lora_set_rx2dl ( uint32_t  rx2dl,
bool  commit 
)

◆ service_lora_get_txpower()

uint8_t service_lora_get_txpower ( void  )

◆ service_lora_set_txpower()

int32_t service_lora_set_txpower ( uint8_t  txp,
bool  commit 
)

◆ service_lora_get_ping_slot_periodicity()

uint8_t service_lora_get_ping_slot_periodicity ( void  )

◆ service_lora_set_ping_slot_periodicity()

int32_t service_lora_set_ping_slot_periodicity ( uint8_t  periodicity)

◆ service_lora_get_beacon_freq()

uint32_t service_lora_get_beacon_freq ( void  )

◆ service_lora_get_beacon_time()

uint32_t service_lora_get_beacon_time ( void  )

◆ service_lora_get_rssi()

int16_t service_lora_get_rssi ( void  )

◆ service_lora_get_snr()

int8_t service_lora_get_snr ( void  )

◆ service_lora_get_local_time()

int32_t service_lora_get_local_time ( char *  local_time)

◆ service_lora_get_lorawan_version()

uint32_t service_lora_get_lorawan_version ( char **  version)

◆ service_lora_get_rx2freq()

uint32_t service_lora_get_rx2freq ( void  )

◆ service_lora_set_rx2freq()

uint32_t service_lora_set_rx2freq ( uint32_t  freq,
bool  commit 
)

◆ service_lora_set_rx2dr()

uint32_t service_lora_set_rx2dr ( SERVICE_LORA_DATA_RATE  datarate,
bool  commit 
)

◆ service_lora_get_rx2dr()

SERVICE_LORA_DATA_RATE service_lora_get_rx2dr ( void  )

◆ service_lora_set_linkcheck()

int32_t service_lora_set_linkcheck ( uint8_t  mode)

◆ service_lora_get_linkcheck()

uint8_t service_lora_get_linkcheck ( void  )

◆ service_lora_lptp_send_callback()

void service_lora_lptp_send_callback ( int  status)

◆ service_lora_lptp_send()

int32_t service_lora_lptp_send ( uint8_t  port,
bool  ack,
uint8_t *  p_data,
uint16_t  len 
)

◆ service_lora_get_join_start()

bool service_lora_get_join_start ( void  )

◆ service_lora_set_join_start()

int32_t service_lora_set_join_start ( bool  join_start)

◆ service_lora_get_auto_join()

bool service_lora_get_auto_join ( void  )

◆ service_lora_set_auto_join()

int32_t service_lora_set_auto_join ( bool  auto_join)

◆ service_lora_get_auto_join_period()

uint32_t service_lora_get_auto_join_period ( void  )

◆ service_lora_set_auto_join_period()

int32_t service_lora_set_auto_join_period ( uint32_t  auto_join_period)

◆ service_lora_get_auto_join_max_cnt()

uint32_t service_lora_get_auto_join_max_cnt ( void  )

◆ service_lora_set_auto_join_max_cnt()

int32_t service_lora_set_auto_join_max_cnt ( uint32_t  auto_join_period)

◆ service_lora_get_last_recv()

int32_t service_lora_get_last_recv ( uint8_t *  port,
uint8_t *  buff,
uint32_t  len 
)

◆ service_lora_set_che()

int32_t service_lora_set_che ( uint8_t  sub_band)

◆ service_lora_get_che()

int32_t service_lora_get_che ( void  )

◆ service_lora_get_beacon_gwspecific()

beacon_bgw_t service_lora_get_beacon_gwspecific ( void  )

◆ service_lora_get_chs()

int32_t service_lora_get_chs ( void  )

◆ service_lora_set_chs()

int32_t service_lora_set_chs ( uint32_t  frequency)

◆ service_lora_register_recv_cb()

int32_t service_lora_register_recv_cb ( service_lora_recv_cb  callback)

◆ service_lora_register_join_cb()

int32_t service_lora_register_join_cb ( service_lora_join_cb  callback)

◆ service_lora_register_send_cb()

int32_t service_lora_register_send_cb ( service_lora_send_cb  callback)

◆ service_lora_get_beacon_dr()

uint32_t service_lora_get_beacon_dr ( void  )

◆ service_lora_get_class_b_state()

SERVICE_LORA_CLASS_B_STATE service_lora_get_class_b_state ( void  )

◆ service_lora_query_txPossible()

int32_t service_lora_query_txPossible ( int16_t  len)

◆ service_lora_suspend()

void service_lora_suspend ( void  )

◆ service_lora_resume()

void service_lora_resume ( void  )

◆ service_lora_get_timereq()

uint8_t service_lora_get_timereq ( void  )

◆ service_lora_set_timereq()

int32_t service_lora_set_timereq ( uint8_t  mode)

◆ service_lora_systemMaxRxError()

void service_lora_systemMaxRxError ( void  )

◆ service_lora_get_lbt()

int32_t service_lora_get_lbt ( )

◆ service_lora_set_lbt()

int32_t service_lora_set_lbt ( uint8_t  enable)

◆ service_lora_get_lbt_rssi()

int16_t service_lora_get_lbt_rssi ( )

◆ service_lora_set_lbt_rssi()

int32_t service_lora_set_lbt_rssi ( int16_t  rssi)

◆ service_lora_get_lbt_scantime()

uint32_t service_lora_get_lbt_scantime ( )

◆ service_lora_set_lbt_scantime()

int32_t service_lora_set_lbt_scantime ( uint32_t  time)