Is the CC and CV mode is controlled by the IC HR1211 or the TL431 shunt regulator.
Hello,
Generally speaking, the controller should be what controls the operation mode; either CC or CV. The HR1211 is an AC-DC controller that combines PFC and LLC in one package and it should be the one controlling the operation mode.
If you are using these parts in a charger design, this reference design article may be helpful if you have further questions.
Offline 600W Battery Charger / PFC + LLC with HR1211
We also have an evaluation board for this circuit which is EVHR1211-Y-00B.
Feel free to reach out if you have further questions.
Thank you,
Eliza