LibDriver PCF8591
Loading...
Searching...
No Matches
driver_pcf8591_basic.h
Go to the documentation of this file.
1
37
38#ifndef DRIVER_PCF8591_BASIC_H
39#define DRIVER_PCF8591_BASIC_H
40
42
43#ifdef __cplusplus
44extern "C"{
45#endif
46
53
57#define PCF8591_BASIC_DEFAULT_REFERENCE_VOLTAGE 3.3f
58
69
77uint8_t pcf8591_basic_deinit(void);
78
88
98uint8_t pcf8591_basic_read(int16_t *raw, float *adc);
99
108uint8_t pcf8591_basic_write(float dac);
109
113
114#ifdef __cplusplus
115}
116#endif
117
118#endif
driver pcf8591 interface header file
pcf8591_mode_t
pcf8591 mode definition
pcf8591_address_t
pcf8591 address enumeration definition
pcf8591_channel_t
pcf8591 channel definition
uint8_t pcf8591_basic_read(int16_t *raw, float *adc)
basic example read the adc
uint8_t pcf8591_basic_set_channel(pcf8591_channel_t channel)
basic example set the channel
uint8_t pcf8591_basic_init(pcf8591_address_t addr, pcf8591_mode_t mode)
basic example init
uint8_t pcf8591_basic_write(float dac)
basic example write the dac
uint8_t pcf8591_basic_deinit(void)
basic example deinit