]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/msp430/pins/HplMsp430GeneralIO.nc
Support for newer msp430's using newer msp430 compiler.
[tinyos-2.x.git] / tos / chips / msp430 / pins / HplMsp430GeneralIO.nc
index f8314b9534e0b836701c6fd77501cefb32eb6a4b..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.
    *
@@ -85,5 +99,22 @@ interface HplMsp430GeneralIO
   async command void selectIOFunc();
   
   async command bool isIOFunc();
+
+  /**
+   * Enable pullup/pulldown resistor.  When enabled, the output state is used
+   * to determine which resistor is enabled.  When set(), the pull-up is
+   * enabled; when clr(), the pull-down is enabled.
+   */
+  async command void enableRen();
+
+  /**
+   * Disable pullup/pulldown resistor.
+   */
+  async command void disableRen();
+
+  /**
+   * Return true if pullup/pulldown resistor is enabled
+   */
+  async command bool isRen();
 }