Remove message when rewinding input file.
by Martin Ling 2 years 11 months
Remove message when rewinding input file.

For small input files this may be printed a very large number of times.
9b6a0259
In repeat mode, rewind file as many times as neede...
by Martin Ling 2 years 11 months
In repeat mode, rewind file as many times as needed to fill buffer.

Fixes #720.
0c35cff0
One more early return to simplify TX callback.
by Martin Ling 2 years 11 months
06a0c2b1
Use more early returns to further simplify callbac...
by Martin Ling 2 years 11 months
85a86b8b
Use some early returns to reduce deeply indented c...
by Martin Ling 2 years 11 months
Use some early returns to reduce deeply indented callbacks.
bcaebc00
Merge pull request #1131 from martinling/hackrf-tr...
by Martin Ling 2 years 11 months
Merge pull request #1131 from martinling/hackrf-transfer-validation

Additional argument validation for hackrf_transfer
344af509
add parentheses to avoid compiler warning
by Michael Ossmann 2 years 11 months
add parentheses to avoid compiler warning

avoids a warning from -Wparentheses
c703a72a
Merge pull request #1133 from martinling/hackrf-tr...
by Michael Ossmann 2 years 11 months
Merge pull request #1133 from martinling/hackrf-transfer-timing

Overhaul timing in hackrf_transfer
04cb3a40
Merge pull request #1135 from martinling/clkin-det...
by Michael Ossmann 2 years 11 months
Merge pull request #1135 from martinling/clkin-detect

Add a simpler way to check CLKIN status.
00f79572
Overhaul timing in hackrf_transfer.
by Martin Ling 2 years 11 months
Overhaul timing in hackrf_transfer.

Rather than using sleep() for 1s at a time, set up an interval timer
that will fire once per second, and wait in the main loop for either
this or some other event.

On POSIX, the timing is set up with setitimer(), which generates a
SIGALRM signal each time the timer fires. The main loop runs pause() to
wait for any signal.

On Windows, the timing is set up using CreateWaitableTimer, which
provides an event handle that is set each time the timer fires. The main
loop runs WaitForMultipleObjects() to wait on this and an interrupt
event.

The TX and RX callbacks can now stop the main loop immediately when they
stop streaming. This fixes #1019.
a09e9a20
Report a bug