IQRF SPI library for Arduino  Version 1.2
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
IQSPI.h
Go to the documentation of this file.
1 
22 #ifndef IQSPI_H
23 #define IQSPI_H
24 
25 #define IQSPI_CLOCK 250000
26 
27 #if defined(__PIC32MX__)
28 #include <WProgram.h>
29 #include <DSPI.h>
30 #else
31 #include <Arduino.h>
32 #include <SPI.h>
33 #endif
34 #include <stdint.h>
35 
36 #include "IQRFSettings.h"
37 
41 class IQSPI {
42 public:
43  void begin();
44  void end();
45  uint8_t transfer(uint8_t txByte);
46 private:
47 #if defined(__PIC32MX__)
48  DSPI0 spi;
50 #endif
51 };
52 
53 #endif
uint8_t transfer(uint8_t txByte)
Definition: IQSPI.cpp:55
Definition: IQSPI.h:41
void end()
Definition: IQSPI.cpp:42
void begin()
Definition: IQSPI.cpp:27