ARMEBS4  revision-26.06.2015
stm32_mcp4552.h
Go to the documentation of this file.
1 /**
2  * \file heivs/stm32_mcp4552.h
3  *
4  * \brief Driver for mcp4552 digital potentiometer
5  * \author marc dot pignat at hevs dot ch
6  * \addtogroup misc
7  * @{
8  ***************************************************************************/
9 #ifndef HEIVS_STM32_MCP4552_H
10 #define HEIVS_STM32_MCP4552_H
11 
12 #include "heivs/stm32_i2c.h"
13 
14 #ifdef __cplusplus
15  extern "C" {
16 #endif
17 
18 struct mcp4552_t
19 {
20  const struct heivs_bus_t *bus;
21  uint32_t i2c_address;
22 };
23 
24 status_e mcp4552_set(const struct mcp4552_t *dev, uint32_t value);
25 
26 #ifdef __cplusplus
27  }
28 #endif
29 
30 /**
31  * @}
32  */
33 #endif /* HEIVS_STM32_MCP4552_H */
Bus handler.
Definition: bus.h:92
status_e
Known errors.
Definition: error.h:21
i2c bus