StepperII
Dual Axis Stepper Controller
Static Public Member Functions

CCurrentLimit Class Reference

Class for managing MCP4242 Dual Digital Pot. More...

#include <CCurrentLimit.h>

Inherits CMcp4242.

List of all members.

Static Public Member Functions

static void init (void)
static int read (void)
static void write (int setting)

Detailed Description

Class for managing MCP4242 Dual Digital Pot.


Member Function Documentation

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)

Parameters:
none
Returns:
0-10 (settings[] index) if all 4 registers match, otherwise -1
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.

Parameters:
[in]setting0-10, settings[] index
Returns:
none

The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Defines