From b3f7f51510aee1699386be83995c336da8fa3c44 Mon Sep 17 00:00:00 2001 From: maniacbug Date: Wed, 4 Jan 2012 21:20:39 -0800 Subject: [PATCH] docupdate --- RF24.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/RF24.h b/RF24.h index 3b90d94..8e5ca21 100644 --- a/RF24.h +++ b/RF24.h @@ -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 +/** + * 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; /** @@ -630,6 +653,14 @@ public: * 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 *