Driver for the AD5270 digipot

Dependents:   ad5270-helloworld CN0357 CN0396

For additional information check out the mbed page of the Analog Devices wiki: https://wiki.analog.com/resources/tools-software/mbed-drivers-all

Revision:
1:9f9dd8c48e8a
Parent:
0:18d434f6f122
--- a/AD5270.h	Tue May 03 12:55:30 2016 +0000
+++ b/AD5270.h	Thu Aug 18 12:38:39 2016 +0000
@@ -104,8 +104,8 @@
 
 
     /* Low level methods */
-    uint16_t write_cmd(uint8_t command, uint16_t data = 0x00);
-    uint16_t write_reg(uint16_t data);
+    uint16_t write_cmd(uint8_t command, uint16_t data = 0x00, bool toggle_cs = true);
+    uint16_t write_reg(uint16_t data, bool toggle_cs = true);
 
     /* Methods that deal with resistance in float format*/
     uint16_t calc_RDAC(float resistance);
@@ -120,6 +120,8 @@
     uint8_t read_50TP_last_address(void);
     uint16_t read_50TP_memory(uint8_t address);
 
+    void daisy_chain(uint8_t *buffer, uint8_t size);
+
     SPI ad5270;    ///< SPI instance of the AD5270
     DigitalOut cs; ///< DigitalOut instance for the chip select of the AD5270