Wirepas SDK
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
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
37 {
39 }
40 return lib_radio_cfg->bandSetup(band_mask);
41#else
42 (void)band_group;
44#endif
45}
46
47#endif
48
__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_res_e
Definition wms_app.h:202
@ APP_RES_INVALID_VALUE
Definition wms_app.h:210
@ APP_RES_NOT_IMPLEMENTED
Definition wms_app.h:208
#define __STATIC_INLINE
Definition wms_app.h:20
#define APP_LIB_DECT_BAND_4
Configure DECT Band 4.
#define APP_LIB_DECT_BAND_1
Configure DECT Band 1.