import struct


def _is_pcmd(cmd):
    """
    Returns true if the given command is a pcmd command and false otherwise
    """
    # BBHBbb: Header (7) + payload (7)
    if len(cmd) != 14:
        return False

    return struct.unpack('<BBH', cmd[7:11]) == (3, 0, 0)