Code Tidy - Pastebin

New     Fork     Embed     View raw     Report

rssi-h - cpp

Embed

You can embed this paste into a blog or website with this code:

<iframe class="codetidy" type="text/html" width="100%" src="http://codetidy.com/paste/embed/912" frameborder="0"></iframe>

Add comment

Captcha
  1. #ifndef rssi_h?
  2. #define rssi_h?
  3.  ?
  4. #include "WProgram.h"?
  5. #include <SPI.h>?
  6. #define REG_CONTROL           0x03?
  7. #define REG_ANALOG_CTL        0x20?
  8. #define REG_CHANNEL           0x21?
  9. #define REG_RSSI              0x22?
  10. #define REG_CRYSTAL_ADJ       0x24?
  11. #define REG_VCO_CAL           0x26?
  12. #define REG_CARRIER_DETECT    0x2F?
  13. #define REG_CLOCK_MANUAL      0x32?
  14. #define REG_CLOCK_ENABLE      0x33?
  15. #define RADIO_RST_PIN 8?
  16. #define RADIO_CE_PIN 9?
  17. class rssi?
  18. {?
  19.   public:?
  20.     rssi(void);?
  21. void RADIO_Init(void);?
  22. unsigned char RADIO_Read(unsigned char address);?
  23. void RADIO_Write(unsigned char address, unsigned char value);?
  24. unsigned char RADIO_RSSI(unsigned char channel);?
  25. };?
  26.  ?
  27. #endif?
© 2011 Code Tidy