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_findValueExtended (const LRF_TxPowerTable *table, LRF_TxPowerTable_Index powerLevel, bool roundUp, bool returnBoundaryOnOutOfRange)
 Search for settings corresponding to tx power in the tx power table with extended options. 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_findValueExtended()

LRF_TxPowerTable_Entry LRF_TxPowerTable_findValueExtended ( const LRF_TxPowerTable *  table,
LRF_TxPowerTable_Index  powerLevel,
bool  roundUp,
bool  returnBoundaryOnOutOfRange 
)

Search for settings corresponding to tx power in the tx power table with extended options.

Parameters
tablepointer to the tx power table to be searched
powerLevelrequested power level
roundUpdecides if round up or down when an exact match is not found
returnBoundaryOnOutOfRangeif true, return boundary values instead of invalid when out of range
Returns
Settings corresponding to power level based on rounding and boundary options, or LRF_TxPowerEntry_INVALID_VALUE if no valid setting found and returnBoundaryOnOutOfRange is false

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_resetSettingsState(), LRF_TxPowerTable_findValue(), and RCL_txPowerLookup().