digital/packet_utils: adding parameter to take a user input preamble to the packet encoder