SHARE
TWEET

Untitled

a guest Aug 25th, 2018 119 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11. C:\Users\user\Documents\Arduino\libraries\nRF905\arduino\nRF905\examples\debug\debug.ino: In function 'void loop()':
  12.  
  13. C:\Users\user\Documents\Arduino\libraries\nRF905\arduino\nRF905\examples\debug\debug.ino:151:8: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  14.  
  15.     str = "16bit";
  16.  
  17.         ^
  18.  
  19. C:\Users\user\Documents\Arduino\libraries\nRF905\arduino\nRF905\examples\debug\debug.ino:154:8: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  20.  
  21.     str = "8bit";
  22.  
  23.         ^
  24.  
  25. C:\Users\user\Documents\Arduino\libraries\nRF905\arduino\nRF905\examples\debug\debug.ino:157:8: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  26.  
  27.     str = "Disabled";
  28.  
  29.         ^
  30.  
  31. C:\Users\user\Documents\Arduino\libraries\nRF905\arduino\nRF905\examples\debug\debug.ino:195:8: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  32.  
  33.     str = "4MHz";
  34.  
  35.         ^
  36.  
  37. C:\Users\user\Documents\Arduino\libraries\nRF905\arduino\nRF905\examples\debug\debug.ino:198:8: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  38.  
  39.     str = "2MHz";
  40.  
  41.         ^
  42.  
  43. C:\Users\user\Documents\Arduino\libraries\nRF905\arduino\nRF905\examples\debug\debug.ino:201:8: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  44.  
  45.     str = "1MHz";
  46.  
  47.         ^
  48.  
  49. C:\Users\user\Documents\Arduino\libraries\nRF905\arduino\nRF905\examples\debug\debug.ino:204:8: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  50.  
  51.     str = "500KHz";
  52.  
  53.         ^
  54.  
  55. C:\Users\user\Documents\Arduino\libraries\nRF905\arduino\nRF905\examples\debug\debug.ino:207:8: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  56.  
  57.     str = "Disabled";
  58.  
  59.         ^
  60.  
  61. In file included from C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c:11:0:
  62.  
  63. C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI\src/SPI.h:72:1: error: unknown type name 'class'
  64.  
  65.  class SPISettings {
  66.  
  67.  ^
  68.  
  69. C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI\src/SPI.h:72:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
  70.  
  71.  class SPISettings {
  72.  
  73.                    ^
  74.  
  75. C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI\src/SPI.h:156:1: error: unknown type name 'class'
  76.  
  77.  class SPIClass {
  78.  
  79.  ^
  80.  
  81. C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI\src/SPI.h:156:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
  82.  
  83.  class SPIClass {
  84.  
  85.                 ^
  86.  
  87. C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI\src/SPI.h:322:8: error: unknown type name 'SPIClass'
  88.  
  89.  extern SPIClass SPI;
  90.  
  91.         ^
  92.  
  93. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c: In function 'readConfigRegister':
  94.  
  95. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c:57:35: error: request for member 'transfer' in something not a structure or union
  96.  
  97.  #define spi_transfer_nr(data) (SPI.transfer(data))
  98.  
  99.                                    ^
  100.  
  101. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c:251:4: note: in expansion of macro 'spi_transfer_nr'
  102.  
  103.     spi_transfer_nr(NRF905_CMD_R_CONFIG | reg);
  104.  
  105.     ^
  106.  
  107. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c:56:33: error: request for member 'transfer' in something not a structure or union
  108.  
  109.  #define spi_transfer(data)  (SPI.transfer(data))
  110.  
  111.                                  ^
  112.  
  113. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c:252:10: note: in expansion of macro 'spi_transfer'
  114.  
  115.     val = spi_transfer(NRF905_CMD_NOP);
  116.  
  117.           ^
  118.  
  119. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c: In function 'writeConfigRegister':
  120.  
  121. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c:57:35: error: request for member 'transfer' in something not a structure or union
  122.  
  123.  #define spi_transfer_nr(data) (SPI.transfer(data))
  124.  
  125.                                    ^
  126.  
  127. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c:264:4: note: in expansion of macro 'spi_transfer_nr'
  128.  
  129.     spi_transfer_nr(NRF905_CMD_W_CONFIG | reg);
  130.  
  131.     ^
  132.  
  133. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c:57:35: error: request for member 'transfer' in something not a structure or union
  134.  
  135.  #define spi_transfer_nr(data) (SPI.transfer(data))
  136.  
  137.                                    ^
  138.  
  139. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c:265:4: note: in expansion of macro 'spi_transfer_nr'
  140.  
  141.     spi_transfer_nr(val);
  142.  
  143.     ^
  144.  
  145. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c: In function 'defaultConfig':
  146.  
  147. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c:57:35: error: request for member 'transfer' in something not a structure or union
  148.  
  149.  #define spi_transfer_nr(data) (SPI.transfer(data))
  150.  
  151.                                    ^
  152.  
  153. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c:301:5: note: in expansion of macro 'spi_transfer_nr'
  154.  
  155.      spi_transfer_nr(pgm_read_byte(&((uint8_t*)config)[i]));
  156.  
  157.      ^
  158.  
  159. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c:57:35: error: request for member 'transfer' in something not a structure or union
  160.  
  161.  #define spi_transfer_nr(data) (SPI.transfer(data))
  162.  
  163.                                    ^
  164.  
  165. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c:307:4: note: in expansion of macro 'spi_transfer_nr'
  166.  
  167.     spi_transfer_nr(NRF905_CMD_W_TX_ADDRESS);
  168.  
  169.     ^
  170.  
  171. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c:57:35: error: request for member 'transfer' in something not a structure or union
  172.  
  173.  #define spi_transfer_nr(data) (SPI.transfer(data))
  174.  
  175.                                    ^
  176.  
  177. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c:309:5: note: in expansion of macro 'spi_transfer_nr'
  178.  
  179.      spi_transfer_nr(0xE7);
  180.  
  181.      ^
  182.  
  183. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c:57:35: error: request for member 'transfer' in something not a structure or union
  184.  
  185.  #define spi_transfer_nr(data) (SPI.transfer(data))
  186.  
  187.                                    ^
  188.  
  189. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c:315:4: note: in expansion of macro 'spi_transfer_nr'
  190.  
  191.     spi_transfer_nr(NRF905_CMD_W_TX_PAYLOAD);
  192.  
  193.     ^
  194.  
  195. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c:57:35: error: request for member 'transfer' in something not a structure or union
  196.  
  197.  #define spi_transfer_nr(data) (SPI.transfer(data))
  198.  
  199.                                    ^
  200.  
  201. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c:317:5: note: in expansion of macro 'spi_transfer_nr'
  202.  
  203.      spi_transfer_nr(0x00);
  204.  
  205.      ^
  206.  
  207. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c: In function 'setAddress':
  208.  
  209. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c:57:35: error: request for member 'transfer' in something not a structure or union
  210.  
  211.  #define spi_transfer_nr(data) (SPI.transfer(data))
  212.  
  213.                                    ^
  214.  
  215. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c:338:4: note: in expansion of macro 'spi_transfer_nr'
  216.  
  217.     spi_transfer_nr(cmd);
  218.  
  219.     ^
  220.  
  221. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c:57:35: error: request for member 'transfer' in something not a structure or union
  222.  
  223.  #define spi_transfer_nr(data) (SPI.transfer(data))
  224.  
  225.                                    ^
  226.  
  227. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c:340:5: note: in expansion of macro 'spi_transfer_nr'
  228.  
  229.      spi_transfer_nr(address>>(8 * i));
  230.  
  231.      ^
  232.  
  233. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c: In function 'nRF905_init':
  234.  
  235. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c:399:5: error: request for member 'begin' in something not a structure or union
  236.  
  237.   SPI.begin();
  238.  
  239.      ^
  240.  
  241. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c: In function 'nRF905_setChannel':
  242.  
  243. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c:57:35: error: request for member 'transfer' in something not a structure or union
  244.  
  245.  #define spi_transfer_nr(data) (SPI.transfer(data))
  246.  
  247.                                    ^
  248.  
  249. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c:448:4: note: in expansion of macro 'spi_transfer_nr'
  250.  
  251.     spi_transfer_nr(NRF905_CMD_W_CONFIG | NRF905_REG_CHANNEL);
  252.  
  253.     ^
  254.  
  255. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c:57:35: error: request for member 'transfer' in something not a structure or union
  256.  
  257.  #define spi_transfer_nr(data) (SPI.transfer(data))
  258.  
  259.                                    ^
  260.  
  261. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c:449:4: note: in expansion of macro 'spi_transfer_nr'
  262.  
  263.     spi_transfer_nr(channel);
  264.  
  265.     ^
  266.  
  267. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c:57:35: error: request for member 'transfer' in something not a structure or union
  268.  
  269.  #define spi_transfer_nr(data) (SPI.transfer(data))
  270.  
  271.                                    ^
  272.  
  273. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c:450:4: note: in expansion of macro 'spi_transfer_nr'
  274.  
  275.     spi_transfer_nr(reg);
  276.  
  277.     ^
  278.  
  279. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c: In function 'nRF905_setBand':
  280.  
  281. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c:57:35: error: request for member 'transfer' in something not a structure or union
  282.  
  283.  #define spi_transfer_nr(data) (SPI.transfer(data))
  284.  
  285.                                    ^
  286.  
  287. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c:463:4: note: in expansion of macro 'spi_transfer_nr'
  288.  
  289.     spi_transfer_nr(NRF905_CMD_W_CONFIG | NRF905_REG_CONFIG1);
  290.  
  291.     ^
  292.  
  293. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c:57:35: error: request for member 'transfer' in something not a structure or union
  294.  
  295.  #define spi_transfer_nr(data) (SPI.transfer(data))
  296.  
  297.                                    ^
  298.  
  299. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c:464:4: note: in expansion of macro 'spi_transfer_nr'
  300.  
  301.     spi_transfer_nr(reg);
  302.  
  303.     ^
  304.  
  305. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c: In function 'nRF905_setPayloadSize':
  306.  
  307. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c:57:35: error: request for member 'transfer' in something not a structure or union
  308.  
  309.  #define spi_transfer_nr(data) (SPI.transfer(data))
  310.  
  311.                                    ^
  312.  
  313. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c:503:4: note: in expansion of macro 'spi_transfer_nr'
  314.  
  315.     spi_transfer_nr(NRF905_CMD_W_CONFIG | NRF905_REG_RX_PAYLOAD_SIZE);
  316.  
  317.     ^
  318.  
  319. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c:57:35: error: request for member 'transfer' in something not a structure or union
  320.  
  321.  #define spi_transfer_nr(data) (SPI.transfer(data))
  322.  
  323.                                    ^
  324.  
  325. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c:504:4: note: in expansion of macro 'spi_transfer_nr'
  326.  
  327.     spi_transfer_nr(size);
  328.  
  329.     ^
  330.  
  331. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c:57:35: error: request for member 'transfer' in something not a structure or union
  332.  
  333.  #define spi_transfer_nr(data) (SPI.transfer(data))
  334.  
  335.                                    ^
  336.  
  337. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c:505:4: note: in expansion of macro 'spi_transfer_nr'
  338.  
  339.     spi_transfer_nr(size);
  340.  
  341.     ^
  342.  
  343. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c: In function 'nRF905_setAddressSize':
  344.  
  345. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c:57:35: error: request for member 'transfer' in something not a structure or union
  346.  
  347.  #define spi_transfer_nr(data) (SPI.transfer(data))
  348.  
  349.                                    ^
  350.  
  351. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c:514:3: note: in expansion of macro 'spi_transfer_nr'
  352.  
  353.    spi_transfer_nr(NRF905_CMD_W_CONFIG | NRF905_REG_ADDR_WIDTH);
  354.  
  355.    ^
  356.  
  357. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c:57:35: error: request for member 'transfer' in something not a structure or union
  358.  
  359.  #define spi_transfer_nr(data) (SPI.transfer(data))
  360.  
  361.                                    ^
  362.  
  363. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c:515:3: note: in expansion of macro 'spi_transfer_nr'
  364.  
  365.    spi_transfer_nr((size<<4) | size);
  366.  
  367.    ^
  368.  
  369. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c: In function 'nRF905_TX':
  370.  
  371. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c:57:35: error: request for member 'transfer' in something not a structure or union
  372.  
  373.  #define spi_transfer_nr(data) (SPI.transfer(data))
  374.  
  375.                                    ^
  376.  
  377. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c:558:6: note: in expansion of macro 'spi_transfer_nr'
  378.  
  379.       spi_transfer_nr(NRF905_CMD_W_TX_PAYLOAD);
  380.  
  381.       ^
  382.  
  383. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c:57:35: error: request for member 'transfer' in something not a structure or union
  384.  
  385.  #define spi_transfer_nr(data) (SPI.transfer(data))
  386.  
  387.                                    ^
  388.  
  389. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c:560:7: note: in expansion of macro 'spi_transfer_nr'
  390.  
  391.        spi_transfer_nr(((uint8_t*)data)[i]);
  392.  
  393.        ^
  394.  
  395. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c: In function 'nRF905_read':
  396.  
  397. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c:57:35: error: request for member 'transfer' in something not a structure or union
  398.  
  399.  #define spi_transfer_nr(data) (SPI.transfer(data))
  400.  
  401.                                    ^
  402.  
  403. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c:621:4: note: in expansion of macro 'spi_transfer_nr'
  404.  
  405.     spi_transfer_nr(NRF905_CMD_R_RX_PAYLOAD);
  406.  
  407.     ^
  408.  
  409. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c:56:33: error: request for member 'transfer' in something not a structure or union
  410.  
  411.  #define spi_transfer(data)  (SPI.transfer(data))
  412.  
  413.                                  ^
  414.  
  415. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c:625:27: note: in expansion of macro 'spi_transfer'
  416.  
  417.      ((uint8_t*)data)[i] = spi_transfer(NRF905_CMD_NOP);
  418.  
  419.                            ^
  420.  
  421. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c: In function 'nRF905_getConfigRegisters':
  422.  
  423. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c:57:35: error: request for member 'transfer' in something not a structure or union
  424.  
  425.  #define spi_transfer_nr(data) (SPI.transfer(data))
  426.  
  427.                                    ^
  428.  
  429. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c:661:4: note: in expansion of macro 'spi_transfer_nr'
  430.  
  431.     spi_transfer_nr(NRF905_CMD_R_CONFIG);
  432.  
  433.     ^
  434.  
  435. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c:56:33: error: request for member 'transfer' in something not a structure or union
  436.  
  437.  #define spi_transfer(data)  (SPI.transfer(data))
  438.  
  439.                                  ^
  440.  
  441. C:\Users\user\Documents\Arduino\libraries\nRF905\nRF905.c:663:27: note: in expansion of macro 'spi_transfer'
  442.  
  443.      ((uint8_t*)regs)[i] = spi_transfer(NRF905_CMD_NOP);
  444.  
  445.                            ^
  446.  
  447. exit status 1
  448. Error compiling for board Arduino/Genuino Uno.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top