/** * \file * * * * \brief MCP41xxx digital potentiomenter driver. * * \author Francesco Sacchi * * $WIZ$ module_name = "mcp41" * $WIZ$ module_depends = "timer", "kfile" * $WIZ$ module_hw = "bertos/hw/hw_mcp41.h", "bertos/hw/hw_mcp41.c", "bertos/hw/mcp41_map.h" */ #ifndef DRV_MCP41_H #define DRV_MCP41_H #include "hw/mcp41_map.h" #include #include #define MCP41_WRITE_DATA 0x11 #define MCP41_HW_MAX 255 #define MCP41_MAX 999 /** * Type for digital potentiometer resistance. */ typedef uint16_t mcp41_res_t; void mcp41_setResistance(Mcp41Dev dev, mcp41_res_t res); void mcp41_init(KFile *ch); #endif /* DRV_MCP41_H */