58 dbg_print(
"Get Value of analog out for channel %d on subdevice %d\n", subdev->
id, channel);
60 dbg_print(
" --> calculated offset is 0x%x!\n", offset);
62 if(
flink_write(subdev, offset, REGISTER_WITH, &value) != REGISTER_WITH) {
Data structures for flink devices and subdevices.
int flink_analog_out_get_resolution(flink_subdev *subdev, uint32_t *resolution)
Reads the resolution of a analog output subdevice.
ssize_t flink_read(flink_subdev *subdev, uint32_t offset, uint8_t size, void *rdata)
Read from a flink subdevice.
int flink_analog_out_set_value(flink_subdev *subdev, uint32_t channel, uint32_t value)
Writes an analog output channel.
ssize_t flink_write(flink_subdev *subdev, uint32_t offset, uint8_t size, void *wdata)
Write to a flink subdevice.
#define dbg_print(fmt,...)
#define ANALOG_OUTPUT_FIRST_VALUE_OFFSET