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