]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/msp430/pins/HplMsp430GeneralIO.nc
Add getOut() and getOutRaw() methods. get() and getRaw() work off PORTxIN.
[tinyos-2.x.git] / tos / chips / msp430 / pins / HplMsp430GeneralIO.nc
index 3615b3abe5da3396822e625f1a2387daf5274364..f9e42e43343627d20b81ffeb1375d4872507363b 100644 (file)
@@ -43,6 +43,20 @@ interface HplMsp430GeneralIO
    */
   async command void toggle();
 
+  /**
+   * Get the port OUT status that contains the pin.
+   *
+   * @return Status of the port that contains the given pin. The x'th
+   * pin on the port will be represented in the x'th bit.
+   */
+  async command uint8_t getOutRaw();
+
+  /**
+   * Read pin OUT value.
+   *
+   * @return TRUE if pin is high, FALSE otherwise.
+   */
+  async command bool getOut();
   /**
    * Get the port status that contains the pin.
    *
@@ -97,5 +111,10 @@ interface HplMsp430GeneralIO
    * Disable pullup/pulldown resistor.
    */
   async command void disableRen();
+
+  /**
+   * Return true if pullup/pulldown resistor is enabled
+   */
+  async command bool isRen();
 }