Skip to content
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions lbm_lib/smtc_modem_core/lr1mac/src/lr1mac_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -254,14 +254,6 @@ typedef enum cid_from_device_e
NB_MAC_CMD_ANS
} cid_from_device_t;

static const uint8_t lr1mac_cmd_mac_ans_size[NB_MAC_CMD_ANS] = {
[LINK_CHECK_ANS] = LINK_CHECK_ANS_SIZE, [LINK_ADR_ANS] = LINK_ADR_ANS_SIZE,
[DUTY_CYCLE_ANS] = DUTY_CYCLE_ANS_SIZE, [RXPARRAM_SETUP_ANS] = RXPARRAM_SETUP_ANS_SIZE,
[DEV_STATUS_ANS] = DEV_STATUS_ANS_SIZE, [NEW_CHANNEL_ANS] = NEW_CHANNEL_ANS_SIZE,
[RXTIMING_SETUP_ANS] = RXTIMING_SETUP_ANS_SIZE, [TXPARAM_SETUP_ANS] = TXPARAM_SETUP_ANS_SIZE,
[DL_CHANNEL_ANS] = DL_CHANNEL_ANS_SIZE,
};

typedef enum lr1mac_bandwidth_e
{
BW125 = RAL_LORA_BW_125_KHZ,
Expand Down
8 changes: 8 additions & 0 deletions lbm_lib/smtc_modem_core/lr1mac/src/lr1mac_utilities.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@
#include "smtc_modem_hal.h"
#include "smtc_modem_hal_dbg_trace.h"

static const uint8_t lr1mac_cmd_mac_ans_size[NB_MAC_CMD_ANS] = {
[LINK_CHECK_ANS] = LINK_CHECK_ANS_SIZE, [LINK_ADR_ANS] = LINK_ADR_ANS_SIZE,
[DUTY_CYCLE_ANS] = DUTY_CYCLE_ANS_SIZE, [RXPARRAM_SETUP_ANS] = RXPARRAM_SETUP_ANS_SIZE,
[DEV_STATUS_ANS] = DEV_STATUS_ANS_SIZE, [NEW_CHANNEL_ANS] = NEW_CHANNEL_ANS_SIZE,
[RXTIMING_SETUP_ANS] = RXTIMING_SETUP_ANS_SIZE, [TXPARAM_SETUP_ANS] = TXPARAM_SETUP_ANS_SIZE,
[DL_CHANNEL_ANS] = DL_CHANNEL_ANS_SIZE,
};

uint32_t lr1mac_utilities_crc( uint8_t* buf, int len )
{
uint32_t crc = 0xFFFFFFFA;
Expand Down
74 changes: 74 additions & 0 deletions library.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
{
"name": "SWL2001",
"version": "0.1.0",
"description": "LoRaWAN Library",
"keywords": "LoRa, LoRaWAN, SX126x, SX127x",
"authors": [
{
"name": "LoRa-NET",
"url": "https://github.com/Lora-net",
"maintainer": true
}
],
"repository": {
"type": "git",
"url": "https://github.com/Lora-net/SWL2001.git"
},
"homepage": "https://github.com/Lora-net/SWL2001",
"export": {
"include": [
"lbm_lib/*"
]
},
"build": {
"includeDir": "lbm_lib",
"srcDir": "lbm_lib",
"flags": [
"-I lbm_lib/smtc_modem_api",
"-I lbm_lib/smtc_modem_core",
"-I lbm_lib/smtc_modem_core/logging",
"-I lbm_lib/smtc_modem_core/lorawan_api",
"-I lbm_lib/smtc_modem_core/lorawan_manager",
"-I lbm_lib/smtc_modem_core/lorawan_packages/application_layer_clock_syncronization",
"-I lbm_lib/smtc_modem_core/lorawan_packages/firmware_management_protocol",
"-I lbm_lib/smtc_modem_core/lorawan_packages/fragmented_data_block_transport",
"-I lbm_lib/smtc_modem_core/lorawan_packages/lorawan_certification",
"-I lbm_lib/smtc_modem_core/lorawan_packages/multi_package_access",
"-I lbm_lib/smtc_modem_core/lorawan_packages/remote_multicast_setup",
"-I lbm_lib/smtc_modem_core/lr1mac/src",
"-I lbm_lib/smtc_modem_core/lr1mac/src/services",
"-I lbm_lib/smtc_modem_core/lr1mac/src/smtc_real/src",
"-I lbm_lib/smtc_modem_core/modem_services",
"-I lbm_lib/smtc_modem_core/modem_supervisor",
"-I lbm_lib/smtc_modem_core/modem_utilities",
"-I lbm_lib/smtc_modem_core/radio_drivers",
"-I lbm_lib/smtc_modem_core/radio_drivers/lr11xx_driver/src",
"-I lbm_lib/smtc_modem_core/radio_planner/src",
"-I lbm_lib/smtc_modem_core/smtc_modem_crypto",
"-I lbm_lib/smtc_modem_core/smtc_modem_crypto/smtc_secure_element",
"-I lbm_lib/smtc_modem_core/smtc_ral/src",
"-I lbm_lib/smtc_modem_core/smtc_ralf/src",
"-I lbm_lib/smtc_modem_hal"
],
"srcFilter": [
"-<smtc_modem_core/geolocation_services/>",
"-<smtc_modem_core/smtc_modem_test.c>",
"+<smtc_modem_core/lorawan_api/lorawan_api.c>",
"+<smtc_modem_core/smtc_modem_crypto/smtc_modem_crypto.c>",
"+<smtc_modem_core/modem_utilities/modem_event_utilities.c>",
"+<smtc_modem_core/modem_utilities/fifo_ctrl.c>",
"+<smtc_modem_core/modem_utilities/modem_core.c>",
"+<smtc_modem_core/modem_supervisor/modem_supervisor_light.c>",
"+<smtc_modem_core/modem_supervisor/modem_tx_protocol_manager.c>",
"+<smtc_modem_core/lorawan_packages/lorawan_certification/lorawan_certification.c>",
"+<smtc_modem_core/lorawan_manager/lorawan_join_management.c>",
"+<smtc_modem_core/lorawan_manager/lorawan_send_management.c>",
"+<smtc_modem_core/lorawan_manager/lorawan_cid_request_management.c>",
"+<smtc_modem_core/lorawan_manager/lorawan_dwn_ack_management.c>",
"+<smtc_modem_core/radio_planner/src/radio_planner.c>"
]
},
"frameworks": "*",
"platforms": "*",
"license": "BDS-3"
}