Skip to content

Commit

Permalink
docupdate
Browse files Browse the repository at this point in the history
  • Loading branch information
maniacbug committed Jan 5, 2012
1 parent d1653e8 commit b3f7f51
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions RF24.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,36 @@
version 2 as published by the Free Software Foundation.
*/

/**
* @file RF24.h
*
* Class declaration for RF24 and helper enums
*/

#ifndef __RF24_H__
#define __RF24_H__

#include <RF24_config.h>

/**
* Power Amplifier level.
*
* For use with setPALevel()
*/
typedef enum { RF24_PA_MIN = 0,RF24_PA_LOW, RF24_PA_HIGH, RF24_PA_MAX, RF24_PA_ERROR } rf24_pa_dbm_e ;

/**
* Data rate. How fast data moves through the air.
*
* For use with setDataRate()
*/
typedef enum { RF24_1MBPS = 0, RF24_2MBPS, RF24_250KBPS } rf24_datarate_e;

/**
* CRC Length. How big (if any) of a CRC is included.
*
* For use with setCRCLength()
*/
typedef enum { RF24_CRC_DISABLED = 0, RF24_CRC_8, RF24_CRC_16 } rf24_crclength_e;

/**
Expand Down Expand Up @@ -630,6 +653,14 @@ class RF24
* node can then see how long the whole cycle took.
*/

/**
* @example nordic_fob.pde
*
* This is an example of how to use the RF24 class to receive signals from the
* Sparkfun Nordic FOB. See http://www.sparkfun.com/products/8602 .
* Thanks to Kirk Mower for providing test hardware.
*/

/**
* @example led_remote.pde
*
Expand Down

0 comments on commit b3f7f51

Please sign in to comment.