'\" t .\" Title: iio_validate_scan_mask_onehot .\" Author: .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Industrial I/O core .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "IIO_VALIDATE_SCAN_MA" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Industrial I/O core" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" iio_validate_scan_mask_onehot \- Validates that exactly one channel is selected .SH "SYNOPSIS" .HP \w'bool\ iio_validate_scan_mask_onehot('u .BI "bool iio_validate_scan_mask_onehot(struct\ iio_dev\ *\ " "indio_dev" ", const\ unsigned\ long\ *\ " "mask" ");" .SH "ARGUMENTS" .PP \fIindio_dev\fR .RS 4 the iio device .RE .PP \fImask\fR .RS 4 scan mask to be checked .RE .SH "DESCRIPTION" .PP 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\&. .SH "AUTHOR" .PP \fBDaniel Baluta\fR <\&daniel.baluta@intel.com\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br