rfm12_ctrl.h File Reference

rfm12 library live control feature header More...

Go to the source code of this file.

Functions

void rfm12_set_rate (uint16_t in_datarate)
 Set the data rate of the rf12.
void rfm12_set_frequency (uint16_t in_freq)
 Set the frequency of the rf12.

Detailed Description

rfm12 library live control feature header

Author:
Soeren Heisrath
Hans-Gert Dahmen
Peter Fuhrmann
Version:
0.9.0
Date:
08.09.09

This header declares all functions necessary for setting the baud rate and frquency.

Note:
It is usually not required to explicitly include this header, as this is already done by rfm12.h.
Todo:
Add more livectrl functions.

Function Documentation

void rfm12_set_frequency ( uint16_t  in_freq  ) 

Set the frequency of the rf12.

The frequency has to be specified using the RFM12_FREQUENCY_CALC_433(x) macro.

Please refer to the rfm12 library configuration header for a demo macro usage.
The frequency calculation macro can be found in rfm12_hw.h. It is not included as a function for code-size reasons.

void rfm12_set_rate ( uint16_t  in_datarate  ) 

Set the data rate of the rf12.

The data rate has to be specified using the following macros:

  • RFM12_DATARATE_CALC_HIGH(x) for rates >= 2700 Baud
  • RFM12_DATARATE_CALC_LOW(x) for rates from 340 to < 2700 Baud

Please refer to the rfm12 library configuration header for a demo macro usage.
The data rate calculation macros can be found in rfm12_hw.h. They are not included as a function for code-size reasons.



Das LABOR
Generated on Tue Dec 1 17:24:00 2009 for rfm12lib by doxygen 1.6.1