Title / Description
Code column_count = 0; k_chars = [0 0 0 0 0 0 0 0]; k_chars = k_chars(lane_indx); k_chars = sum(k_chars.*bin_to_dec); count = -1; vec = (2.^(7:-1:0)); for lp1 = 1:(N-Np-6) if (send_prbs == 1) data = []; for lp2 = 1:8 indx = (lp1-1)*64+((lp2-1)*8+1:(lp2-1)*8+8); data = [data sum(vec.*prbs_17(indx))]; end elseif (mark_lanes == 1) data = []; lane_index = lane_start; for lp2 = 1:8 data = [16*column_count+lane_index data]; lane_index = lane_index + 1; if (lane_index > 8) lane_index = 1; end end column_count = column_count + 1; if (column_count > 9) column_count = 0; end else data = count + (1:8); count = count + 8; if (count > 247) count = -1; end end data = data(lane_indx); data = [k_chars data]; fwrite(fid,data,'uint8'); end
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code