Radio Control Layer (RCL)
LRF.c File Reference
#include <stdint.h>
#include <stdlib.h>
#include <ti/drivers/rcl/RCL_Command.h>
#include <ti/drivers/rcl/RCL_Debug.h>
#include <ti/drivers/rcl/LRF.h>
#include <ti/log/Log.h>
+ Include dependency graph for LRF.c:

Functions

LRF_SetupResult LRF_loadImage (const LRF_TOPsmImage *image, uint32_t destinationAddress)
 
void LRF_initSettingsState (LRF_ApplySettingsState *state, LRF_ApplySettingsBase includeBase, uint16_t phyFeatures)
 
LRF_SetupResult LRF_applySettings (LRF_ConfigWord *config, LRF_ApplySettingsState *state, int32_t bufferAvailWords)
 
LRF_TxPowerTable_Entry LRF_TxPowerTable_findValue (const LRF_TxPowerTable *table, LRF_TxPowerTable_Index powerLevel)
 Search for settings corresponding to the highest tx power lower than specified value in the tx power table. More...
 

Function Documentation

§ LRF_loadImage()

LRF_SetupResult LRF_loadImage ( const LRF_TOPsmImage *  image,
uint32_t  destinationAddress 
)

§ LRF_initSettingsState()

void LRF_initSettingsState ( LRF_ApplySettingsState state,
LRF_ApplySettingsBase  includeBase,
uint16_t  phyFeatures 
)

§ LRF_applySettings()

§ LRF_TxPowerTable_findValue()

LRF_TxPowerTable_Entry LRF_TxPowerTable_findValue ( const LRF_TxPowerTable table,
LRF_TxPowerTable_Index  powerLevel 
)

Search for settings corresponding to the highest tx power lower than specified value in the tx power table.

Parameters
tablepointer to the tx power table to be searched
powerLevelmaximum allowed power level
Returns
Settings corresponding to a power level equal to or lower than requested or LRF_TxPowerTable_INVALID_VALUE if no valid setting was found.

References LRF_getRawTxPower(), LRF_TxPower_Use_Max, LRF_TxPower_Use_Min, LRF_TxPower_Use_Raw, LRF_TxPowerEntry_INVALID_VALUE, LRF_TxPowerTable::numEntries, LRF_TxPowerTable_Entry::power, LRF_TxPowerTable::powerTable, and LRF_TxPowerTable_Index::rawValue.

Referenced by LRF_programTxPower(), and LRF_resetSettingsState().