Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
RF24
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
RF24
Commits
b3f7f515
Commit
b3f7f515
authored
Jan 04, 2012
by
maniacbug
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docupdate
parent
d1653e8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
0 deletions
+31
-0
RF24.h
RF24.h
+31
-0
No files found.
RF24.h
View file @
b3f7f515
...
@@ -6,13 +6,36 @@
...
@@ -6,13 +6,36 @@
version 2 as published by the Free Software Foundation.
version 2 as published by the Free Software Foundation.
*/
*/
/**
* @file RF24.h
*
* Class declaration for RF24 and helper enums
*/
#ifndef __RF24_H__
#ifndef __RF24_H__
#define __RF24_H__
#define __RF24_H__
#include <RF24_config.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
;
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
;
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
;
typedef
enum
{
RF24_CRC_DISABLED
=
0
,
RF24_CRC_8
,
RF24_CRC_16
}
rf24_crclength_e
;
/**
/**
...
@@ -630,6 +653,14 @@ public:
...
@@ -630,6 +653,14 @@ public:
* node can then see how long the whole cycle took.
* 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
* @example led_remote.pde
*
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment