New
Fork
Embed
View raw
Report
rssi-h - cpp
Close
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>
Close
Add comment
Name
Comment
Validation
#ifndef rssi_h
#define rssi_h
#include "WProgram.h"
#include <SPI.h>
#define REG_CONTROL 0x03
#define REG_ANALOG_CTL 0x20
#define REG_CHANNEL 0x21
#define REG_RSSI 0x22
#define REG_CRYSTAL_ADJ 0x24
#define REG_VCO_CAL 0x26
#define REG_CARRIER_DETECT 0x2F
#define REG_CLOCK_MANUAL 0x32
#define REG_CLOCK_ENABLE 0x33
#define RADIO_RST_PIN 8
#define RADIO_CE_PIN 9
class
rssi
{
public
:
rssi
(
void
)
;
void
RADIO_Init
(
void
)
;
unsigned
char
RADIO_Read
(
unsigned
char
address
)
;
void
RADIO_Write
(
unsigned
char
address,
unsigned
char
value
)
;
unsigned
char
RADIO_RSSI
(
unsigned
char
channel
)
;
}
;
#endif
© 2011 Code Tidy