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 #include <drv/ser.h>
00046 
00047 #define MCP41_WRITE_DATA 0x11
00048 #define MCP41_HW_MAX     255
00049 #define MCP41_MAX        999
00050 
00054 typedef uint16_t mcp41_res_t;
00055 
00056 void mcp41_setResistance(Mcp41Dev dev, mcp41_res_t res);
00057 void mcp41_init(Serial *spi_port);
00058 
00059 #endif /* DRV_MCP41_H */