I'm struggling to find any info about how to implement a hdlc stack. I'm interested in things like which functions you need for a basic implementaiton (encode, decode ect.) and also in what the interface against the layer above and below looks like. Perhaps you know of a book or where I can find some info about this. Help would be most appreciated!