Skip to content

Commit 6b54478

Browse files
author
Antti Kauppila
committed
LoRaWANStack is made independent of MAC sublayers
- Only internal changes, no API has been broke. - Tested by manually running Green tea tests
1 parent b63c98e commit 6b54478

File tree

9 files changed

+516
-1707
lines changed

9 files changed

+516
-1707
lines changed

features/lorawan/LoRaWANStack.cpp

Lines changed: 121 additions & 289 deletions
Large diffs are not rendered by default.

features/lorawan/LoRaWANStack.h

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ class LoRaWANStack: private mbed::NonCopyable<LoRaWANStack> {
371371
* LORAWAN_STATUS_UNSUPPORTED is requested class is not supported,
372372
* or other negative error code if request failed.
373373
*/
374-
lorawan_status_t set_device_class(const device_class_t device_class);
374+
lorawan_status_t set_device_class(const device_class_t& device_class);
375375

376376
private:
377377
LoRaWANStack();
@@ -401,13 +401,6 @@ class LoRaWANStack: private mbed::NonCopyable<LoRaWANStack> {
401401
*/
402402
void mlme_confirm_handler(loramac_mlme_confirm_t *mlme_confirm);
403403

404-
/**
405-
* Handles an MCPS request while attempting to hand over a packet from
406-
* upper layers to Mac layer. For example in response to send_frame_to_mac(),
407-
* an MCPS request is generated.
408-
*/
409-
lorawan_status_t mcps_request_handler(loramac_mcps_req_t *mcps_request);
410-
411404
/**
412405
* Handles an MCPS confirmation coming from the Mac layer in response to an
413406
* MCPS request. We take appropriate actions in response to the confirmation,
@@ -424,16 +417,6 @@ class LoRaWANStack: private mbed::NonCopyable<LoRaWANStack> {
424417
*/
425418
void mcps_indication_handler(loramac_mcps_indication_t *mcps_indication);
426419

427-
/**
428-
* Sets a MIB request, i.e., update a particular parameter etc.
429-
*/
430-
lorawan_status_t mib_set_request(loramac_mib_req_confirm_t *mib_set_params);
431-
432-
/**
433-
* Requests the MIB to inquire about a particular parameter.
434-
*/
435-
lorawan_status_t mib_get_request(loramac_mib_req_confirm_t *mib_get_params);
436-
437420
/**
438421
* Sets up user application port
439422
*/
@@ -488,6 +471,11 @@ class LoRaWANStack: private mbed::NonCopyable<LoRaWANStack> {
488471
*/
489472
void compliance_test_handler(loramac_mcps_indication_t *mcps_indication);
490473

474+
/**
475+
* Used only for compliance testing
476+
*/
477+
lorawan_status_t mcps_request_handler(loramac_mcps_req_t *mcps_request);
478+
491479
/**
492480
* Used only for compliance testing
493481
*/

0 commit comments

Comments
 (0)