def getPacketType(pkt):
	"""
	Returns the packet type:

	XL320_PING   = 0x01
	XL320_READ   = 0x02
	XL320_WRITE  = 0x03
	XL320_RESET  = 0x06
	XL320_REBOOT = 0x08
	XL320_STATUS = 0x55
	"""
	return pkt[7]