how to control a constant current led driver output with pwm

how to control a constant current led driver output with pwm