Hi Dong,
I'm afraid the task you are up to is very application specific and normally it would be highly recommended to do a trial&error method for that.
The idea behind the bandwidth and attenuation is more related to the dynamic states, in terms of frequency, and it refers to Bode diagram of a closed loop system. So if you know what is your system dynamic parameters, then you would be able to set the parameters accordingly (e.g if you have your system modeled in MATLAB, you can identify your control loop parameters).
If you are more familiar with PI controller settings with individual P and I constants tuning, then you can use it for GFLIB_ControllerPIp with direct interface to Kp and Ki constants or, using formulas to calculate CC1 and CC2 for GFLIB_ControllerPIr.
Finally, there is this trial&error method, which is suitable mainly for speed loop settings. However, some initial settings may help you to start.
Anyway, I would recommend you to start using MCAT. In attachment, you'll find some guidance I have prepared for current loop tuning. Speed loop tuning can be done accordingly, but then it is necessary to have reliable speed feedback. If you use sensorless algorithm, then please make sure first that the algorithm is set correctly.
I hope it helps.
Best regards,
Matej