Contiki 2.5
cc1020.h
Go to the documentation of this file.
1 /*
2 Copyright 2006, Freie Universitaet Berlin. All rights reserved.
3 
4 These sources were developed at the Freie Universitaet Berlin, Computer
5 Systems and Telematics group.
6 
7 Redistribution and use in source and binary forms, with or without
8 modification, are permitted provided that the following conditions are
9 met:
10 
11 - Redistributions of source code must retain the above copyright
12 notice, this list of conditions and the following disclaimer.
13 
14 - Redistributions in binary form must reproduce the above copyright
15 notice, this list of conditions and the following disclaimer in the
16 documentation and/or other materials provided with the distribution.
17 
18 - Neither the name of Freie Universitaet Berlin (FUB) nor the names of its
19 contributors may be used to endorse or promote products derived from
20 this software without specific prior written permission.
21 
22 This software is provided by FUB and the contributors on an "as is"
23 basis, without any representations or warranties of any kind, express
24 or implied including, but not limited to, representations or
25 warranties of non-infringement, merchantability or fitness for a
26 particular purpose. In no event shall FUB or contributors be liable
27 for any direct, indirect, incidental, special, exemplary, or
28 consequential damages (including, but not limited to, procurement of
29 substitute goods or services; loss of use, data, or profits; or
30 business interruption) however caused and on any theory of liability,
31 whether in contract, strict liability, or tort (including negligence
32 or otherwise) arising in any way out of the use of this software, even
33 if advised of the possibility of such damage.
34 
35 This implementation was developed by the CST group at the FUB.
36 
37 For documentation and questions please use the web site
38 http://scatterweb.mi.fu-berlin.de and the mailinglist
39 scatterweb@lists.spline.inf.fu-berlin.de (subscription via the Website).
40 Berlin, 2006
41 */
42 
43 /**
44  * \file cc1020.h
45  * \author FUB ScatterWeb Developers, Michael Baar, Nicolas Tsiftes
46  **/
47 
48 #ifndef CC1020_H
49 #define CC1020_H
50 
51 #include "dev/radio.h"
52 
53 extern const uint8_t cc1020_config_19200[];
54 extern const uint8_t cc1020_config_115200[];
55 
56 #if 0
57 void cc1020_init(const uint8_t* config);
58 #endif
59 void cc1020_set_rx(void);
60 void cc1020_set_tx(void);
61 void cc1020_set_power(uint8_t pa_power);
62 int cc1020_carrier_sense(void);
63 uint8_t cc1020_get_rssi(void);
64 uint8_t cc1020_get_packet_rssi(void);
65 int cc1020_sending(void);
66 #if 0
67 int cc1020_send(const void *buf, unsigned short size);
68 int cc1020_read(void *buf, unsigned short size);
69 void cc1020_set_receiver(void (*recv)(const struct radio_driver *));
70 int cc1020_on(void);
71 int cc1020_off(void);
72 #endif
73 extern const struct radio_driver cc1020_driver;
74 
75 PROCESS_NAME(cc1020_sender_process);
76 
77 #endif