X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fchips%2Fmsp430%2Fpins%2FHplMsp430GeneralIO.nc;h=f9e42e43343627d20b81ffeb1375d4872507363b;hb=5d1185472b58034d288d276aa6a3d079099671c4;hp=3615b3abe5da3396822e625f1a2387daf5274364;hpb=10acc57d16a648d746eed9d5c6264850f7c52fde;p=tinyos-2.x.git diff --git a/tos/chips/msp430/pins/HplMsp430GeneralIO.nc b/tos/chips/msp430/pins/HplMsp430GeneralIO.nc index 3615b3ab..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. * @@ -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(); }