Added functions so the UI can send data to the FPGA