MPLAB® Harmony Graphics Suite > Graphics Library > Legato Graphics Library > Legato Interface > a) Common Functions > leClampi Function
MPLAB® Harmony Graphics Suite
leClampi Function
C
LIB_EXPORT int32_t leClampi(
    int32_t min, 
    int32_t max, 
    int32_t i
);
Parameters
Parameters 
Description 
min 
the minimum value 
max 
the maximum value 
the number to clamp 
Returns

int32_t - the clamped value

MPLAB® Harmony Graphics Suite