Re: [PATCH 0/4] Add valid sample channel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Dec 1, 2014 at 10:51 PM, Lars-Peter Clausen <lars@xxxxxxxxxx> wrote:
> On 12/01/2014 09:46 PM, Daniel Baluta wrote:
> [...[
>>>>
>>>> User space application will read /dev/iio:deviceX to get data
>>>> samples. How would they know the source of the data samples?
>>>
>>>
>>>
>>> What exactly do you mean by source?
>>
>>
>> By source I mean accelerometer or magnetometer in the case of KMX61
>> sensor.
>
>
> The channel type of the iio device should make it pretty clear which one it
> is ;) You can also add a suffix to the IIO device name.

Well, this question was asked in the context of using a single IIO device
for both accel / magnetometer.

The user will open /dev/iio:deviceX and read accel/magnetometer samples.
In the case were sampling frequency is the same for both devices everything
is easy. The interesting case is the one when having a single IIO device
with 2 channels (accel/magn) with different sampling rates.

Anyhow, my implementation know uses 2 IIO devices and everything is clear.

Daniel.
--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux