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
b715bf0f
Commit
b715bf0f
authored
Aug 02, 2011
by
maniacbug
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Comment cleanups
parent
d967f770
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
RF24.cpp
RF24.cpp
+10
-7
No files found.
RF24.cpp
View file @
b715bf0f
...
...
@@ -256,6 +256,9 @@ RF24::RF24(uint8_t _cepin, uint8_t _cspin):
void
RF24
::
setChannel
(
uint8_t
channel
)
{
// TODO: This method could take advantage of the 'wide_band' calculation
// done in setChannel() to require certain channel spacing.
write_register
(
RF_CH
,
min
(
channel
,
127
));
}
...
...
@@ -723,7 +726,7 @@ bool RF24::isPVariant(void)
return
p_variant
;
}
/******************************************************************/
/******************************************************************
**********
/
void
RF24
::
setAutoAck
(
bool
enable
)
{
...
...
@@ -752,7 +755,7 @@ void RF24::setAutoAck( uint8_t pipe, bool enable )
}
}
/******************************************************************/
/******************************************************************
**********
/
bool
RF24
::
testCarrier
(
void
)
{
...
...
@@ -766,7 +769,7 @@ bool RF24::testRPD(void)
return
(
read_register
(
RPD
)
&
1
)
;
}
/******************************************************************/
/******************************************************************
**********
/
void
RF24
::
setPALevel
(
rf24_pa_dbm_e
level
)
{
...
...
@@ -799,7 +802,7 @@ void RF24::setPALevel(rf24_pa_dbm_e level)
write_register
(
RF_SETUP
,
setup
)
;
}
/******************************************************************/
/******************************************************************
**********
/
rf24_pa_dbm_e
RF24
::
getPALevel
(
void
)
{
...
...
@@ -828,7 +831,7 @@ rf24_pa_dbm_e RF24::getPALevel(void)
return
result
;
}
/******************************************************************/
/******************************************************************
**********
/
bool
RF24
::
setDataRate
(
rf24_datarate_e
speed
)
{
...
...
@@ -875,7 +878,7 @@ bool RF24::setDataRate(rf24_datarate_e speed)
return
result
;
}
/******************************************************************/
/******************************************************************
**********
/
rf24_datarate_e
RF24
::
getDataRate
(
void
)
{
...
...
@@ -923,7 +926,7 @@ void RF24::setCRCLength(rf24_crclength_e length)
write_register
(
CONFIG
,
config
)
;
}
/******************************************************************/
/******************************************************************
**********
/
void
RF24
::
disableCRC
(
void
)
{
...
...
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