other versions
- jessie-backports 4.9.88-1+deb9u1~bpo8+1
- stretch 4.9.144-3
IIO_VALIDATE_SCAN_MA(9) | Industrial I/O core | IIO_VALIDATE_SCAN_MA(9) |
NAME¶
iio_validate_scan_mask_onehot - Validates that exactly one channel is selectedSYNOPSIS¶
bool
iio_validate_scan_mask_onehot(struct iio_dev * indio_dev,
const unsigned long * mask);
ARGUMENTS¶
indio_devthe iio device
mask
scan mask to be checked
DESCRIPTION¶
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 <daniel.baluta@intel.com>Author.
COPYRIGHT¶
May 2018 | Kernel Hackers Manual 4.9. |