Heater module on POSIX platform

Hello. I tried to add the heater module for thermal stabilization of the IMU sensor, but as I understood, posix-based boards do not have methods for interacting with GPIO. Please tell me, they need to be implemented manually or I tried to connect incorrectly (RPI is used).