Pick up ringbuf_* fuction in C code
Hide hardware_serial struct on interface