EasyManua.ls Logo

Semtech LR1121 - Page 61

Semtech LR1121
130 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
LR1121
User Manual Rev 1.1
UM.LR1121.W.APP Mar 2023
61 of 130
Semtech
Proprietary & Confidential
www.semtech.com
lr11xx_radio_set_rssi_calibration( context, rssi_cal_table ); // All parrameters of
rssi_cal_table set to 0
lr11xx_radio_set_rx_with_timeout_in_rtc_step( context, 0xFFFFFF );
for( int i = 0; i++; i < 17 ) // 17 is the number of elements in gain array
{
const uint8_t gain_step = MIN( gain[i], 13 );
const uint8_t lna_boost = ( gain > 13 ) ? gain - 13 : 0;
lr11xx_regmem_write_regmem32_mask( context, 0x00F20214, 0x00F00000, gain_step << 20 );
lr11xx_regmem_write_regmem32_mask( context, 0x00F3008C, 0x00070000, lna_boost << 16 );
/* Wait for 1 ms */
/* Insert here a control for your test equipment to generate a tone at RF frequency set to
freq_in_hz with an output power set to power[i] dBm */
lr11xx_radio_get_rssi_inst( context, rssi_in_dbm );
/* Add a way to log (gain[i], power[i], rssi_in_dbm) triplet to be able to compute offset and
tunes for the RSSI calibration */
}

Table of Contents

Related product manuals