54#if MODULE_GP8503 || MODULE_GP8512 || MODULE_GP8403 || MODULE_GP8413 || \
56# define GP8XXX_HAS_VDAC 1
59# define GP8XXX_HAS_IDAC 1
88#if GP8XXX_HAS_VDAC || DOXYGEN
109#if GP8XXX_HAS_IDAC || DOXYGEN
152#if GP8XXX_HAS_VDAC || DOXYGEN
178#if GP8XXX_HAS_IDAC || DOXYGEN
194 uint16_t calibration_20ma);
Definitions of the Guestgood GP8xxx I2C DACs.
gp8xxx_output_range_t
Output range values.
gp8xxx_channel_t
Compile time macros to enable/disable features.
int gp8xxx_set_voltage_range(gp8xxx_t *dev, gp8xxx_output_range_t value)
Set the output range.
void gp8xxx_set_current_calibration(gp8xxx_t *dev, uint16_t calibration_4ma, uint16_t calibration_20ma)
Set the current calibration values.
int gp8xxx_init(gp8xxx_t *dev, const gp8xxx_params_t *params)
Initialize the given device.
int gp8xxx_set_dac(gp8xxx_t *dev, gp8xxx_channel_t channel, uint16_t value)
Set the DAC value.
int gp8xxx_set_current(gp8xxx_t *dev, gp8xxx_channel_t channel, uint16_t current)
Set the current.
int gp8xxx_set_voltage(gp8xxx_t *dev, gp8xxx_channel_t channel, uint16_t voltage)
Set the voltage.
@ GP8XXX_OUTPUT_RANGE_25_MA
0-25 mA output range
@ GP8XXX_OUTPUT_RANGE_VCC
0-VCC V output range (VCC fixed to 3V3)
@ GP8XXX_OUTPUT_RANGE_2_5V
0-2.5 V output range
@ GP8XXX_OUTPUT_RANGE_5V
0-5 V output range
@ GP8XXX_OUTPUT_RANGE_10V
0-10 V output range
@ GP8XXX_CHANNEL_0
Channel 0.
@ GP8XXX_CHANNEL_ALL
All channels.
@ GP8XXX_CHANNEL_1
Channel 1.
uint_fast8_t i2c_t
Default i2c_t type definition.
Low-level I2C peripheral driver interface definition.
Struct to record GP8xxx actuator information.
Device initialization parameters.
gp8xxx_output_range_t range
default output range
const gp8xxx_info_t * info
device information
uint8_t address
converter address
i2c_t i2c_dev
I2C bus the converter is connected to.
SAUL device initialization parameters.
gp8xxx_channel_t channel
channel of the device
char * name
name of the device and channel
SAUL device descriptor for the driver.
gp8xxx_channel_t channel
channel of the device
gp8xxx_t * dev
device descriptor
Device descriptor for the driver.
uint16_t calibration_20ma
calibration value for 20 mA
uint16_t calibration_4ma
calibration value for 4 mA
gp8xxx_params_t params
device parameters
gp8xxx_output_range_t range
current output range