Half-duplex serial library

I'm going to use a motor predriver which interface with the customed asic (so my Arduino) with a 3 wire serial interface. A spEnable (serialport enable) to start comunication, a spClk clock reference signal and a SpData bi-directional signal line which could be used both to read and write device registers. I would like to know if exists a library for this or, if doesn't, I should start writing. This is a quote of the device datasheet:

The serial port is a bi-directional communication port
used for reading and writing to internal digital registers
of the TLS2271. The port has a three-wire external
connection, consisting of: serial port enable
(SpEna), data transfer clock (SpClk), and data

Thank you, regards

Giving a solution to those who, like me, are looking for a solution