Interface: tos.chips.tda5250.HplTda5250Config
interface HplTda5250Config
This interface provides commands and events for configureing the radio modes.
- Author:
-
Kevin Klues
Commands
command void HighLNAGain()
command void InvertData()
command bool IsDataRateBetweenHalvesOfThresholds()
command bool IsDataRateBetweenThresholds()
command bool IsRSSIEqualToThreshold()
command bool IsRSSIGreaterThanThreshold()
command bool IsTxRxPinControlled()
command void LowLNAGain()
command void PowerDown()
command void PowerUp()
command void reset()
command void ResetTimerMode()
command void SetIQFilter(tda5250_iq_cutoff_freqs_t iq_cutoff)
command void SetLowPassFilter(tda5250_data_cutoff_freqs_t data_cutoff)
command void SetOffTime_ms(float time)
command void SetOnTime_ms(float time)
command void SetRadioClock(tda5250_clock_out_freqs_t freq)
command void SetRFPower(uint8_t value)
command void SetRSSIThreshold(uint8_t value)
command void SetRxMode()
command void SetSelfPollingMode(float on_time, float off_time)
command void SetSlaveMode()
command void SetSleepMode()
command void SetTimerMode(float on_time, float off_time)
command void SetTxMode()
command void TuneNomFreqWithBipolarFET(tda5250_bipolar_fet_ramp_times_t ramp_time, tda5250_cap_vals_t cap_val)
command void TuneNomFreqWithFET(tda5250_cap_vals_t cap_val)
command void UseASK(tda5250_cap_vals_t pos_shift)
command void UseFSK(tda5250_cap_vals_t pos_shift, tda5250_cap_vals_t neg_shift)
command void UsePeakDetector()
command void UseRCIntegrator()
command void UseRSSIDataValidDetection(uint8_t value, uint16_t lower_bound, uint16_t upper_bound)
command void UseSetClock()
command void UseVCCDataValidDetection(uint8_t value, uint16_t lower_bound, uint16_t upper_bound)
Events
event void PWDDDInterrupt()
Commands - Details
ADCContinuousMode
command void ADCContinuousMode()
ADCOneShotMode
command void ADCOneShotMode()
ControlRxTxExternally
command void ControlRxTxExternally()
ControlRxTxInternally
command void ControlRxTxInternally()
DataValidContinuousMode
command void DataValidContinuousMode()
DataValidOneShotMode
command void DataValidOneShotMode()
DisableReceiverInTimedModes
command void DisableReceiverInTimedModes()
DontInvertData
command void DontInvertData()
EnableReceiverInTimedModes
command void EnableReceiverInTimedModes()
GetADCPowerDownFeedbackBit
command uint8_t GetADCPowerDownFeedbackBit()
- Returns:
-
"0" if ADC power is up
"1" otherwise.
GetADCSelectFeedbackBit
command uint8_t GetADCSelectFeedbackBit()
- Returns:
-
"0" if ADC connected to Vcc/5.
"1" if ADC connected to RSSI voltage.
GetRSSIValue
command uint8_t GetRSSIValue()
- Returns:
-
Current RSSI.
HighLNAGain
command void HighLNAGain()
InvertData
command void InvertData()
IsDataRateBetweenHalvesOfThresholds
command bool IsDataRateBetweenHalvesOfThresholds()
- Returns:
-
TRUE if the data rate is between the halves of the lower and upper threshold
FALSE otherwise.
IsDataRateBetweenThresholds
command bool IsDataRateBetweenThresholds()
- Returns:
-
TRUE if data rate is between the lower and upper threshold
FALSE otherwise.
IsDataRateLessThanHalfOfLowerThreshold
command bool IsDataRateLessThanHalfOfLowerThreshold()
- Returns:
-
TRUE if data rate is less than half of the lower threshold
FALSE otherwise.
IsDataRateLessThanHalfOfUpperThreshold
command bool IsDataRateLessThanHalfOfUpperThreshold()
- Returns:
-
TRUE if data rate is less than half of the upper threshold
FALSE otherwise.
IsDataRateLessThanLowerThreshold
command bool IsDataRateLessThanLowerThreshold()
- Returns:
-
TRUE if data rate is less than lower threshold
FALSE otherwise.
IsDataRateLessThanUpperThreshold
command bool IsDataRateLessThanUpperThreshold()
- Returns:
-
TRUE if data rate is less than upper threshold
FALSE otherwise.
IsRSSIEqualToThreshold
command bool IsRSSIEqualToThreshold()
- Returns:
-
TRUE if RSSI equals the threshold value
FALSE otherwise.
IsRSSIGreaterThanThreshold
command bool IsRSSIGreaterThanThreshold()
- Returns:
-
TRUE if RSSI greater than threshold value
FALSE otherwise.
IsTxRxPinControlled
command bool IsTxRxPinControlled()
- Returns:
-
TRUE if radiomodes can be set via pin
FALSE otherwise.
LowLNAGain
command void LowLNAGain()
PowerDown
command void PowerDown()
PowerUp
command void PowerUp()
reset
command void reset()
ResetSelfPollingMode
command void ResetSelfPollingMode()
ResetTimerMode
command void ResetTimerMode()
RunInNormalMode
command void RunInNormalMode()
RunInTestMode
command void RunInTestMode()
SetClockOffDuringPowerDown
command void SetClockOffDuringPowerDown()
SetClockOnDuringPowerDown
command void SetClockOnDuringPowerDown()
SetIQFilter
command void SetIQFilter(tda5250_iq_cutoff_freqs_t iq_cutoff)
- Parameters:
-
iq_cutoff - IQ filter characteristics. For recognized values see tda5250Const.h
SetLowerDataRateThreshold
command void SetLowerDataRateThreshold(uint16_t value)
- Parameters:
-
Lower - data rate threshold value.
SetLowPassFilter
command void SetLowPassFilter(tda5250_data_cutoff_freqs_t data_cutoff)
- Parameters:
-
data_cutoff - LowPassFilter characteristics. For recognized values see tda5250Const.h
SetOffTime_ms
command void SetOffTime_ms(float time)
- Parameters:
-
time - The time (ms) the radio is off.
SetOnTime_ms
command void SetOnTime_ms(float time)
- Parameters:
-
time - The time (ms) the radio is on.
SetRadioClock
command void SetRadioClock(tda5250_clock_out_freqs_t freq)
- Parameters:
-
freq - The new clock frequency (see tda5250.h).
SetRFPower
command void SetRFPower(uint8_t value)
- Parameters:
-
RF - Power.
SetRSSIThreshold
command void SetRSSIThreshold(uint8_t value)
- Parameters:
-
RSSI - threshold value.
SetRxMode
command void SetRxMode()
SetSelfPollingMode
command void SetSelfPollingMode(float on_time, float off_time)
- Parameters:
-
on_time - The time (ms) the radio is on.
-
off_time - The time (ms) the radio is off.
SetSlaveMode
command void SetSlaveMode()
SetSleepMode
command void SetSleepMode()
SetTimerMode
command void SetTimerMode(float on_time, float off_time)
- Parameters:
-
on_time - The time (ms) the radio is on.
-
off_time - The time (ms) the radio is off.
SetTxMode
command void SetTxMode()
SetUpperDataRateThreshold
command void SetUpperDataRateThreshold(uint16_t value)
- Parameters:
-
Upper - data rate threshold value.
SetVCCOver5Threshold
command void SetVCCOver5Threshold(uint8_t value)
- Parameters:
-
value - Threshold value.
TuneNomFreqWithBipolarFET
command void TuneNomFreqWithBipolarFET(tda5250_bipolar_fet_ramp_times_t ramp_time, tda5250_cap_vals_t cap_val)
- Parameters:
-
ramp_time - Ramp time.
-
cap_val - Capacitor value.
TuneNomFreqWithFET
command void TuneNomFreqWithFET(tda5250_cap_vals_t cap_val)
- Parameters:
-
cap_val - Capacitor value.
Use18MHzClock
command void Use18MHzClock()
Use32KHzClock
command void Use32KHzClock()
UseASK
command void UseASK(tda5250_cap_vals_t pos_shift)
- Parameters:
-
pos_shift - Capacitor value for positive shift. (FIXME: makes sense?)
UseDataAlwaysValid
command void UseDataAlwaysValid()
UseDataValidDetection
command void UseDataValidDetection()
UseFSK
command void UseFSK(tda5250_cap_vals_t pos_shift, tda5250_cap_vals_t neg_shift)
- Parameters:
-
pos_shift - Capacitor value for positive shift.
-
neg_shift - Capacitor value for negative shift.
UseHighTxPower
command void UseHighTxPower()
UseLowTxPower
command void UseLowTxPower()
UsePeakDetector
command void UsePeakDetector()
UseRCIntegrator
command void UseRCIntegrator()
UseRSSIDataValidDetection
command void UseRSSIDataValidDetection(uint8_t value, uint16_t lower_bound, uint16_t upper_bound)
- Parameters:
-
value - The RSSI threshold for valid data.
-
lower_bound - Lower data rate threshold.
-
upper_bound - Upper data rate threshold.
UseSetClock
command void UseSetClock()
UseVCCDataValidDetection
command void UseVCCDataValidDetection(uint8_t value, uint16_t lower_bound, uint16_t upper_bound)
- Parameters:
-
value - The voltage threshold for valid data.
-
lower_bound - Lower data rate threshold.
-
upper_bound - Upper data rate threshold.
UseWindowCountAsClock
command void UseWindowCountAsClock()
Events - Details
PWDDDInterrupt
event void PWDDDInterrupt()