Data Structures | |
struct | _TxParams |
struct | BandDrReq_t |
struct | MinMaxDr_t |
struct | NewFreeChannelReq_t |
struct | NewTxChannelReq_t |
struct | Rx1WindowParams_t |
struct | Rx1WindowParamsReq_t |
struct | UpdateChId_t |
struct | UpdateDutyCycle_t |
struct | UpdateDutyCycleTimer_t |
struct | UpdateJoinDutyCycleTimer_t |
struct | UpdateNewCh_t |
struct | ValChId_t |
struct | ValChMaskCntl_t |
struct | ValUpdateDrange_t |
struct | ValUpdateFreqTx_t |
Macros | |
#define | ADR_ACK_DELAY 32 |
#define | ADR_ACK_LIMIT 64 |
#define | AGGREGATEDTIME_10HR 20 |
#define | AGGREGATEDTIME_1HR 2 |
#define | ALL_CHANNELS 1 |
#define | BACKOFF_BASE_TIME_IN_MS 1800000 |
#define | FCNT_MAX (UINT32_MAX) |
#define | JOIN_ACCEPT_DELAY1 5000UL |
#define | JOIN_ACCEPT_DELAY2 6000UL |
#define | JOIN_BACKOFF_PRESCALAR_10HR 1000 |
#define | JOIN_BACKOFF_PRESCALAR_1HR 100 |
#define | JOIN_BACKOFF_PRESCALAR_24HR 10000 |
#define | NUMBER_CFLIST_FREQUENCIES 5 |
#define | RECEIVE_DELAY1 (1000UL) |
#define | RECEIVE_DELAY2 2000UL |
#define | RETRANSMIT_TIMEOUT 1000+(rand()%2001) |
#define | SIZE_JOIN_ACCEPT_WITH_CFLIST 33 |
#define | WITHOUT_DEFAULT_CHANNELS 0 |
Typedefs | |
typedef enum _LORAWAN_ERR_ATTR_e | LorawanErrAttr_t |
typedef enum _LorawanRegionalAttributes | LorawanRegionalAttributes_t |
typedef struct _TxParams | TxParams_t |
Functions | |
StackRetStatus_t | LORAREG_EnableallChannels (IsmBand_t ismBand) |
StackRetStatus_t | LORAREG_GetAttr (LorawanRegionalAttributes_t attrType, void *attrInput, void *attrOutput) |
This API provides read access to all the supported Regional Attributes. More... | |
StackRetStatus_t | LORAREG_Init (IsmBand_t ismBand) |
This function initializes the LoRaWAN Regional Parameters Module All the resources handled by the regional module eg Channels will be initialized. More... | |
StackRetStatus_t | LORAREG_SetAttr (LorawanRegionalAttributes_t attrType, void *attrInput) |
This API is used to Update the parameters to the regional parameter data base. More... | |
StackRetStatus_t | LORAREG_SupportedBands (uint16_t *bands) |
This function returns the supported bands in the LoRaWAN stack ( a compile time feature) More... | |
StackRetStatus_t | LORAREG_UnInit (void) |
This API is used to un-initialize the regional band parameters and stop the associated timers. More... | |
StackRetStatus_t | LORAREG_ValidateAttr (LorawanRegionalAttributes_t attrType, void *attrInput) |
This API is used to validate if the parameter is according to the specification defined for that band. More... | |
StackRetStatus_t | setDefaultTxPower (IsmBand_t ismBand) |
#define ADR_ACK_DELAY 32 |
Referenced by LORAREG_GetAttr_MacAdrAckDelay().
#define ADR_ACK_LIMIT 64 |
Referenced by LORAREG_GetAttr_MacAdrAckLimit().
#define AGGREGATEDTIME_10HR 20 |
Referenced by setJoinDutyCycleTimer().
#define AGGREGATEDTIME_1HR 2 |
Referenced by setJoinDutyCycleTimer().
#define ALL_CHANNELS 1 |
#define BACKOFF_BASE_TIME_IN_MS 1800000 |
Referenced by JoinBackoffCallback(), and setJoinBackOffTimer().
#define FCNT_MAX (UINT32_MAX) |
#define JOIN_ACCEPT_DELAY1 5000UL |
Referenced by LORAREG_GetAttr_MacJoinAcptDelay1().
#define JOIN_ACCEPT_DELAY2 6000UL |
Referenced by LORAREG_GetAttr_MacJoinAcptDelay2().
#define JOIN_BACKOFF_PRESCALAR_10HR 1000 |
Referenced by setJoinDutyCycleTimer().
#define JOIN_BACKOFF_PRESCALAR_1HR 100 |
Referenced by setJoinDutyCycleTimer().
#define JOIN_BACKOFF_PRESCALAR_24HR 10000 |
Referenced by setJoinDutyCycleTimer().
#define NUMBER_CFLIST_FREQUENCIES 5 |
#define RECEIVE_DELAY1 (1000UL) |
Referenced by LORAREG_GetAttr_MacRecvDelay1().
#define RECEIVE_DELAY2 2000UL |
Referenced by LORAREG_GetAttr_MacRecvDelay2().
#define RETRANSMIT_TIMEOUT 1000+(rand()%2001) |
Referenced by LORAREG_GetAttr_MacRetransmitTimeout().
#define SIZE_JOIN_ACCEPT_WITH_CFLIST 33 |
#define WITHOUT_DEFAULT_CHANNELS 0 |
Referenced by setFrequency(), and ValidateChannelIdT2().
typedef enum _LORAWAN_ERR_ATTR_e LorawanErrAttr_t |
typedef enum _LorawanRegionalAttributes LorawanRegionalAttributes_t |
typedef struct _TxParams TxParams_t |
enum _LORAWAN_ERR_ATTR_e |
StackRetStatus_t LORAREG_EnableallChannels | ( | IsmBand_t | ismBand | ) |
StackRetStatus_t LORAREG_GetAttr | ( | LorawanRegionalAttributes_t | attrType, |
void * | attrInput, | ||
void * | attrOutput | ||
) |
This API provides read access to all the supported Regional Attributes.
The LoRaWAN mac needs to access the regional database via this API.
[in] | attrType | Type of Attribute to get from the regional module |
[in] | attrInput | Input used to get the attribute value |
[out] | Result | of the GET operation |
LORAWAN_SUCCESS | : If GET is successful LORAWAN_INVALID_PARAMETER if the input attribute or the attribute type is invalid |
References LORAWAN_INVALID_PARAMETER, pGetAttr, REG_NUM_ATTRIBUTES, and result.
StackRetStatus_t LORAREG_Init | ( | IsmBand_t | ismBand | ) |
This function initializes the LoRaWAN Regional Parameters Module All the resources handled by the regional module eg Channels will be initialized.
ismBand | The Regional band which is initialized,This is used to validate if the band is supported by the module and also initializes the module corresponding to the band |
LORAWAN_SUCCESS | : If initialization is successful LORAWAN_INVALID_PARAMETER if Initialization is failed |
References CreateAllRegSoftwareTimers(), i, InValidAttr(), InValidGetAttr(), ISM_AU915, ISM_BRN923, ISM_EU433, ISM_EU868, ISM_IND865, ISM_JPN923, ISM_KR920, ISM_NA915, ISM_VTM923, LORAReg_InitAS(), LORAReg_InitAU(), LORAReg_InitEU(), LORAReg_InitIN(), LORAReg_InitJP(), LORAReg_InitKR(), LORAReg_InitNA(), LORAWAN_RESOURCE_UNAVAILABLE, LORAWAN_SUCCESS, pGetAttr, pSetAttr, pValidateAttr, REG_NUM_ATTRIBUTES, result, and StopAllRegSoftwareTimers().
StackRetStatus_t LORAREG_SetAttr | ( | LorawanRegionalAttributes_t | attrType, |
void * | attrInput | ||
) |
This API is used to Update the parameters to the regional parameter data base.
[in] | attrType | Type of Attribute to update in the regional module |
[in] | attrInput | Input used to update the attribute value |
LORAWAN_SUCCESS | : If Update is successful LORAWAN_INVALID_PARAMETER if the input attribute or the attribute type is invalid |
References LORAWAN_INVALID_PARAMETER, pSetAttr, REG_NUM_ATTRIBUTES, and result.
StackRetStatus_t LORAREG_SupportedBands | ( | uint16_t * | bands | ) |
This function returns the supported bands in the LoRaWAN stack ( a compile time feature)
ismBand | The Regional bands supported is updated in this parameter |
LORAWAN_SUCCESS | : If initialization is successful LORAWAN_INVALID_PARAMETER if Initialization is failed |
References ISM_ASBAND, ISM_AU915, ISM_EUBAND, ISM_IND865, ISM_JPN923, ISM_KR920, ISM_NA915, and LORAWAN_SUCCESS.
StackRetStatus_t LORAREG_UnInit | ( | void | ) |
This API is used to un-initialize the regional band parameters and stop the associated timers.
LORAWAN_INVALID_PARAMETER if the input attribute or the attribute type is invalid
References _RegParams::band, _RegPdsItems::fileid, ISM_EU868, LORAWAN_INVALID_PARAMETER, PDS_FILE_REG_EU868_12_IDX, PDS_UnRegFile(), _RegParams::regParamItems, result, and StopAllRegSoftwareTimers().
StackRetStatus_t LORAREG_ValidateAttr | ( | LorawanRegionalAttributes_t | attrType, |
void * | attrInput | ||
) |
This API is used to validate if the parameter is according to the specification defined for that band.
[in] | attrType | Type of Attribute to validate in the regional module |
[in] | attrInput | Input used to validate the attribute value |
LORAWAN_SUCCESS | : If Validate is successful LORAWAN_INVALID_PARAMETER if the input attribute or the attribute type is invalid |
References LORAWAN_INVALID_PARAMETER, pValidateAttr, REG_NUM_ATTRIBUTES, and result.
Referenced by setNewChannel().
StackRetStatus_t setDefaultTxPower | ( | IsmBand_t | ismBand | ) |
References ISM_ASBAND, ISM_AU915, ISM_EU868, ISM_JPN923, ISM_KR920, ISM_NA915, LORAWAN_INVALID_PARAMETER, LORAWAN_SUCCESS, _RegParams::MacTxPower, PDS_STORE, and result.