Michael Ossmann
b026c07000
firmware: fix duration of delay_us_at_mhz()
2022-09-26 16:43:43 -04:00
Martin Ling
f7c219e30f
Merge all_finished_lock with transfer_lock.
2022-09-26 14:01:16 +01:00
Martin Ling
367ce3d7b3
Hold transfer lock during initial submissions in prepare_transfers.
2022-09-26 14:01:15 +01:00
Martin Ling
559a45bd6b
Extend scope of transfer_lock in callback.
2022-09-26 13:42:22 +01:00
straithe
3678bfa03e
Add picture of Opera Cake to documentation
2022-09-26 00:24:42 -04:00
straithe
b4e2cd2e42
Fix typos in Readme file
2022-09-25 23:43:38 -04:00
Michael Ossmann
0e8b941897
hackrf_transfer: fix function name in debug output
2022-09-24 14:23:29 -04:00
Michael Ossmann
04614c616a
blinky: support platform detection
2022-09-23 15:08:22 -04:00
Michael Ossmann
06b9d7bee0
Clean up source code copyright notices.
2022-09-23 14:46:52 -04:00
Michael Ossmann
3d378466fb
hackrf_operacake: clean up text output
2022-09-23 14:45:34 -04:00
Michael Ossmann
caf0cfde87
Merge pull request #1176 from straithe/updateReadMeDocumentation
...
Update Readme to have docs PDF build instructions
2022-09-23 14:22:02 -04:00
straithe
c1fb7a72a8
update pdf building documentation
2022-09-23 13:53:10 -04:00
straithe
2e4a2a9e30
Update Readme to have docs PDF build instructions
2022-09-23 13:06:42 -04:00
Michael Ossmann
5b98cf92d8
Merge pull request #1168 from martinling/flush-callback
...
Provide a callback for TX flush, rather than a wait function.
2022-09-23 11:12:37 -04:00
Martin Ling
2e73a4f2db
If TX callback sets valid_length to 0, treat as end of data.
2022-09-23 12:46:49 +01:00
Michael Ossmann
45504ff397
Don't repeat file that can't advance its position.
...
This avoids a confusing condition when hackrf_transfer is reading from
stdin with -R in which it does not repeat previous data but repeatedly
restarts reading new data after the user types Ctrl-D to indicate EOF.
The -R option should repeat previous data or should do nothing if the
input file cannot be rewound.
2022-09-23 06:48:01 -04:00
Michael Ossmann
8fbaf1336c
Improve handling of file read results.
2022-09-23 06:47:54 -04:00
Martin Ling
db33e1bdaf
Revert rename of byte_count now that we only have one count.
2022-09-23 05:19:29 -04:00
Martin Ling
0becbc6b4a
Indicate success or failure to flush callback.
2022-09-23 05:19:29 -04:00
Martin Ling
4810d1f992
Fold transfer_finished function into libusb transfer callback.
2022-09-23 05:19:29 -04:00
Martin Ling
1484b78c05
Expand lock scope in libusb transfer callback.
...
This is required since cancel_transfers will also cancel the flush.
2022-09-23 05:19:29 -04:00
Martin Ling
770416f122
Cancel flush transfer if shutting down.
2022-09-23 05:19:29 -04:00
Martin Ling
c089bb0b88
Fix handling of EOF and error conditions after fread.
2022-09-23 05:19:29 -04:00
Martin Ling
eae7049284
Fix empty report when TX ends soon after the last report.
2022-09-23 05:19:29 -04:00
Martin Ling
14093fe73b
Provide a callback for completion of a TX transfer.
2022-09-23 05:19:29 -04:00
Martin Ling
2448796e35
Handle failures in fread from TX callback.
2022-09-23 05:19:29 -04:00
Martin Ling
cb8fc333aa
Fix inaccurate error message when TX completes near a 1 second boundary.
2022-09-23 05:19:29 -04:00
Martin Ling
98faa5429f
Fix inaccurate statistics in hackrf_transfer.
2022-09-23 05:19:29 -04:00
Martin Ling
b872647e97
Provide a callback for TX flush, rather than a wait function.
2022-09-23 05:19:29 -04:00
Michael Ossmann
c0ba843085
Merge pull request #1175 from grvvy/update-test-device-path
...
update test device path for test server
2022-09-22 23:16:01 -04:00
grvvy
e5c03ba9fe
update test device path for test server
2022-09-22 20:41:21 -06:00
Michael Ossmann
92b15f226e
Merge pull request #1172 from martinling/amp-startup
...
Fix initial state of RF path GPIOs.
2022-09-21 15:19:04 -04:00
Michael Ossmann
0f7d560925
Merge pull request #1167 from martinling/tx-sync-output
...
Don't start baseband streaming until TX buffer is first filled.
2022-09-21 15:05:51 -04:00
Michael Ossmann
1167f49b7f
hackrf_transfer: refer to triggers as "triggers"
2022-09-21 10:37:40 -04:00
Michael Ossmann
0e84382f5a
document hardware triggering
...
This replaces outdated documentation of an older trigger mechanism.
2022-09-21 10:36:06 -04:00
Martin Ling
3dd2e51d71
Initialise rf_path->switchctrl to SWITCHCTRL_SAFE.
...
This was previously never being initialised.
2022-09-21 12:22:58 +01:00
Martin Ling
cf34beebb0
Remove extra call to switchctrl_set and global switchctrl variable.
...
This call is not required since the GPIOs are already configured in
rf_path_pin_setup(). The global switchctrl is not used anywhere else.
2022-09-21 12:17:18 +01:00
Martin Ling
eec6963759
Initialise RF path GPIOs to safe settings.
...
Previously these calls were leaving the amplifiers on, since the
control settings passed were missing SWITCHCTRL_NO_TX_AMP_PWR and
SWITCHCTRL_NO_RX_AMP_PWR. Use the predefined SWITCHCTRL_SAFE here.
Also move these calls before setting the GPIO pins to output mode,
to avoid driving them to the wrong states briefly first.
2022-09-21 12:05:17 +01:00
Michael Ossmann
5c812681ab
docs: Remove outdated clocking page
2022-09-21 04:09:54 -04:00
Martin Ling
767db9f06c
Don't start baseband streaming until TX buffer is first filled.
2022-09-20 11:13:25 +01:00
Michael Ossmann
e623c7aed7
Merge pull request #1103 from dizcza/master
...
fixed firmware manual build docs
2022-09-19 21:30:22 -04:00
Michael Ossmann
8e83506da1
Merge pull request #1166 from martinling/tx-disconnect-hang
...
Fix hang in TX when a libusb error occurs.
2022-09-19 21:28:49 -04:00
Michael Ossmann
6835bc4812
Merge pull request #1165 from greatscottgadgets/board-id-compat
...
libhackrf: #define outdated board IDs
2022-09-19 21:15:26 -04:00
Martin Ling
e53b9d5717
Fix hang in TX when a libusb error occurs.
...
Where our callback is called with a status other than COMPLETED,
something abnormal has happened and we no longer want to either
submit further transfers or await a flush. So clear the streaming
and flush flags, and proceed to transfer_finished.
Do the same in the case where libusb_submit_transfer fails when
called to submit the flush transfer.
2022-09-20 02:07:21 +01:00
Michael Ossmann
471c5bc5de
libhackrf: #define outdated board IDs
2022-09-19 19:55:33 -04:00
Michael Ossmann
c487e3f6b1
Merge pull request #1162 from martinling/ant-bias-glitch
...
Fix antenna bias pulse glitch at startup.
2022-09-19 10:33:57 -04:00
Martin Ling
44511c6c3b
Move RFFC5072 setup before enabling RF power.
2022-09-19 13:02:29 +01:00
Martin Ling
5d78302d97
Change default RFFC5072 register settings to disable antenna bias.
2022-09-19 13:02:01 +01:00
Martin Ling
6d57709000
Move delay after enabling RF power to rad1o-specific code.
2022-09-19 10:46:01 +01:00
Michael Ossmann
555c6fb47b
Merge pull request #1161 from greatscottgadgets/wee-bugs
...
clean-up and small bug fixes
2022-09-19 04:55:53 -04:00