Lines Matching full:range
20 * @defgroup linear_range Linear Range
23 * The linear range API maps values in a linear range to a range index. A linear
24 * range can be fully defined by four parameters:
47 * A linear range may also be constant, that is, step set to zero.
53 * Implementation uses fixed-width integers. Range is limited to [INT32_MIN,
60 /** @brief Linear range. */
75 * @param _min Minimum value in range.
89 * @brief Obtain the number of values representable in a linear range.
91 * @param[in] r Linear range instance.
103 * @param[in] r Array of linear range instances.
104 * @param r_cnt Number of linear range instances.
121 * @brief Obtain the maximum value representable by a linear range.
123 * @param[in] r Linear range instance.
133 * @brief Obtain value given a linear range index.
135 * @param[in] r Linear range instance.
136 * @param idx Range index.
140 * @retval -EINVAL If index is out of range.
155 * @brief Obtain value in a group given a linear range index.
157 * @param[in] r Array of linear range instances.
158 * @param r_cnt Number of linear range instances.
159 * @param idx Range index.
163 * @retval -EINVAL If index is out of range.
181 * If the value falls outside the range, the nearest index will be stored and
182 * -ERANGE returned. That is, if the value falls below or above the range, the
186 * @param[in] r Linear range instance.
190 * @retval 0 If value falls within the range.
191 * @retval -ERANGE If the value falls out of the range.
222 * @param[in] r Linear range instances.
223 * @param r_cnt Number of linear range instances.
227 * @retval 0 If value falls within the range group.
228 * @retval -ERANGE If the value falls out of the range group.
250 * If the window of values does not intersect with the range, -EINVAL will be
254 * @param[in] r Linear range instance.
259 * @retval 0 If a valid index is found within linear range.
261 * linear range.
263 * linear range or if they are too narrow.
305 * @param[in] r Linear range instances.
306 * @param r_cnt Number of linear range instances.
311 * @retval 0 If a valid index is found within linear range group.
313 * linear range group.
315 * linear range group, if they are too narrow, or if input is invalid (i.e.