Driver, C++ code, and library for the MAX5487, MAX5488, MAX5489. dual channel, SPI bus, 256-tap digital potentiometer. Non-volatile memory (EEPROM) is available for returning the wipers to their previously stored positions upon power-up.
Dependents: MAX5487_Digital_Potentiometer_Resistor_MAX32630FTHR_Host
Diff: MAX5487.h
- Revision:
- 2:80e026469122
- Parent:
- 1:bc368afe2ec8
- Child:
- 3:4d4053c4c29e
--- a/MAX5487.h Sat Jul 14 04:25:25 2018 +0000 +++ b/MAX5487.h Sun Jul 15 03:36:25 2018 +0000 @@ -4,6 +4,10 @@ ******************************************************************************* */ +#ifndef MAX5487_H +#define MAX5487_H + +#include "mbed.h" /** @@ -37,10 +41,6 @@ * @endcode */ -#ifndef MAX5487_H -#define MAX5487_H - -#include "mbed.h" class MAX5487{ @@ -48,7 +48,8 @@ /** * @brief Commands supported by the potentiometer * @details write commands that don't involve copying - * require a 8 bit value specified. Copy commands don't + * require an 8 bit value specified. Copy commands don't + * requre sending an 8 bit value. */ typedef enum { Wiper_RegA = 0x01, //Position of Wiper A @@ -95,7 +96,7 @@ void writeCommand(MAX5487::setting_t setting); - /**********************************************************//** + /************************************************************ * @brief Default destructor for MAX5487 Class. * * @details Destroys SPI object if owner