LibDriver PCF8591
Loading...
Searching...
No Matches
driver_pcf8591_increment.h
Go to the documentation of this file.
1
37
38#ifndef DRIVER_PCF8591_INCREMENT_H
39#define DRIVER_PCF8591_INCREMENT_H
40
42
43#ifdef __cplusplus
44extern "C"{
45#endif
46
51
55#define PCF8591_INCREMENT_DEFAULT_REFERENCE_VOLTAGE 3.3f
56
67
75uint8_t pcf8591_increment_deinit(void);
76
87uint8_t pcf8591_increment_read(int16_t *raw, float *adc, uint8_t *len);
88
97uint8_t pcf8591_increment_write(float dac);
98
102
103#ifdef __cplusplus
104}
105#endif
106
107#endif
driver pcf8591 interface header file
pcf8591_mode_t
pcf8591 mode definition
pcf8591_address_t
pcf8591 address enumeration definition
uint8_t pcf8591_increment_init(pcf8591_address_t addr, pcf8591_mode_t mode)
increment example init
uint8_t pcf8591_increment_read(int16_t *raw, float *adc, uint8_t *len)
increment example read the adc
uint8_t pcf8591_increment_write(float dac)
increment example write the dac
uint8_t pcf8591_increment_deinit(void)
increment example deinit