Im porting the miner.py to C because I have no python on my embedded system.
Can someone explan me what this python snipped is all about:
self.fpga.write(struct.pack("B", 1) + job.state[::-1] + job.data[75:63:-1]
Does it mean bytes 75 to 63 are snipped out in reverse order???
the -1 after the second colon means reverse order, but in python the number after the first colon is not the last element of the subrange, it's the first element not included. So job.data[75:63:-1] will give you the [75th, 74th, 73rd ... 65th, 64th] elements.
btw, do you plan to make the C version public?