diff options
author | Christian Pointner <equinox@spreadspace.org> | 2015-06-30 21:42:21 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2015-06-30 21:42:21 +0200 |
commit | 27b0d98d085454a9f3fbaeb73ac3000e5a965db4 (patch) | |
tree | 01c5cd7a67d25a26fe1e886999c4a48dd37dd00e /lib/cc1101.h | |
parent | updated copyright info (diff) |
added support for C++ based projects
Diffstat (limited to 'lib/cc1101.h')
-rw-r--r-- | lib/cc1101.h | 8 |
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 |