summaryrefslogtreecommitdiff
path: root/lib/cc1101.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/cc1101.h')
-rw-r--r--lib/cc1101.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/cc1101.h b/lib/cc1101.h
index b575c96..52dbf20 100644
--- a/lib/cc1101.h
+++ b/lib/cc1101.h
@@ -23,6 +23,10 @@
#ifndef SPREADAVR_cc1101_h_INCLUDED
#define SPREADAVR_cc1101_h_INCLUDED
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef enum { unknown, sleep, idle, xoff, mancal, fs_wakeup, calibrate, settling, rx, txrx_settling,
rxfifo_overflow, fstxon, tx, rxtx_settling, txfifo_underflow } cc1101_state_t;
char* cc1101_state_to_string(cc1101_state_t);
@@ -150,4 +154,8 @@ uint8_t cc1101_write_txfifo(const uint8_t* data, const uint8_t len);
void cc1101_dump_register(void);
+#ifdef __cplusplus
+}
+#endif
+
#endif