'HDLC over RS485 using microcontroller

Is there any way to transfer HDLC data using microcontroller. On Git some libraries are available like ArduHDLC, HDLC Python etc. But those constructs HDLC frame only and transfer over USART (10 bit 8N1). Is there any way to encode HDLC frame like NRZ, NRZI and transfer over RS485 in 8 bit octets



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source