Have a look at the following pages. I think most of the work is done already.
https://dflund.se/~triad/krad/inteno-xg6846/