]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/tda5250/HplTda5250Data.nc
Merge over into the trunk.
[tinyos-2.x.git] / tos / chips / tda5250 / HplTda5250Data.nc
index aae85694f314a044a6c628e4b93488a2f6ee9206..972b2e8740b8cb64e31bc913b49a2eeeb7bb27d8 100644 (file)
 
  /**
  * Interface for sending and receiving bytes of data over the TDA5250 Radio.
+ * This interface lets you receive and send bytes of data.
+ * In conjunction to this the HplTda5250DataControl interface is used to 
+ * switch between receiving and sending.
  *
+ * @see HplTda5250DataControl
  * @author Kevin Klues (klues@tkn.tu-berlin.de)
  */
 interface HplTda5250Data {
 
  /**
    * Transmit a byte of data over the radio.
+   * Before you call this command you must switch 
+   * the radio to Tx mode via the HplTda5250DataControl
+   * interface.
    * @param data The data byte to be transmitted.
    * @return SUCCESS Byte successfully transmitted.
              FAIL    Byte could not be transmitted.
@@ -60,44 +67,15 @@ interface HplTda5250Data {
    * @return TRUE if all bytes are trasnmitted
    *         FALSE otherwise.
    */
-  async command bool isTxDone();
+  //async command bool isTxDone();
 
   /**
    * Signaled when a byte of data has been received from the radio.
+        * Before you call this command you must switch 
+        * the radio to Rx mode via the HplTda5250DataControl
+   * interface.
    * @param data The data byte received.
    */
   async event void rxDone(uint8_t data);
-
-  /**
-   * Enable transmitting over the radio.
-   *
-   * @return SUCCESS on success
-   *         FAIL otherwise.
-   */
-  async command error_t enableTx();
-
-  /**
-   * Disable transmitting over the radio
-   *
-   * @return SUCCESS on success
-   *         FAIL otherwise.
-   */
-  async command error_t disableTx();
-
-  /**
-   * Enable receiving over the radio
-   *
-   * @return SUCCESS on success
-   *         FAIL otherwise.
-  */
-  async command error_t enableRx();
-
-  /**
-   * Disable receiving over the radio
-   *
-   * @return SUCCESS on success
-   *         FAIL otherwise.
-   */
-  async command error_t disableRx();
 }