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
c02a51c2
Commit
c02a51c2
authored
Mar 23, 2015
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
transactions beta
parent
7fdc708b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
1 deletion
+23
-1
RF24.h
RF24.h
+23
-1
No files found.
RF24.h
View file @
c02a51c2
...
...
@@ -80,6 +80,27 @@ private:
uint8_t
addr_width
;
/**< The address width to use - 3,4 or 5 bytes. */
uint32_t
txRxDelay
;
/**< Var for adjusting delays depending on datarate */
#if defined (ARDUINO)
protected:
/**
* SPI transactions
*
* Common code for SPI transactions including CSN toggle
*
*/
inline
void
beginTransaction
()
{
_SPI
.
beginTransaction
(
SPISettings
(
RF_SPI_SPEED
,
MSBFIRST
,
SPI_MODE0
));
csn
(
LOW
);
}
inline
void
endTransaction
()
{
csn
(
HIGH
);
_SPI
.
endTransaction
();
}
#endif
/* ARDUINO */
public:
/**
...
...
@@ -125,7 +146,7 @@ public:
* Call this in setup(), before calling any other methods.
* @code radio.begin() @endcode
*/
void
begin
(
void
);
bool
begin
(
void
);
/**
* Start listening on the pipes opened for reading.
...
...
@@ -1309,6 +1330,7 @@ private:
* @section News News
*
* **March 2015**<br>
* - Uses SPI transactions on Arduino
* - New layout for <a href="Portability.html">easier portability:</a> Break out defines & includes for individual platforms to RF24/arch
* - <a href="MRAA.html">MRAA</a> support added ( Galileo, Edison, etc)
* - <a href="BBB.html">BBB/Generic Linux </a> support via spidev & MRAA
...
...
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