Wirepas SDK
wms_radio_config.h
Go to the documentation of this file.
1/* Copyright 2020 Wirepas Ltd. All Rights Reserved.
2 *
3 * See file LICENSE.txt for full license details.
4 *
5 */
6
17#ifndef APP_LIB_RADIO_CONFIG_H_
18#define APP_LIB_RADIO_CONFIG_H_
19
20#include <stdlib.h>
21#include <stdint.h>
22#include <stdbool.h>
23
24#include "wms_app.h"
25
27#define APP_LIB_RADIO_CFG_NAME 0x6e080bb7
28
30#define APP_LIB_RADIO_CFG_VERSION 0x201
31
33#define APP_LIB_RADIO_CFG_POWER_MAX_CNT 10
34
36#define APP_LIB_RADIO_CFG_CURRENT_MIN 1
37
38
47#define APP_LIB_RADIO_CFG_CURRENT_MAX 1000
48
77
93typedef struct
94{
100 uint32_t pd_to_sby;
106 uint32_t sby_to_tx;
112 uint32_t sby_to_rx;
117
135typedef void (*app_lib_radio_cfg_fem_set_power_cb_f)(uint8_t power_index);
136
151typedef void (*app_lib_radio_cfg_fem_cmd_cb_f)(uint8_t femcmd);
152
167
177typedef struct
178{
180 uint32_t tx_power_raw;
184 uint8_t value_set;
186 uint16_t tx_current;
188
214
222 (const app_lib_radio_cfg_fem_t * fem_cfg);
223
231 (const app_lib_radio_cfg_power_t * power_cfg);
232
243typedef app_res_e (*app_lib_radio_cfg_pa_setup_f) (const void * pa_cfg);
244
252typedef app_res_e (*app_lib_radio_cfg_band_setup_f) (uint32_t band_mask);
253
274
275#endif /* APP_LIB_RADIO_CONFIG_H_ */
app_res_e
Definition wms_app.h:202
app_lib_radio_cfg_fem_cmd_cb_f femCmd
app_lib_radio_cfg_femcmd_e
FEM control command from firmware to application.
@ APP_LIB_RADIO_CFG_FEM_STANDBY
@ APP_LIB_RADIO_CFG_FEM_TX_ON
@ APP_LIB_RADIO_CFG_FEM_PWR_ON
@ APP_LIB_RADIO_CFG_FEM_PWR_OFF
@ APP_LIB_RADIO_CFG_FEM_RX_ON
app_lib_radio_cfg_band_setup_f bandSetup
app_res_e(* app_lib_radio_cfg_power_setup_f)(const app_lib_radio_cfg_power_t *power_cfg)
Setup radio configuration / power level settings.
void(* app_lib_radio_cfg_fem_cmd_cb_f)(uint8_t femcmd)
Callback function to control FEM state.
app_lib_radio_cfg_fem_set_power_cb_f setPower
app_res_e(* app_lib_radio_cfg_pa_setup_f)(const void *pa_cfg)
Setup radio PA configuration, relevant only for platforms that require PA configuration (e....
app_lib_radio_cfg_pa_setup_f paSetup
app_res_e(* app_lib_radio_cfg_fem_setup_f)(const app_lib_radio_cfg_fem_t *fem_cfg)
Setup FEM control.
#define APP_LIB_RADIO_CFG_POWER_MAX_CNT
Maximum amount of configurable power levels.
app_lib_radio_cfg_fem_setup_f femSetup
void(* app_lib_radio_cfg_fem_set_power_cb_f)(uint8_t power_index)
Callback function to set radio TX power.
app_res_e(* app_lib_radio_cfg_band_setup_f)(uint32_t band_mask)
Setup radio band configuration, relevant only for DECT platforms.
app_lib_radio_cfg_fem_timings_t femTimings
app_lib_radio_cfg_power_setup_f powerSetup
Definition for single TX power level.
Radio FEM configuration structure from application to firmware.
FEM state transition delays.
Radio FEM configuration structure from application to firmware.
List of library functions.