28 #include <mraa/gpio.h>
51 static const uint8_t R_WR_WIPER_A = 0x01;
52 static const uint8_t R_WR_WIPER_B = 0x02;
85 mraa_spi_context m_spi;
86 mraa_gpio_context m_csnPinCtx;
91 mraa_result_t CSOn ();
96 mraa_result_t CSOff ();
C++ API for MAX5487 chip (SPI digital potentionmeter)
Definition: max5487.h:49
std::string name()
Definition: max5487.h:79
MAX5487(int csn)
Definition: max5487.cxx:40
void setWiperB(uint8_t wiper)
Definition: max5487.cxx:95
void setWiperA(uint8_t wiper)
Definition: max5487.cxx:81
~MAX5487()
Definition: max5487.cxx:65