L14-Click 1.0
STM32WLE5CC LoRaWAN Sensor Platform
Loading...
Searching...
No Matches
radio_conf.h File Reference

Header of Radio configuration. More...

#include "platform.h"
#include "subghz.h"
#include "stm32_mem.h"
#include "mw_log_conf.h"
#include "radio_board_if.h"
#include "utilities_def.h"
#include "sys_debug.h"
Include dependency graph for radio_conf.h:

Go to the source code of this file.

Macros

#define SMPS_DRIVE_SETTING_DEFAULT   SMPS_DRV_40
 drive value used anytime radio is NOT in TX low power mode
#define SMPS_DRIVE_SETTING_MAX   SMPS_DRV_60
 drive value used anytime radio is in TX low power mode TX low power mode is the worst case because the PA sinks from SMPS while in high power mode, current is sunk directly from the battery
#define XTAL_FREQ   ( 32000000UL )
 Provides the frequency of the chip running on the radio and the frequency step.
#define XTAL_DEFAULT_CAP_VALUE   ( 0x20UL )
 in XO mode, set internal capacitor (from 0x00 to 0x2F starting 11.2pF with 0.47pF steps)
#define TCXO_CTRL_VOLTAGE   TCXO_CTRL_1_7V
 voltage of vdd tcxo.
#define RF_WAKEUP_TIME   ( 1UL )
 Radio maximum wakeup time (in ms).
#define DCDC_ENABLE   ( 1UL )
 DCDC is enabled.
#define CRITICAL_SECTION_BEGIN()
 macro used to enter the critical section
#define CRITICAL_SECTION_END()
 macro used to exit the critical section
#define RADIO_INIT   MX_SUBGHZ_Init
 SUBGHZ interface init to radio Middleware.
#define RADIO_DELAY_MS   HAL_Delay
 Delay interface to radio Middleware.
#define RADIO_MEMSET8(dest, value, size)
 Memset utilities interface to radio Middleware.
#define RADIO_MEMCPY8(dest, src, size)
 Memcpy utilities interface to radio Middleware.

Detailed Description

Header of Radio configuration.

Author
MCD Application Team
Attention

Copyright (c) 2026 STMicroelectronics. All rights reserved.

This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.

Definition in file radio_conf.h.

Macro Definition Documentation

◆ CRITICAL_SECTION_BEGIN

#define CRITICAL_SECTION_BEGIN ( )
Value:
#define UTILS_ENTER_CRITICAL_SECTION()
macro used to enter the critical section

macro used to enter the critical section

Definition at line 108 of file radio_conf.h.

◆ CRITICAL_SECTION_END

#define CRITICAL_SECTION_END ( )
Value:
#define UTILS_EXIT_CRITICAL_SECTION()
macro used to exit the critical section

macro used to exit the critical section

Definition at line 114 of file radio_conf.h.

◆ DCDC_ENABLE

#define DCDC_ENABLE   ( 1UL )

DCDC is enabled.

Remarks
this define is only used if the DCDC is present on the board
Note
override the default configuration of radio_driver.c

Definition at line 92 of file radio_conf.h.

◆ RADIO_DELAY_MS

#define RADIO_DELAY_MS   HAL_Delay

Delay interface to radio Middleware.

Definition at line 126 of file radio_conf.h.

◆ RADIO_INIT

#define RADIO_INIT   MX_SUBGHZ_Init

SUBGHZ interface init to radio Middleware.

Definition at line 121 of file radio_conf.h.

◆ RADIO_MEMCPY8

#define RADIO_MEMCPY8 ( dest,
src,
size )
Value:
UTIL_MEM_cpy_8( dest, src, size )

Memcpy utilities interface to radio Middleware.

Definition at line 136 of file radio_conf.h.

◆ RADIO_MEMSET8

#define RADIO_MEMSET8 ( dest,
value,
size )
Value:
UTIL_MEM_set_8( dest, value, size )

Memset utilities interface to radio Middleware.

Definition at line 131 of file radio_conf.h.

◆ RF_WAKEUP_TIME

#define RF_WAKEUP_TIME   ( 1UL )

Radio maximum wakeup time (in ms).

Note
override the default configuration of radio_driver.c

Definition at line 85 of file radio_conf.h.

◆ SMPS_DRIVE_SETTING_DEFAULT

#define SMPS_DRIVE_SETTING_DEFAULT   SMPS_DRV_40

drive value used anytime radio is NOT in TX low power mode

Note
override the default configuration of radio_driver.c

Definition at line 52 of file radio_conf.h.

◆ SMPS_DRIVE_SETTING_MAX

#define SMPS_DRIVE_SETTING_MAX   SMPS_DRV_60

drive value used anytime radio is in TX low power mode TX low power mode is the worst case because the PA sinks from SMPS while in high power mode, current is sunk directly from the battery

Note
override the default configuration of radio_driver.c

Definition at line 60 of file radio_conf.h.

◆ TCXO_CTRL_VOLTAGE

#define TCXO_CTRL_VOLTAGE   TCXO_CTRL_1_7V

voltage of vdd tcxo.

Note
override the default configuration of radio_driver.c

Definition at line 79 of file radio_conf.h.

◆ XTAL_DEFAULT_CAP_VALUE

#define XTAL_DEFAULT_CAP_VALUE   ( 0x20UL )

in XO mode, set internal capacitor (from 0x00 to 0x2F starting 11.2pF with 0.47pF steps)

Note
override the default configuration of radio_driver.c

Definition at line 73 of file radio_conf.h.

◆ XTAL_FREQ

#define XTAL_FREQ   ( 32000000UL )

Provides the frequency of the chip running on the radio and the frequency step.

Remarks
These defines are used for computing the frequency divider to set the RF frequency
Note
override the default configuration of radio_driver.c

Definition at line 67 of file radio_conf.h.