X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=blobdiff_plain;f=tos%2Fchips%2Fmsp430%2Fpins%2FHplMsp430GeneralIO.nc;h=f9e42e43343627d20b81ffeb1375d4872507363b;hp=f8314b9534e0b836701c6fd77501cefb32eb6a4b;hb=48666eab550362c629ba4dcb7d107b9d44b9ba6c;hpb=da0fc4a07b170b5c2c4b1ead622701be794a4de6 diff --git a/tos/chips/msp430/pins/HplMsp430GeneralIO.nc b/tos/chips/msp430/pins/HplMsp430GeneralIO.nc index f8314b95..f9e42e43 100644 --- a/tos/chips/msp430/pins/HplMsp430GeneralIO.nc +++ b/tos/chips/msp430/pins/HplMsp430GeneralIO.nc @@ -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(); }