Use packet structs, for compatibility with 32 bit ARM
Add delay workaround for fast ARM processors