|
L14-Click 1.0
STM32WLE5CC LoRaWAN Sensor Platform
|
Header for Radio interface configuration. More...
#include "platform.h"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. | |
Header for Radio interface configuration.
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.
| #define IS_DCDC_SUPPORTED 1U |
Definition at line 78 of file radio_board_if.h.
Referenced by RBI_IsDCDC().
| #define IS_TCXO_SUPPORTED 0U |
Definition at line 72 of file radio_board_if.h.
Referenced by RBI_IsTCXO().
| #define RBI_CONF_RFO RBI_CONF_RFO_HP |
Definition at line 66 of file radio_board_if.h.
Referenced by RBI_GetTxConfig().
| #define RBI_CONF_RFO_HP 2 |
Definition at line 49 of file radio_board_if.h.
| #define RBI_CONF_RFO_LP 1 |
Definition at line 48 of file radio_board_if.h.
| #define RBI_CONF_RFO_LP_HP 0 |
Definition at line 47 of file radio_board_if.h.
| #define RF_SW_CTRL1_GPIO_CLK_ENABLE | ( | ) |
Definition at line 94 of file radio_board_if.h.
Referenced by RBI_Init().
| #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().
| #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().
| #define RF_SW_CTRL2_GPIO_CLK_DISABLE | ( | ) |
Definition at line 100 of file radio_board_if.h.
| #define RF_SW_CTRL2_GPIO_CLK_ENABLE | ( | ) |
Definition at line 99 of file radio_board_if.h.
Referenced by RBI_Init().
| #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().
| #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().
| #define RF_SW_RX_GPIO_CLK_DISABLE | ( | ) |
Definition at line 95 of file radio_board_if.h.
| Enumerator | |
|---|---|
| RBI_RFO_LP_MAXPOWER | |
| RBI_RFO_HP_MAXPOWER | |
Definition at line 142 of file radio_board_if.h.
| enum 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.
| int32_t RBI_ConfigRFSwitch | ( | RBI_Switch_TypeDef | Config | ) |
Configure Radio Switch.
| Config | Specifies the Radio RF switch path to be set. This parameter can be one of following parameters:
|
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.
| int32_t RBI_DeInit | ( | void | ) |
DeInit Radio Switch.
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.
| int32_t RBI_GetRFOMaxPowerConfig | ( | RBI_RFOMaxPowerConfig_TypeDef | Config | ) |
Return RF Output Max Power Configuration of matching circuit.
| return | Max 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.
| int32_t RBI_GetTxConfig | ( | void | ) |
Return Board Configuration.
| 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.
| int32_t RBI_Init | ( | void | ) |
Init Radio Switch.
Definition at line 60 of file radio_board_if.c.
References RF_SW_CTRL1_GPIO_CLK_ENABLE, RF_SW_CTRL1_GPIO_PORT, RF_SW_CTRL1_PIN, RF_SW_CTRL2_GPIO_CLK_ENABLE, RF_SW_CTRL2_GPIO_PORT, and RF_SW_CTRL2_PIN.
| int32_t RBI_IsDCDC | ( | void | ) |
Get If DCDC is to be present on board.
| return | 1 if present, 0 if not present |
Definition at line 251 of file radio_board_if.c.
References IS_DCDC_SUPPORTED.
| int32_t RBI_IsTCXO | ( | void | ) |
Get If TCXO is to be present on board.
| return | 1 if present, 0 if not present |
Definition at line 225 of file radio_board_if.c.
References IS_TCXO_SUPPORTED.