Functions for serializing and deserializing ATT data
Takes binary data and returns a struct
Takes a struct and returns binary data