Method: HardsploitAPI.prepare_packet

Defined in:
lib/HardsploitAPI/Core/HardsploitAPI.rb

.prepare_packetObject



186
187
188
189
190
191
192
193
194
# File 'lib/HardsploitAPI/Core/HardsploitAPI.rb', line 186

def self.prepare_packet
	packet = []
	packet.push 0  #low byte of lenght of trame refresh automaticly before send by usb
	packet.push 0  #high byte of lenght of trame refresh automaticly before send by usb
	packet.push HardsploitAPI.lowByte(word:HardsploitAPI::USB_COMMAND::FPGA_COMMAND)
	packet.push HardsploitAPI.highByte(word:HardsploitAPI::USB_COMMAND::FPGA_COMMAND)
	packet.push 0x50 #Command RAW COMMUNICATION TO FPGA FIFO
	return packet
end