long int functions
function_gen_ramp: dual ramp mode