Two wire Protocol using pru remote proc

Hi,

I would like to implement a two wire protocol base on IEEE1149.7 using the beaglebone black.
Capture
Any suggestion how to do it?

You may find inspiration in this one-wire dirver project:

(Of course, nobody uses rproc.)