Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cm-projects
RIOT
Commits
18b1ac50
Commit
18b1ac50
authored
7 years ago
by
Alexandre Abadie
Browse files
Options
Downloads
Patches
Plain Diff
sys/net/loramac: various improvements
- add missing typedef enums - add default device class parameter
parent
e38b5e7b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sys/include/net/loramac.h
+15
-8
15 additions, 8 deletions
sys/include/net/loramac.h
with
15 additions
and
8 deletions
sys/include/net/loramac.h
+
15
−
8
View file @
18b1ac50
...
...
@@ -101,6 +101,13 @@ extern "C" {
* @name LoRaMAC default values
* @{
*/
/**
* @brief Default device class (A, B or C)
*/
#ifndef LORAMAC_DEVICE_CLASS
#define LORAMAC_DEVICE_CLASS (LORAMAC_CLASS_A)
#endif
/**
* @brief Default NetID (only valid with ABP join procedure)
*/
...
...
@@ -316,18 +323,18 @@ typedef enum {
/**
* @brief LoRaMAC network join procedure type
*/
enum
{
typedef
enum
{
LORAMAC_JOIN_OTAA
,
/**< Other-the-air activation */
LORAMAC_JOIN_ABP
,
/**< Activation by personnalization */
};
}
loramac_join_mode_t
;
/**
* @brief LoRaMAC transmission mode
*/
enum
{
typedef
enum
{
LORAMAC_TX_CNF
,
/**< Confirmable transmission mode */
LORAMAC_TX_UNCNF
,
/**< Unconfirmable transmission mode */
};
}
loramac_tx_mode_t
;
/**
* @brief LoRaMAC datarate indexes
...
...
@@ -335,7 +342,7 @@ enum {
* Each index corresponds to a different modulation, spreading factor
* and bandwidth depending on the regions.
*/
enum
{
typedef
enum
{
/**
* - ISM EU863-870: LoRa modulation, SF12, BW125 (250bit/s)
* - ISM US902-928: LoRa modulation, SF10, BW125 (980bit/s)
...
...
@@ -514,7 +521,7 @@ enum {
* - ISM KR920-923: reserved for future use
*/
LORAMAC_DR_15
,
};
}
loramac_dr_idx_t
;
/**
* @brief LoRaMAC transmission power indexes
...
...
@@ -522,7 +529,7 @@ enum {
* Each index corresponds to a different modulation, spreading factor
* and bandwidth depending on the regions.
*/
enum
{
typedef
enum
{
/**
* - EU863-870: 20dBm (if supported)
* - US902-928: 30dBm (if supported)
...
...
@@ -701,7 +708,7 @@ enum {
* - ISM KR920-923: Reserved for future use
*/
LORAMAC_TX_PWR_15
,
};
}
loramac_tx_pwr_idx_t
;
/** @} */
/**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment