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
c4d222ce
Commit
c4d222ce
authored
Aug 02, 2015
by
komby
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added getChannel Method to allow for verification of the configured channel
parent
c79ccc70
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 @
c4d222ce
...
...
@@ -452,6 +452,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 @
c4d222ce
...
...
@@ -709,6 +709,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