Wirepas SDK
Main Page
Related Pages
Data Structures
Files
Example applications
File List
Globals
band_config.h
Go to the documentation of this file.
1
/* Copyright 2025 Wirepas Ltd. All Rights Reserved.
2
*
3
* See file LICENSE.txt for full license details.
4
*
5
*/
6
7
8
#ifndef BAND_CONFIG_H_
9
#define BAND_CONFIG_H_
10
11
#include "
api.h
"
12
13
#ifndef DEFAULT_DECT_BAND_GROUP
14
#define DEFAULT_DECT_BAND_GROUP (1)
15
#endif
16
17
23
__STATIC_INLINE
app_res_e
BandConfig_setDectBandGroup
(uint8_t band_group)
24
{
25
#ifdef DECT_BAND_CONFIG
26
uint32_t band_mask;
27
28
if
(band_group == 1)
29
{
30
band_mask =
APP_LIB_DECT_BAND_1
;
31
}
32
else
if
(band_group == 4)
33
{
34
band_mask =
APP_LIB_DECT_BAND_4
;
35
}
36
else
if
(band_group == 9)
37
{
38
band_mask =
APP_LIB_DECT_BAND_9
;
39
}
40
else
41
{
42
return
APP_RES_INVALID_VALUE
;
43
}
44
return
lib_radio_cfg->bandSetup(band_mask);
45
#else
46
(void)band_group;
47
return
APP_RES_NOT_IMPLEMENTED
;
48
#endif
49
}
50
51
#endif
52
APP_LIB_DECT_BAND_1
#define APP_LIB_DECT_BAND_1
Configure DECT Band 1.
Definition:
wms_radio_config.h:40
app_res_e
app_res_e
Definition:
wms_app.h:201
APP_RES_NOT_IMPLEMENTED
@ APP_RES_NOT_IMPLEMENTED
Definition:
wms_app.h:208
BandConfig_setDectBandGroup
__STATIC_INLINE app_res_e BandConfig_setDectBandGroup(uint8_t band_group)
Configure DECT Band Group (ETSI TS 103 636-2)
Definition:
band_config.h:23
APP_LIB_DECT_BAND_4
#define APP_LIB_DECT_BAND_4
Configure DECT Band 4.
Definition:
wms_radio_config.h:44
__STATIC_INLINE
#define __STATIC_INLINE
Definition:
wms_app.h:20
APP_LIB_DECT_BAND_9
#define APP_LIB_DECT_BAND_9
Configure DECT Band 9.
Definition:
wms_radio_config.h:46
APP_RES_INVALID_VALUE
@ APP_RES_INVALID_VALUE
Definition:
wms_app.h:210
api.h