Adds a helper function to clip values according to the CDI options.
Adds a helper function to clip values according to the CDI options.

bakerstu/openmrn,bakerstu/openmrn,bakerstu/openmrn,bakerstu/openmrn,bakerstu/openmrn,bakerstu/openmrn