[Tinyos Core WG] non-TEP code

Prabal Dutta prabal at cs.berkeley.edu
Tue Nov 28 09:44:38 PST 2006


> The debouncing looks like its only in the advanced interface, not in the
> basic interface. Which looks fine since the advanced interface is
> implemented on top and adds functionality. It looks like only the press
> is debounced. What about buttons that are pressed in their "common" mode
> and you'd rather be signaled on a long release?

What about an HPL with opened/closed and a HAL/HIL with
pressed/released (as well as a richer interface).  This maps the
low-level functionality to the HPL but maps user semantics to the
HAL/HIL.

Is the generalization we're looking for a Switch, with Button being
one type?  Since switches can be many types:
1. SPST, SPDT, SP3T, ...., SPnT, DPST, DPDT, ..., DPnT, ..., mPnT}
2. momentary or not
3. normally open or normally closed.

seems like Button primarily captures SPST, accomodates (2) and obscures (3).

- Prabal


More information about the Tinyos-2.0wg mailing list