added helper functions to put / get / transform 12bits datas
helper function proposition to manipulate 12bits datas.
at the moment there's two macros and two functions and I don't know how to decide if we can have macro or function so the two scaler functions could be macro and vice-versa...