Current sense in SMPS, how does it work
Have a look at figure 13:



There are two control loops. 

In the inner loop, the voltage across RSEN is compared with a target value to determine when to switch the PWM circuit. This is the current sense circuit.

In the outer loop, the output voltage is compared with a reference, and the target for the inner loop is adjusted to achieve the desired output voltage.