The control program written in C language has an input and output terminal, how to call it when it is compiled into a dll file? For example, my C language is to generate a pulse signal whose frequency changes every other cycle, and compile it into a dll to control the switching device on and off. Can it be realized?