add packet functions

Created functions that create, and operate on pre-generated packets. 

This should allow for increased performance where the same packet will be sent to multiple devices.