Component: moteiv.tos.sensorboards.invent.AD524XC

configuration AD524XC

AD524XC provides access to primitives for the AD524X family of potentiometers. StdControl sets the physical hardware pin to turn the device on or off via the shutdown pin (if supported by the underlying platform).

You *must* define the "AD524X_SD" pin in an included file, presumably your sensorboard.h file. The AD524X_SD pin is used to put the device into and out of shutdown when StdControl start() and stop() are called. These functions:

   TOSH_MAKE_AD524X_SD_OUTPUT()
   TOSH_MAKE_AD524X_SD_INPUT()
   TOSH_SET_AD524X_SD_PIN()
   TOSH_CLR_AD524X_SD_PIN()
 
May be defined as empty functions for platforms that do not support the AD524X shutdown pin.

The AD524X driver counts the number of users for systems with multiple pots and only causes the physical pin to initiate a shutdown when all users of the pot have called stop (in other words #start() == #stop())

It is recommended that you use the SD bit in the AD524X by calling AD524X.start() and AD524X.stop() rather than toggling the actual shutdown pin. By setting the pin in the particular device, you can ensure that device has been shutdown.

Author:
Joe Polastre <info@moteiv.com>

Provides
interface AD524X
interface StdControl

Wiring