mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-18 15:57:13 +02:00
wip print
This commit is contained in:
Binary file not shown.
@ -2566,11 +2566,20 @@ int readSample(int ns) {
|
|||||||
|
|
||||||
// wait for data
|
// wait for data
|
||||||
int fifoEmtpy = 1;
|
int fifoEmtpy = 1;
|
||||||
|
int times = 0;
|
||||||
while (fifoEmtpy) {
|
while (fifoEmtpy) {
|
||||||
fifoEmtpy = ((bus_r(FIFO_DIN_STATUS_REG) &
|
fifoEmtpy = ((bus_r(FIFO_DIN_STATUS_REG) &
|
||||||
FIFO_DIN_STATUS_FIFO_EMPTY_MSK) >>
|
FIFO_DIN_STATUS_FIFO_EMPTY_MSK) >>
|
||||||
FIFO_DIN_STATUS_FIFO_EMPTY_OFST);
|
FIFO_DIN_STATUS_FIFO_EMPTY_OFST);
|
||||||
|
if (!fifoEmtpy)
|
||||||
|
break;
|
||||||
usleep(20);
|
usleep(20);
|
||||||
|
if (times == 0)
|
||||||
|
printf('\n');
|
||||||
|
++times;
|
||||||
|
if (times % 10 == 0) {
|
||||||
|
printf(".");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// read fifo and write it to current position of data pointer
|
// read fifo and write it to current position of data pointer
|
||||||
|
Reference in New Issue
Block a user