+++ /dev/null
-/*\r
- * Copyright (c) 2005-2006 Arch Rock Corporation\r
- * All rights reserved.\r
- *\r
- * Redistribution and use in source and binary forms, with or without\r
- * modification, are permitted provided that the following conditions\r
- * are met:\r
- * - Redistributions of source code must retain the above copyright\r
- * notice, this list of conditions and the following disclaimer.\r
- * - Redistributions in binary form must reproduce the above copyright\r
- * notice, this list of conditions and the following disclaimer in the\r
- * documentation and/or other materials provided with the\r
- * distribution.\r
- * - Neither the name of the Arch Rock Corporation nor the names of\r
- * its contributors may be used to endorse or promote products derived\r
- * from this software without specific prior written permission.\r
- *\r
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\r
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\r
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS\r
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE\r
- * ARCHED ROCK OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,\r
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\r
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\r
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\r
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,\r
- * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\r
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED\r
- * OF THE POSSIBILITY OF SUCH DAMAGE\r
- */\r
-\r
-/**\r
- * Low-level abstraction for the transmit path implementaiton of the\r
- * ChipCon CC2420 radio.\r
- *\r
- * @author Jonathan Hui <jhui@archrock.com>\r
- * @version $Revision$ $Date$\r
- */\r
-\r
-interface CC2420Transmit {\r
-\r
- /**\r
- * Send a message with CCA enabled.\r
- *\r
- * @param p_msg message to send.\r
- * @return SUCCESS if the request was accepted, FAIL otherwise.\r
- */\r
- async command error_t sendCCA( message_t* p_msg );\r
-\r
- /**\r
- * Send a message with CCA disabled.\r
- *\r
- * @param p_msg message to send.\r
- * @return SUCCESS if the request was accepted, FAIL otherwise.\r
- */\r
- async command error_t send( message_t* p_msg );\r
-\r
- /**\r
- * Send the previous message again with CCA enabled.\r
- *\r
- * @return SUCCESS if the request was accepted, FAIL otherwise.\r
- */\r
- async command error_t resendCCA();\r
-\r
- /**\r
- * Send the previous message again with CCA disabled.\r
- *\r
- * @return SUCCESS if the request was accepted, FAIL otherwise.\r
- */\r
- async command error_t resend();\r
-\r
- /**\r
- * Cancel sending of the message.\r
- *\r
- * @return SUCCESS if the request was accepted, FAIL otherwise.\r
- */\r
- async command error_t cancel();\r
-\r
- /**\r
- * Signal that a message has been sent\r
- *\r
- * @param p_msg message to send.\r
- * @param error notifaction of how the operation went.\r
- */\r
- async event void sendDone( message_t* p_msg, error_t error );\r
-\r
- /**\r
- * Modify the contents of a packet. This command can only be used\r
- * when an SFD capture event for the sending packet is signalled.\r
- *\r
- * @param offset in the message to start modifying.\r
- * @param buf to data to write\r
- * @param len of bytes to write\r
- * @return SUCCESS if the request was accepted, FAIL otherwise.\r
- */\r
- async command error_t modify( uint8_t offset, uint8_t* buf, uint8_t len );\r
-\r
-}\r
-\r