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) More...
 

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 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;
48 #endif
49 }

Macro Definition Documentation

◆ DEFAULT_DECT_BAND_GROUP

#define DEFAULT_DECT_BAND_GROUP   (1)

Definition at line 14 of file band_config.h.

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