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

This file provides an interface layer between MW and Radio Board. More...

#include "radio_board_if.h"
#include "radio_driver.h"
Include dependency graph for radio_board_if.c:

Go to the source code of this file.

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

This file provides an interface layer between MW and Radio Board.

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.c.

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.