mcp41.h

Go to the documentation of this file.
00001 
00044 #ifndef DRV_MCP41_H
00045 #define DRV_MCP41_H
00046 
00047 #include "hw/mcp41_map.h"
00048 #include <cfg/compiler.h>
00049 
00050 #include <kern/kfile.h>
00051 
00052 #define MCP41_WRITE_DATA 0x11
00053 #define MCP41_HW_MAX     255
00054 #define MCP41_MAX        999
00055 
00059 typedef uint16_t mcp41_res_t;
00060 
00061 void mcp41_setResistance(Mcp41Dev dev, mcp41_res_t res);
00062 void mcp41_init(KFile *ch);
00063 
00064 #endif /* DRV_MCP41_H */