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
16c49cbb
Commit
16c49cbb
authored
Aug 12, 2015
by
TMRh20
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #129 from komby/master
Added getChannel Method to allow for verification of the configured c…
parents
d85dd188
0a8b1d3d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
RF24.cpp
RF24.cpp
+5
-0
RF24.h
RF24.h
+7
-0
No files found.
RF24.cpp
View file @
16c49cbb
...
...
@@ -448,6 +448,11 @@ void RF24::setChannel(uint8_t channel)
write_register
(
RF_CH
,
rf24_min
(
channel
,
max_channel
));
}
uint8_t
RF24
::
getChannel
()
{
return
read_register
(
RF_CH
);
}
/****************************************************************************/
void
RF24
::
setPayloadSize
(
uint8_t
size
)
...
...
RF24.h
View file @
16c49cbb
...
...
@@ -711,6 +711,13 @@ s *
* @param channel Which RF channel to communicate on, 0-127
*/
void
setChannel
(
uint8_t
channel
);
/**
* Get RF communication channel
*
* @return The currently configured RF Channel
*/
uint8_t
getChannel
(
void
);
/**
* Set Static Payload Size
...
...
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