|
StepperII
Dual Axis Stepper Controller
|
Class for managing MCP4242 Dual Digital Pot. More...
#include <CCurrentLimit.h>
Inherits CMcp4242.
Static Public Member Functions | |
| static void | init (void) |
| static int | read (void) |
| static void | write (int setting) |
Class for managing MCP4242 Dual Digital Pot.
| static int CCurrentLimit::read | ( | void | ) | [inline, static] |
Read the rheostats and convert to a 'settings' index (0-10) If both rheostats match, return the setting. If they don't match, return error (-1) If the rheostat values don't convert to a setting, return error (-1)
| none |
| static void CCurrentLimit::write | ( | int | setting | ) | [inline, static] |
Set both rheostats to the provided setting. Do nothing if the provided setting is invalid. Do nothing if both rheostats already match the provided setting.
| [in] | setting | 0-10, settings[] index |
1.7.3