hpltda5250config.nc

来自「tinyos-2.x.rar」· NC 代码 · 共 502 行 · 第 1/2 页

NC
502
字号
    */
   async command void ResetTimerMode();
      
   /**
   * Set the mode of the radio to SetSelfPollingMode.
   *
   * @param on_time The time (ms) the radio is on.
   * @param off_time The time (ms) the radio is off.
   */
   async command void SetSelfPollingMode(float on_time, float off_time);
      
   /**
    * Reset the timers set in SetSelfPollingMode.
    */
   async command void ResetSelfPollingMode();

   /**
    * Set the contents of the LPF register with the Low pass filter 
    * 
    * @param data_cutoff LowPassFilter characteristics. For recognized values see tda5250Const.h
    */
   async command void SetLowPassFilter(tda5250_data_cutoff_freqs_t data_cutoff);
   
   /**
   * Set the contents of the LPF register with the IQ filter value.
   * 
   * @param iq_cutoff IQ filter characteristics. For recognized values see tda5250Const.h
   */
   async command void SetIQFilter(tda5250_iq_cutoff_freqs_t iq_cutoff);

   /**
    *  Set the on time time of the radio.
    *  This only makes sense when radio is in TIMER or SELF_POLLING Mode.
    * 
    *  @param time The time (ms) the radio is on.
   */
   async command void SetOnTime_ms(float time);
      
   /**
   *  Set the off time time of the radio.
   *  This only makes sense when radio is in TIMER or SELF_POLLING Mode.
   * 
   *  @param time The time (ms) the radio is off.
   */
   async command void SetOffTime_ms(float time);

   
   
   /**
   * Initialzes the CLK_DIV so that SetRadioClock(tda5250_clock_out_freqs_t freq)
   * can be used.
   */
   async command void UseSetClock();
   
   /**
   * Sets the CLK_DIV to specified output. UseSetClock() must be called before!
   * Available frequencies given in TDA5250ClockFreq_t struct in tda5250Const.h.
   *
   * @param freq The new clock frequency (see tda5250.h).
   */
   async command void SetRadioClock(tda5250_clock_out_freqs_t freq);
   
   /**
   * Sets the CLK_DIV to 18Mhz output.
   */
   async command void Use18MHzClock();
   
   /**
   * Sets the CLK_DIV to 32Khz output.
   */
   async command void Use32KHzClock();
   
   /**
   * Sets the CLK_DIV to use window count as output.
   */
   async command void UseWindowCountAsClock();
   


   /**
   * Set the value on the attached Potentiometer
   * for the RF Power setting.
   *
   * @param RF Power.
   */
   async command void SetRFPower(uint8_t value);

   /**
   * Sets the RSSI threshold for internal evaluation.
   *
   * @param RSSI threshold value.
   */
   async command void SetRSSIThreshold(uint8_t value);
   
   /** 
   * Sets the threshold values for internal evaluation.
   * (FIXME: what threshold is set with this?)
   *
   * @param value Threshold value.
   */
   async command void SetVCCOver5Threshold(uint8_t value);
   
   /** 
   * Sets the lower data rate threshold for data valid detection.
   *
   * @param Lower data rate threshold value.
   */
   async command void SetLowerDataRateThreshold(uint16_t value);
   
   /** 
   * Sets the upper data rate threshold for data valid detection.
   *
   * @param Upper data rate threshold value.
   */
   async command void SetUpperDataRateThreshold(uint16_t value);

   /**
   * Gets the currnet RSSI value.
   *
   * @return Current RSSI.
   */
   async command uint8_t GetRSSIValue();
   
   /**
   * Gets the current status of the ADC select feedback Bit. 
   * The ADC select feedback Bit is "0" if the ADC is connected to 
   * a resistor network dividing the Vcc voltage by 5.
   * The ADC select feedback Bit is "1" if the ADC is connected to
   * the RSSI voltage.
   *
   * @return "0" if ADC connected to Vcc/5.
   *         "1" if ADC connected to RSSI voltage.
   */
   async command uint8_t GetADCSelectFeedbackBit();
   
   /**
   * Gets the current status of the ADC Power down feedback Bit.
   * The ADC Power down feedback Bit is "0" if ADC power is up.
   * It is "1" if ADC power is down.
   *
   * @return "0" if ADC power is up
   *         "1" otherwise.
   */
   async command uint8_t GetADCPowerDownFeedbackBit();
   
   /**
   * Checks if the data rate is less than the lower threshold set by
   * SetLowerDataRateThreshold(uint16_t value).
   *
   * @return TRUE if data rate is less than lower threshold
   *         FALSE otherwise.
   */
   async command bool IsDataRateLessThanLowerThreshold();
   
   /**
   * Checks if the data rate is between the lower threshold set by
   * SetLowerDataRateThreshold(uint16_t value) and upper threshold set by
   * SetUpperDataRateThreshold(uint16_t value).
   *
   * @return TRUE if data rate is between the lower and upper threshold
   *         FALSE otherwise.
   */
   async command bool IsDataRateBetweenThresholds();
   
   /**
   * Checks if the data rate is less than the upper threshold set by
   * SetUpperDataRateThreshold(uint16_t value).
   *
   * @return TRUE if data rate is less than upper threshold
   *         FALSE otherwise.
   */
   async command bool IsDataRateLessThanUpperThreshold();
   
   /**
   * Checks if the data rate is less than half of the lower threshold set by
   * SetLowerDataRateThreshold(uint16_t value).
   *
   * @return TRUE if data rate is less than half of the lower threshold
   *         FALSE otherwise.
   */
   async command bool IsDataRateLessThanHalfOfLowerThreshold();
   
   /**
   * Checks if the data rate is between the halves of the lower threshold set by
   * SetLowerDataRateThreshold(uint16_t value) and the upper threshold set by
   * SetUpperDataRateThreshold(uint16_t value).
   *
   * @return TRUE if the data rate is between the halves of the lower and upper threshold
   *         FALSE otherwise.
   */
   async command bool IsDataRateBetweenHalvesOfThresholds();
   
   /**
   * Checks if the data rate is half of the upper threshold set by
   * SetUpperDataRateThreshold(uint16_t value).
   *
   * @return TRUE if data rate is less than half of the upper threshold
   *         FALSE otherwise.
   */
   async command bool IsDataRateLessThanHalfOfUpperThreshold();
   
   /**
   * Checks if the current RSSI equals the threshold set 
   * with SetRSSIThreshold(uint8_t value).
   *
   * @return TRUE if RSSI equals the threshold value
   *         FALSE otherwise.
   */
   async command bool IsRSSIEqualToThreshold();
   
   /**
   * Checks if the current RSSI is graeter than the threshold set 
   * with SetRSSIThreshold(uint8_t value).
   *
   * @return TRUE if RSSI greater than threshold value
   *         FALSE otherwise.
   */
   async command bool IsRSSIGreaterThanThreshold();

   /**
   * Checks if the Tx Rx and Sleep radiomodes can be set via pin.
   * This only concerns SetTxMode(), SetRxMode() and SetSleepMode().
   *
   * @return TRUE if radiomodes can be set via pin
   *         FALSE otherwise.
   */
   async command bool IsTxRxPinControlled();
   
   /**
   * Switches the radio to TxMode when in SLAVE_MODE
   */
   async command void SetTxMode();
   
   /**
   * Switches the radio to RxMode when in SLAVE_MODE
   */
   async command void SetRxMode();
   
   /**
   * Switches the radio to SleepMode when in SLAVE_MODE
   */
   async command void SetSleepMode();

   /**
   * Notification of interrupt when in
   * TimerMode or SelfPollingMode.
   */
   async event void PWDDDInterrupt();
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?