123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- #ifndef MCP4725_H
- #define MCP4725_H
- #include <stdbool.h>
- #include <stdint.h>
- #include "app_util_platform.h"
- #ifdef __cplusplus
- extern "C" {
- #endif
- typedef struct
- {
- uint8_t scl_pin;
- uint8_t sda_pin;
- }mcp4725_pins_config_t;
- ret_code_t mcp4725_setup(mcp4725_pins_config_t const * p_pins_config);
- ret_code_t mcp4725_set_voltage(uint16_t val, bool write_eeprom);
- bool mcp4725_is_busy(void);
- #ifdef __cplusplus
- }
- #endif
- #endif
|