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
e682b7dd
Commit
e682b7dd
authored
May 06, 2014
by
TMRh20
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4 from a-lurker/master
Restore closeReadingPipe merge for mysensors
parents
6530f954
1289f85c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
RF24.cpp
RF24.cpp
+7
-0
RF24.h
RF24.h
+7
-0
No files found.
RF24.cpp
View file @
e682b7dd
...
@@ -862,6 +862,13 @@ void RF24::openReadingPipe(uint8_t child, uint64_t address)
...
@@ -862,6 +862,13 @@ void RF24::openReadingPipe(uint8_t child, uint64_t address)
/****************************************************************************/
/****************************************************************************/
void
RF24
::
closeReadingPipe
(
uint8_t
pipe
)
{
write_register
(
EN_RXADDR
,
read_register
(
EN_RXADDR
)
&
~
_BV
(
pgm_read_byte
(
&
child_pipe_enable
[
pipe
])));
}
/****************************************************************************/
void
RF24
::
toggle_features
(
void
)
void
RF24
::
toggle_features
(
void
)
{
{
...
...
RF24.h
View file @
e682b7dd
...
@@ -208,6 +208,13 @@ public:
...
@@ -208,6 +208,13 @@ public:
*/
*/
void
openReadingPipe
(
uint8_t
number
,
uint64_t
address
);
void
openReadingPipe
(
uint8_t
number
,
uint64_t
address
);
/**
* Close a pipe after it has been previously opened.
* Can be safely called without having previously opened a pipe.
* @param pipe Which pipe # to close, 0-5.
*/
void
closeReadingPipe
(
uint8_t
pipe
)
;
/**@}*/
/**@}*/
/**
/**
* @name Advanced Operation
* @name Advanced Operation
...
...
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