Move duplicated code to one place.
by Martin Ling 2 years 10 months
16f93d9b
Clarify variables used in TX callback.
by Martin Ling 2 years 10 months
Clarify variables used in TX callback.

The power measurement depends on the number of bytes that were valid
from the previous use of the transfer buffer.

The number of bytes to be read to fill the next transfer, is the full
size of the buffer.
29787cd2
Detect hardware platform at run-time.
by Michael Ossmann 2 years 10 months
Detect hardware platform at run-time.

Firmware now detects the hardware it is running on at startup and
refuses to run if it is compiled for the wrong platform. The board ID
returned by firmware to the host is now derived from run-time detection
rather than a compile-time value. A separate method to retrieve
compile-time supported platform is added.

On HackRF One, pin straps are checked to determine hardware revision.
This is informational to aid troubleshooting and does not affect any
function.
9329c5e4
Merge pull request #1139 from martinling/tx-flush
by Michael Ossmann 2 years 10 months
Merge pull request #1139 from martinling/tx-flush

Support flushing the device TX buffer before ending transmission
fdfe310f
Flush buffer when CW mode is used with -n.
by Martin Ling 2 years 10 months
76502368
Don't await buffer flush if interrupted by Ctrl-C.
by Martin Ling 2 years 10 months
0142ae6d
firmware: use consistent clock source
by Michael Ossmann 2 years 10 months
firmware: use consistent clock source

CLKOUT now switches to the active clock source whenever the internal
clocks change source. It previously did so only when (re)enabled.
21042915
Merge pull request #1153 from greatscottgadgets/me...
by Michael Ossmann 2 years 10 months
Merge pull request #1153 from greatscottgadgets/measure-power

Measure digital signal power, not amplitude in hackrf_transfer
57d51fd0
hackrf_transfer: report on only actual transfers
by Michael Ossmann 2 years 10 months
hackrf_transfer: report on only actual transfers

The statistics reported to the user now reflect only completed USB
transfers and do not include information about the empty buffers that
are preloaded with data at the start of a TX operation.
8a9af7a1
libhackrf: add transfer buffer size access calls
by Michael Ossmann 2 years 10 months
libhackrf: add transfer buffer size access calls

Applications may need to learn the size of the USB transfer buffer
queue, for example to determine how many bytes will be preloaded with
calls to the TX callback.
70a04855
Report a bug