Add MCP4901 DAC support
[hackover2013-badge-firmware.git] / drivers / dac / mcp4901 / mcp4901.h
diff --git a/drivers/dac/mcp4901/mcp4901.h b/drivers/dac/mcp4901/mcp4901.h
new file mode 100644 (file)
index 0000000..930e3bf
--- /dev/null
@@ -0,0 +1,48 @@
+/**************************************************************************/\r
+/*!\r
+    @file     mcp4901.h\r
+    @author   Tauon\r
+\r
+    @section LICENSE\r
+\r
+    Software License Agreement (BSD License)\r
+\r
+    Copyright (c) 2012, Tauon\r
+    All rights reserved.\r
+\r
+    Redistribution and use in source and binary forms, with or without\r
+    modification, are permitted provided that the following conditions are met:\r
+    1. Redistributions of source code must retain the above copyright\r
+    notice, this list of conditions and the following disclaimer.\r
+    2. Redistributions in binary form must reproduce the above copyright\r
+    notice, this list of conditions and the following disclaimer in the\r
+    documentation and/or other materials provided with the distribution.\r
+    3. Neither the name of the copyright holders nor the\r
+    names of its contributors may be used to endorse or promote products\r
+    derived from this software without specific prior written permission.\r
+\r
+    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ''AS IS'' AND ANY\r
+    EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\r
+    WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\r
+    DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY\r
+    DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\r
+    (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\r
+    LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\r
+    ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\r
+    (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
+    SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+*/\r
+/**************************************************************************/\r
+\r
+#ifndef _MCP4901_H_\r
+#define _MCP4901_H_\r
+\r
+#include "projectconfig.h"\r
+#include "core/gpio/gpio.h"\r
+\r
+void mcp4901Init(void);\r
+void mcp4901SetVoltage( uint8_t output);\r
+void mcp4901LDAC(void);\r
+void mcp4901ChangeSettings(bool BUFFER, bool GAIN, bool SHUTDOWN);\r
+\r
+#endif\r
This page took 0.024895 seconds and 4 git commands to generate.