def sendRequest(self, event):

        # Check connected
        if not commsConnectWarning.confirmConnected(gui.frame):
            return
        
        protocols.getProtocol().sendUtilitySoftResetRequest()
    def sendRequest(self, event):
        '''
        Send memory request
        '''
        # Check connected
        if not commsConnectWarning.confirmConnected(gui.frame):
            return

        payload_id = self._p_input.GetSelection()
        block_id = self._b_input.GetSelection()

        # Correct small bug where selection will be -1 if input has not
        # been in focus
        if payload_id < 0:
            payload_id = 0
        if block_id < 0:
            block_id = 0

        payload_id = self._p_ids[payload_id]
        block_id = self._b_ids[block_id]

        data = {
            'type': self._options[payload_id],
            'block_id': block_id
        }
        
        self.controller.action('comms.sendMemoryRequest', data)
    def sendRequest(self, event):

        # Check connected
        if not commsConnectWarning.confirmConnected(gui.frame):
            return

        data = {'type': 'HardSystemReset'}
        self._controller.action('comms.sendUtilityRequest', data)
    def toggleLogging(self, event):
        '''
        Send packet to toggle logging
        '''
        # Check connected
        if not commsConnectWarning.confirmConnected(gui.frame):
            return

        protocol = comms.getConnection().getProtocol()
        packet = protocol.getRequestPacket('BasicDatalog')
        packet.startBasic()

        data = {'packet': packet}
        self._controller.action('comms.sendRequest', data)
    def sendRequest(self, event):
        '''Send utility request'''
        
        # Check connected
        if not commsConnectWarning.confirmConnected(gui.frame):
            return

        selection = self.input.GetSelection()

        # Correct small bug where selection will be -1 if input has not
        # been in focus
        if selection < 0:
            selection = 0

        protocols.getProtocol().sendUtilityRequest(selection)
    def sendRequest(self, event):
        '''Send utility request'''
        
        # Check connected
        if not commsConnectWarning.confirmConnected(gui.frame):
            return

        selection = self.input.GetSelection()

        # Correct small bug where selection will be -1 if input has not
        # been in focus
        if selection < 0:
            selection = 0

        data = {'type': self.options[self.choices[selection]]}
        self._controller.action('comms.sendUtilityRequest', data)
    def sendRequest(self, event):
        '''Send memory request'''
        
        # Check connected
        if not commsConnectWarning.confirmConnected(gui.frame):
            return

        payload_id = self._p_input.GetSelection()
        block_id = self._b_input.GetSelection()

        # Correct small bug where selection will be -1 if input has not
        # been in focus
        if payload_id < 0:
            payload_id = 0
        if block_id < 0:
            block_id = 0

        payload_id = self._p_ids[payload_id]
        block_id = self._b_ids[block_id]

        protocols.getProtocol().sendMemoryRequest(payload_id, block_id)