/
DEF_GET_U_MAX_VAL()
DEF_GET_U_MAX_VAL()
Gets the maximum unsigned value that can be represented in an unsigned integer variable of the same data type size as an object.
Files
lib_def.h
Prototype
DEF_GET_U_MAX_VAL(obj);
Arguments
obj
Object or data type to return maximum unsigned value.
Returned Value
Maximum unsigned integer value that can be represented by the object.
Required Configuration
None.
Notes / Warnings
obj
should be an integer object or data type but could also be a character or pointer object or data type.
Example Usage
CPU_DATA val; val = Some val; if (val == DEF_GET_U_MAX_VAL(val)) { handle max val condition; }
, multiple selections available,
Related content
DEF_MAX()
DEF_MAX()
More like this
DEF_CHK_VAL_MAX()
DEF_CHK_VAL_MAX()
More like this
DEF_CHK_VAL()
DEF_CHK_VAL()
More like this
DEF_CHK_VAL_MIN()
DEF_CHK_VAL_MIN()
More like this
DEF_ABS()
DEF_ABS()
More like this
DEF_BITxx()
DEF_BITxx()
More like this