Commit c02a51c2 authored by unknown's avatar unknown

transactions beta

parent 7fdc708b
...@@ -80,6 +80,27 @@ private: ...@@ -80,6 +80,27 @@ private:
uint8_t addr_width; /**< The address width to use - 3,4 or 5 bytes. */ uint8_t addr_width; /**< The address width to use - 3,4 or 5 bytes. */
uint32_t txRxDelay; /**< Var for adjusting delays depending on datarate */ 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: public:
/** /**
...@@ -125,7 +146,7 @@ public: ...@@ -125,7 +146,7 @@ public:
* Call this in setup(), before calling any other methods. * Call this in setup(), before calling any other methods.
* @code radio.begin() @endcode * @code radio.begin() @endcode
*/ */
void begin(void); bool begin(void);
/** /**
* Start listening on the pipes opened for reading. * Start listening on the pipes opened for reading.
...@@ -1309,6 +1330,7 @@ private: ...@@ -1309,6 +1330,7 @@ private:
* @section News News * @section News News
* *
* **March 2015**<br> * **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 * - 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="MRAA.html">MRAA</a> support added ( Galileo, Edison, etc)
* - <a href="BBB.html">BBB/Generic Linux </a> support via spidev & MRAA * - <a href="BBB.html">BBB/Generic Linux </a> support via spidev & MRAA
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment