I´m new to the STM32 - so please be patient with me

We like to build some Sensors for a RC radio controll from FrSky. You can attach sensors which communicate serial over one line. So Tx and Rx are shared. There are also some great libs to get use of the smartport functionality:
https://www.rcgroups.com/forums/showthr ... nfigurable
But most projects are build on top of Arduino or Teensy. And they all have special implementations to make use of a single wire serial bus.
Can anyone give some adivce how I can send and receive data over one combined TX/RX line?
And btw ... I know that some STM32 have build in serial inversion. Can I activate this function from my Arduino code?
Thx for your help
Dominik