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
956b63a4
Commit
956b63a4
authored
Jul 31, 2011
by
maniacbug
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sed s/boolean/bool/g
parent
14c34ca2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
RF24.cpp
RF24.cpp
+6
-5
RF24.h
RF24.h
+2
-2
No files found.
RF24.cpp
View file @
956b63a4
...
...
@@ -419,7 +419,7 @@ void RF24::powerUp(void)
/******************************************************************/
bool
ean
RF24
::
write
(
const
void
*
buf
,
uint8_t
len
)
bool
RF24
::
write
(
const
void
*
buf
,
uint8_t
len
)
{
bool
result
=
false
;
...
...
@@ -716,7 +716,7 @@ bool RF24::isAckPayloadAvailable(void)
/****************************************************************************/
bool
ean
RF24
::
isPVariant
(
void
)
bool
RF24
::
isPVariant
(
void
)
{
return
p_variant
;
}
...
...
@@ -752,14 +752,14 @@ void RF24::setAutoAck( uint8_t pipe, bool enable )
/******************************************************************/
bool
ean
RF24
::
testCarrier
(
void
)
bool
RF24
::
testCarrier
(
void
)
{
return
(
read_register
(
CD
)
&
1
);
}
/****************************************************************************/
bool
ean
RF24
::
testRPD
(
void
)
bool
RF24
::
testRPD
(
void
)
{
return
(
read_register
(
RPD
)
&
1
)
;
}
...
...
@@ -828,8 +828,9 @@ rf24_pa_dbm_e RF24::getPALevel(void)
/******************************************************************/
bool
ean
RF24
::
setDataRate
(
rf24_datarate_e
speed
)
bool
RF24
::
setDataRate
(
rf24_datarate_e
speed
)
{
bool
result
=
false
;
uint8_t
setup
=
read_register
(
RF_SETUP
)
;
// HIGH and LOW '00' is 1Mbs - our default
...
...
RF24.h
View file @
956b63a4
...
...
@@ -488,7 +488,7 @@ public:
* @return true if the hardware is nRF24L01+ (or compatible) and false
* if its not.
*/
bool
ean
isPVariant
(
void
)
;
bool
isPVariant
(
void
)
;
/**
* Call this when you get an interrupt to find out why
...
...
@@ -543,7 +543,7 @@ public:
*
* @return true if signal => -64dBm, false if not
*/
bool
ean
testRPD
(
void
)
;
bool
testRPD
(
void
)
;
/**
* Set Power Amplifier (PA) level to one of four levels.
...
...
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