Library for MCP4822 SPI 12-bit DAC, both outputs supported, nLDAC connected to GND.
Diff: MCP4822.h
- Revision:
- 5:c4acc07d6998
- Parent:
- 4:3d582b7a217a
- Child:
- 6:ac02ff2992fe
--- a/MCP4822.h Fri Jan 21 16:16:36 2011 +0000 +++ b/MCP4822.h Fri Jan 21 16:18:29 2011 +0000 @@ -22,12 +22,12 @@ #include "mbed.h" -#ifndef MBED_MCP4822_H -#define MBED_MCP4822_H +#ifndef MCP4822_H +#define MCP4822_H class MCP4822 { public: - /* Constructor: MCP4822 + /** Constructor: MCP4822 * Create an instance of the MCP4822 connected to specfied SPI pins. * * Variables: @@ -36,14 +36,14 @@ * @param /CS - The ChipSelect pin */ MCP4822 (PinName mosi, PinName sclk, PinName ncs); - /* Function: write to A-output + /** Function: write to A-output * Write to the A-output, max 4095 (0xFFF) with 1 mV steps * * Variables: * @param ValueA The value to be written */ void writeA (int ValueA); - /* Function: write to B-output + /** Function: write to B-output * Write to the B-output, max 4095 (0xFFF) with 1 mV steps * * Variables: