iio_validate_scan_mask_onehot(9)

iio_validate_scan_mask_onehot9

Validates that exactly one channel is selected

Usage

bool iio_validate_scan_mask_onehot(struct iio_dev * indio_dev, const unsigned long * mask);

Arguments

indio_dev

the iio device

mask

scan mask to be checked

Overview

Return true if exactly one bit is set in the scan mask, false otherwise. It can be used for devices where only one channel can be active for sampling at a time.

Author

Daniel Baluta <[email protected]>

Author.

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.