38#ifndef DRIVER_PCF8591_BASIC_H
39#define DRIVER_PCF8591_BASIC_H
57#define PCF8591_BASIC_DEFAULT_REFERENCE_VOLTAGE 3.3f
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