Set Gpio state based on measured values

Hi, I am new to odrive and learning. Is it possible to set a gpio based on measured value. Maybe bus current, speed or vbus voltage bellow or higher than a value. Is this possible?