mcp41.h

Go to the documentation of this file.
00001 
00040 #ifndef DRV_MCP41_H
00041 #define DRV_MCP41_H
00042 
00043 #include "hw/mcp41_map.h"
00044 #include <cfg/compiler.h>
00045 
00046 #include <drv/ser.h>
00047 
00048 #define MCP41_WRITE_DATA 0x11
00049 #define MCP41_HW_MAX     255
00050 #define MCP41_MAX        999
00051 
00055 typedef uint16_t mcp41_res_t;
00056 
00057 void mcp41_setResistance(Mcp41Dev dev, mcp41_res_t res);
00058 void mcp41_init(Serial *spi_port);
00059 
00060 #endif /* DRV_MCP41_H */