sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform) 3.7
SMFSW collection of miscellaneous functions & macros (for ARM & compatible with Arduino platform)
Loading...
Searching...
No Matches
arm_inlines_var_test.h File Reference

Variables test inlines. More...

This graph shows which files directly or indirectly include this file:

Functions

BOOL inTolerance (const SDWORD val, const SDWORD ref, const float tolerance)
 Checks if val given as parameter is in tolerance.
 
BOOL inRange (const SDWORD val, const SDWORD low, const SDWORD high)
 Checks if val given as parameter is in range.
 

Detailed Description

Variables test inlines.

Author
SMFSW

Function Documentation

◆ inRange()

BOOL inRange ( const SDWORD val,
const SDWORD low,
const SDWORD high )
inline

Checks if val given as parameter is in range.

Parameters
[in]val- Value to check
[in]low- Low range boundary
[in]high- High range boundary
Returns
true if val is inRange

◆ inTolerance()

BOOL inTolerance ( const SDWORD val,
const SDWORD ref,
const float tolerance )
inline

Checks if val given as parameter is in tolerance.

Parameters
[in]val- Value to check
[in]ref- Reference value
[in]tolerance- Tolerance on reference value (in percent)
Returns
true if val is inTolerance