I am planing to build a pulse delay generator based on Teensy4. The requirements are: programmable delay from the external pulse edge in the range of 0.1us up to 1 ms with an accuracy of 100ns or better, the output pulse width: programmable from 100ns up to 500 us. Could you please advise if the T4 is capable to do this, are there any standard libraries, or it requires register level programming?