<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _jtag_to_swd(self):
 """ Send the command to switch from SWD to jtag """

        data = [0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff]
        self._protocol.swj_sequence(data)

        data = [0x9e, 0xe7]
        self._protocol.swj_sequence(data)

        data = [0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff]
        self._protocol.swj_sequence(data)

        data = [0x00]
        self._protocol.swj_sequence(data)