58 dbg_print(
"Get Value of analog in for channel %d on subdevice %d\n", subdev->
id, channel);
60 dbg_print(
" --> calculated offset is 0x%x!\n", offset);
62 if(
flink_read(subdev, offset, REGISTER_WITH, value) != REGISTER_WITH) {
Data structures for flink devices and subdevices.
#define ANALOG_INPUT_FIRST_VALUE_OFFSET
int flink_analog_in_get_value(flink_subdev *subdev, uint32_t channel, uint32_t *value)
Reads an analog input channel.
ssize_t flink_read(flink_subdev *subdev, uint32_t offset, uint8_t size, void *rdata)
Read from a flink subdevice.
int flink_analog_in_get_resolution(flink_subdev *subdev, uint32_t *resolution)
Reads the resolution of a analog input subdevice.
#define dbg_print(fmt,...)