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

Header for Radio interface configuration. More...

#include "platform.h"
Include dependency graph for radio_board_if.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define RBI_CONF_RFO_LP_HP   0
#define RBI_CONF_RFO_LP   1
#define RBI_CONF_RFO_HP   2
#define RBI_CONF_RFO   RBI_CONF_RFO_HP
#define IS_TCXO_SUPPORTED   0U
#define IS_DCDC_SUPPORTED   1U
#define RF_SW_CTRL1_PIN   GPIO_PIN_8
#define RF_SW_CTRL1_GPIO_PORT   GPIOB
#define RF_SW_CTRL1_GPIO_CLK_ENABLE()
#define RF_SW_RX_GPIO_CLK_DISABLE()
#define RF_SW_CTRL2_PIN   GPIO_PIN_13
#define RF_SW_CTRL2_GPIO_PORT   GPIOC
#define RF_SW_CTRL2_GPIO_CLK_ENABLE()
#define RF_SW_CTRL2_GPIO_CLK_DISABLE()

Enumerations

enum  RBI_Switch_TypeDef { RBI_SWITCH_OFF = 0 , RBI_SWITCH_RX = 1 , RBI_SWITCH_RFO_LP = 2 , RBI_SWITCH_RFO_HP = 3 }
enum  RBI_RFOMaxPowerConfig_TypeDef { RBI_RFO_LP_MAXPOWER = 0 , RBI_RFO_HP_MAXPOWER = 1 }

Functions

int32_t RBI_Init (void)
 Init Radio Switch.
int32_t RBI_DeInit (void)
 DeInit Radio Switch.
int32_t RBI_ConfigRFSwitch (RBI_Switch_TypeDef Config)
 Configure Radio Switch.
int32_t RBI_GetTxConfig (void)
 Return Board Configuration.
int32_t RBI_IsTCXO (void)
 Get If TCXO is to be present on board.
int32_t RBI_IsDCDC (void)
 Get If DCDC is to be present on board.
int32_t RBI_GetRFOMaxPowerConfig (RBI_RFOMaxPowerConfig_TypeDef Config)
 Return RF Output Max Power Configuration of matching circuit.

Detailed Description

Header for Radio interface 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_board_if.h.

Macro Definition Documentation

◆ IS_DCDC_SUPPORTED

#define IS_DCDC_SUPPORTED   1U

Definition at line 78 of file radio_board_if.h.

Referenced by RBI_IsDCDC().

◆ IS_TCXO_SUPPORTED

#define IS_TCXO_SUPPORTED   0U

Definition at line 72 of file radio_board_if.h.

Referenced by RBI_IsTCXO().

◆ RBI_CONF_RFO

#define RBI_CONF_RFO   RBI_CONF_RFO_HP

Definition at line 66 of file radio_board_if.h.

Referenced by RBI_GetTxConfig().

◆ RBI_CONF_RFO_HP

#define RBI_CONF_RFO_HP   2

Definition at line 49 of file radio_board_if.h.

◆ RBI_CONF_RFO_LP

#define RBI_CONF_RFO_LP   1

Definition at line 48 of file radio_board_if.h.

◆ RBI_CONF_RFO_LP_HP

#define RBI_CONF_RFO_LP_HP   0

Definition at line 47 of file radio_board_if.h.

◆ RF_SW_CTRL1_GPIO_CLK_ENABLE

#define RF_SW_CTRL1_GPIO_CLK_ENABLE ( )
Value:
__HAL_RCC_GPIOB_CLK_ENABLE()

Definition at line 94 of file radio_board_if.h.

Referenced by RBI_Init().

◆ RF_SW_CTRL1_GPIO_PORT

#define RF_SW_CTRL1_GPIO_PORT   GPIOB

Definition at line 93 of file radio_board_if.h.

Referenced by RBI_ConfigRFSwitch(), RBI_DeInit(), and RBI_Init().

◆ RF_SW_CTRL1_PIN

#define RF_SW_CTRL1_PIN   GPIO_PIN_8

Definition at line 92 of file radio_board_if.h.

Referenced by RBI_ConfigRFSwitch(), RBI_DeInit(), and RBI_Init().

◆ RF_SW_CTRL2_GPIO_CLK_DISABLE

#define RF_SW_CTRL2_GPIO_CLK_DISABLE ( )
Value:
__HAL_RCC_GPIOC_CLK_DISABLE()

