Interface: tos.chips.ad5200.Pot
interface Pot
There is currently no TEP for describing this interface.
This interface is an attempt at describing the HIL abstraction for
potentiomter devices. Since there is currently no TEP describing the
abstractions for potentiometers, this interface will need to be updated
once one is created.
- Author:
-
Jason Hill
-
David Gay
-
Philip Levis
-
Kevin Klues (klues@tkn.tu-berlin.de) -- modified for TinyOS-2.x
Commands
command error_t decrease()
command uint8_t get()
command error_t increase()
command error_t set(uint8_t setting)
Commands - Details
decrease
command error_t decrease()
- Returns:
-
SUCCESS if the decrement was successful.
FAIL if the component has not been initialized or if the
potentiometer cannot be decremented further.
get
command uint8_t get()
- Returns:
-
An unsigned 8-bit value denoting the current setting of the
potentiometer.
increase
command error_t increase()
- Returns:
-
SUCCESS if the increment was successful.
FAIL if the component has not been initialized or if the
potentiometer cannot be incremented further.
set
command error_t set(uint8_t setting)
- Parameters:
-
setting -- The new value of the potentiometer.
- Returns:
-
SUCCESS if the setting was successful
FAIL if the component has not been initialized or the desired
setting is outside of the valid range.