Wirepas SDK
band_config.h File Reference

Go to the source code of this file.

Functions

__STATIC_INLINE app_res_e BandConfig_setDectBandGroup (uint8_t band_group)
 Configure DECT Band Group (ETSI TS 103 636-2)
 

Macros

#define DEFAULT_DECT_BAND_GROUP   (1)
 

Function Documentation

◆ BandConfig_setDectBandGroup()

__STATIC_INLINE app_res_e BandConfig_setDectBandGroup ( uint8_t  band_group)

Configure DECT Band Group (ETSI TS 103 636-2)

Parameters
bandgroup index (supported 1,4 or 9)
Returns
APP_RES_OK if the configuration is successful, an error code otherwise

Definition at line 23 of file band_config.h.

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}
@ APP_RES_INVALID_VALUE
Definition wms_app.h:210
@ APP_RES_NOT_IMPLEMENTED
Definition wms_app.h:208
#define APP_LIB_DECT_BAND_4
Configure DECT Band 4.
#define APP_LIB_DECT_BAND_1
Configure DECT Band 1.

Macro Definition Documentation

◆ DEFAULT_DECT_BAND_GROUP

#define DEFAULT_DECT_BAND_GROUP   (1)

Definition at line 14 of file band_config.h.