Optimized high speed nRF24L01+ driver class documentation v1.4.8
TMRh20 2020 - Optimized fork of the nRF24L01+ driver
Loading...
Searching...
No Matches
spi.h
Go to the documentation of this file.
1
12#ifndef RF24_UTILITY_TEMPLATE_SPI_H_
13#define RF24_UTILITY_TEMPLATE_SPI_H_
14
15#include <stdint.h>
16
17#ifndef DOXYGEN_FORCED
18// exclude this line from the docs to prevent displaying in the list of classes
19class SPI
20#endif
21{
22
23public:
27 SPI();
28
32 void begin(int busNo);
33
39 uint8_t transfer(uint8_t tx_);
40
47 void transfernb(char* tbuf, char* rbuf, uint32_t len);
48
54 void transfern(char* buf, uint32_t len);
55
56#ifndef DOXYGEN_FORCED
57 // exclude this line from the docs to prevent warnings docs generators
58 virtual ~SPI();
59#endif
60
61private:
63 int bus;
65 uint8_t mode;
67 uint8_t bits;
69 uint32_t speed;
70};
71
74#endif // RF24_UTILITY_TEMPLATE_SPI_H_
void transfernb(char *tbuf, char *rbuf, uint32_t len)
uint8_t transfer(uint8_t tx_)
void transfern(char *buf, uint32_t len)
void begin(int busNo)