Fan speed control - eviltoast

Does anyone know how the fan speed of the framework laptop 13 is controlled? Is it hardware based or does there exist software or API with which you can tweak your fan curve.

I’m just curious to know it.

Thanks in advance.