I need to implement 8b10b encoding and decoding functions in a serial UVC I am developing. However, I am unsure of the best method to use to apply the 8b10b coding algorithm. My first thought was to create a set of 8b10b encoding/decoding tables using a struct, pass the generated bytes/characters into the tables, and continue using the resulting value in the transactions. However, this doesn't seem to be the most efficient method to use.
I've never found or seen a canned set of 8b10b libraries to use, so I need to roll my own. If anyone has done this before and could get me pointed in the right direction, please let me know.
Thanks!
Tony