upm  0.4.1
Sensor/Actuator repository for libmraa (v0.8.0)
Public Member Functions | Static Public Attributes | List of all members

API for the MAX5487 SPI Digital Potentiometer. More...

Detailed Description

Maxim Integrated* MAX5487 is a dual, 256-tap, nonvolatile, SPI, linear-taper digital potentiometer. This module was tested on the Maxim Integrated MAX5487PMB1 PMOD module from the analog PMOD kit.

Public Member Functions

synchronized void delete ()
 
 MAX5487 (int csn)
 
void setWiperA (short wiper)
 
void setWiperB (short wiper)
 
String name ()
 

Static Public Attributes

static final short R_WR_WIPER_A = javaupm_max5487JNI.MAX5487_R_WR_WIPER_A_get()
 
static final short R_WR_WIPER_B = javaupm_max5487JNI.MAX5487_R_WR_WIPER_B_get()
 

Constructor & Destructor Documentation

MAX5487 ( int  csn)

Instantiates an MAX5487 object

Parameters
csnCSN to use, if any; by default, ICSP CS (-1) is used

Member Function Documentation

String name ( )

Returns the name of the component

void setWiperA ( short  wiper)

MAX5487 object destructor, closes all IO connections no more needed as the connections will be closed when m_spi and m_csnPinCtx will go out of scope ~MAX5487 (); Sets a wiper for port A.

void setWiperB ( short  wiper)

Sets a wiper for port B.


The documentation for this class was generated from the following file: