cc1020.h

Go to the documentation of this file.
00001 /*
00002 Copyright 2006, Freie Universitaet Berlin. All rights reserved.
00003 
00004 These sources were developed at the Freie Universitaet Berlin, Computer
00005 Systems and Telematics group.
00006 
00007 Redistribution and use in source and binary forms, with or without
00008 modification, are permitted provided that the following conditions are
00009 met:
00010 
00011 - Redistributions of source code must retain the above copyright
00012 notice, this list of conditions and the following disclaimer.
00013 
00014 - Redistributions in binary form must reproduce the above copyright
00015 notice, this list of conditions and the following disclaimer in the
00016 documentation and/or other materials provided with the distribution.
00017  
00018 - Neither the name of Freie Universitaet Berlin (FUB) nor the names of its
00019 contributors may be used to endorse or promote products derived from
00020 this software without specific prior written permission.
00021 
00022 This software is provided by FUB and the contributors on an "as is"
00023 basis, without any representations or warranties of any kind, express
00024 or implied including, but not limited to, representations or
00025 warranties of non-infringement, merchantability or fitness for a
00026 particular purpose. In no event shall FUB or contributors be liable
00027 for any direct, indirect, incidental, special, exemplary, or
00028 consequential damages (including, but not limited to, procurement of
00029 substitute goods or services; loss of use, data, or profits; or
00030 business interruption) however caused and on any theory of liability,
00031 whether in contract, strict liability, or tort (including negligence
00032 or otherwise) arising in any way out of the use of this software, even
00033 if advised of the possibility of such damage.
00034 
00035 This implementation was developed by the CST group at the FUB.
00036 
00037 For documentation and questions please use the web site
00038 http://scatterweb.mi.fu-berlin.de and the mailinglist
00039 scatterweb@lists.spline.inf.fu-berlin.de (subscription via the Website).
00040 Berlin, 2006
00041 */
00042 
00043 /**
00044  * \file        cc1020.h
00045  * \author      FUB ScatterWeb Developers, Michael Baar, Nicolas Tsiftes
00046  **/
00047 
00048 #ifndef CC1020_H
00049 #define CC1020_H
00050 
00051 #include "dev/radio.h"
00052 
00053 extern const uint8_t cc1020_config_19200[];
00054 extern const uint8_t cc1020_config_115200[];
00055 
00056 #if 0
00057 void cc1020_init(const uint8_t* config);
00058 #endif
00059 void cc1020_set_rx(void);
00060 void cc1020_set_tx(void);
00061 void cc1020_set_power(uint8_t pa_power);
00062 int cc1020_carrier_sense(void);
00063 uint8_t cc1020_get_rssi(void);
00064 uint8_t cc1020_get_packet_rssi(void);
00065 int cc1020_sending(void);
00066 #if 0
00067 int cc1020_send(const void *buf, unsigned short size);
00068 int cc1020_read(void *buf, unsigned short size);
00069 void cc1020_set_receiver(void (*recv)(const struct radio_driver *));
00070 int cc1020_on(void);
00071 int cc1020_off(void);
00072 #endif
00073 extern const struct radio_driver cc1020_driver;
00074 
00075 PROCESS_NAME(cc1020_sender_process);
00076 
00077 #endif

Generated on Mon Apr 11 14:23:44 2011 for Contiki 2.5 by  doxygen 1.6.1