Definition at line 100 of file radio_board_if.h.

◆ RF_SW_CTRL2_GPIO_CLK_ENABLE

#define RF_SW_CTRL2_GPIO_CLK_ENABLE ( )
Value:
__HAL_RCC_GPIOC_CLK_ENABLE()

Definition at line 99 of file radio_board_if.h.

Referenced by RBI_Init().

◆ RF_SW_CTRL2_GPIO_PORT

#define RF_SW_CTRL2_GPIO_PORT   GPIOC

Definition at line 98 of file radio_board_if.h.

Referenced by RBI_ConfigRFSwitch(), RBI_DeInit(), and RBI_Init().

◆ RF_SW_CTRL2_PIN

#define RF_SW_CTRL2_PIN   GPIO_PIN_13

Definition at line 97 of file radio_board_if.h.

Referenced by RBI_ConfigRFSwitch(), RBI_DeInit(), and RBI_Init().

◆ RF_SW_RX_GPIO_CLK_DISABLE

#define RF_SW_RX_GPIO_CLK_DISABLE ( )
Value:
__HAL_RCC_GPIOB_CLK_DISABLE()

Definition at line 95 of file radio_board_if.h.

Enumeration Type Documentation

◆ RBI_RFOMaxPowerConfig_TypeDef

Enumerator
RBI_RFO_LP_MAXPOWER 
RBI_RFO_HP_MAXPOWER 

Definition at line 142 of file radio_board_if.h.

◆ RBI_Switch_TypeDef

Enumerator
RBI_SWITCH_OFF 
RBI_SWITCH_RX 
RBI_SWITCH_RFO_LP 
RBI_SWITCH_RFO_HP 

Definition at line 134 of file radio_board_if.h.

Function Documentation

◆ RBI_ConfigRFSwitch()

int32_t RBI_ConfigRFSwitch ( RBI_Switch_TypeDef Config)

Configure Radio Switch.

Parameters
ConfigSpecifies the Radio RF switch path to be set. This parameter can be one of following parameters:
  • RADIO_SWITCH_OFF
  • RADIO_SWITCH_RX
  • RADIO_SWITCH_RFO_LP
  • RADIO_SWITCH_RFO_HP
Returns
BSP status

Definition at line 143 of file radio_board_if.c.

References RBI_SWITCH_OFF, RBI_SWITCH_RFO_HP, RBI_SWITCH_RFO_LP, RBI_SWITCH_RX, RF_SW_CTRL1_GPIO_PORT, RF_SW_CTRL1_PIN, RF_SW_CTRL2_GPIO_PORT, and RF_SW_CTRL2_PIN.

◆ RBI_DeInit()

int32_t RBI_DeInit ( void )

DeInit Radio Switch.

Returns
BSP status

Definition at line 110 of file radio_board_if.c.

References RF_SW_CTRL1_GPIO_PORT, RF_SW_CTRL1_PIN, RF_SW_CTRL2_GPIO_PORT, and RF_SW_CTRL2_PIN.

◆ RBI_GetRFOMaxPowerConfig()

int32_t RBI_GetRFOMaxPowerConfig ( RBI_RFOMaxPowerConfig_TypeDef Config)

Return RF Output Max Power Configuration of matching circuit.

Note
never remove called by MW,
Return values
returnMax Power configuration of matching circuit for Low Power or High Power mode in dBm

Definition at line 277 of file radio_board_if.c.

References RBI_RFO_LP_MAXPOWER.

◆ RBI_GetTxConfig()

int32_t RBI_GetTxConfig ( void )

Return Board Configuration.

Return values
RBI_CONF_RFO_LP_HP
RBI_CONF_RFO_LP
RBI_CONF_RFO_HP

Definition at line 198 of file radio_board_if.c.

References RBI_CONF_RFO.

◆ RBI_Init()

int32_t RBI_Init ( void )

◆ RBI_IsDCDC()

int32_t RBI_IsDCDC ( void )

Get If DCDC is to be present on board.

Note
never remove called by MW,
Return values
return1 if present, 0 if not present

Definition at line 251 of file radio_board_if.c.

References IS_DCDC_SUPPORTED.

◆ RBI_IsTCXO()

int32_t RBI_IsTCXO ( void )

Get If TCXO is to be present on board.

Note
never remove called by MW,
Return values
return1 if present, 0 if not present

Definition at line 225 of file radio_board_if.c.

References IS_TCXO_SUPPORTED.