I want to configure the RPi zero as a slave device in the RS485 network. But I am not sure how to implement it in the software(C/C++). The idea is RPi is doing some image processing, and whenever the host requests the data, the RPi needs to send it to the host. Is it possible to use interrupt? Can anyone help?