The friendly Operating System for the Internet of Things
cc110x-interface.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015 Kaspar Schleiser <kaspar@schleiser.de>
3  * Copyright (C) 2014 Freie Universit├Ąt Berlin
4  * Copyright (C) 2013 INRIA
5  *
6  * This file is subject to the terms and conditions of the GNU Lesser
7  * General Public License v2.1. See the file LICENSE in the top level
8  * directory for more details.
9  */
10 
22 #ifndef CC110X_INTERFACE_H
23 #define CC110X_INTERFACE_H
24 
25 #include <stdint.h>
26 #include "cc110x.h"
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
37 char *cc110x_get_marc_state(cc110x_t *dev);
38 char *cc110x_state_to_text(uint8_t state);
39 int cc110x_rd_set_mode(cc110x_t *dev, int mode);
40 uint8_t cc110x_get_buffer_pos(cc110x_t *dev);
41 void cc110x_isr_handler(cc110x_t *dev, void(*callback)(void*), void*arg);
42 void cc110x_set_base_freq_raw(cc110x_t *dev, const char* freq_array);
43 void cc110x_setup_rx_mode(cc110x_t *dev);
44 void cc110x_switch_to_pwd(cc110x_t *dev);
45 void cc110x_switch_to_rx(cc110x_t *dev);
46 void cc110x_wakeup_from_rx(cc110x_t *dev);
47 void cc110x_write_register(cc110x_t *dev, uint8_t r, uint8_t value);
48 
49 extern const char cc110x_default_conf[];
50 extern const uint8_t cc110x_default_conf_size;
51 extern const uint8_t cc110x_pa_table[];
52 
53 #ifdef MODULE_CC110X_HOOKS
54 void cc110x_hooks_init(void);
55 void cc110x_hook_rx(void);
56 void cc110x_hook_tx(void);
57 void cc110x_hook_off(void);
58 #endif
59 /* @} */
60 
61 #ifdef __cplusplus
62 }
63 #endif
64 
66 #endif /* CC110X_INTERFACE_H */
Public interface for cc110x driver.
Struct for holding cc110x device state.
Definition: cc110x.h:51