Defined some functions to suit STPLP frame analysis, reception/conversion, and began to write MAC Protocol.