1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
|
.TH HACKRF_DEBUG "1" "July 2021" "hackrf_debug " "User Commands"
.SH NAME
hackrf_debug \- register manipultion tool
.SH DESCRIPTION
.SS "Usage:"
.HP
\fB\-h\fR, \fB\-\-help\fR: this help
.HP
\fB\-n\fR, \fB\-\-register\fR <n>: set register number for read/write operations
.HP
\fB\-r\fR, \fB\-\-read\fR: read register specified by last \fB\-n\fR argument, or all registers
.HP
\fB\-w\fR, \fB\-\-write\fR <v>: write register specified by last \fB\-n\fR argument with value <v>
.HP
\fB\-c\fR, \fB\-\-config\fR: print SI5351C multisynth configuration information
.HP
\fB\-d\fR, \fB\-\-device\fR <s>: specify a particular device by serial number
.HP
\fB\-m\fR, \fB\-\-max2837\fR: target MAX2837
.HP
\fB\-s\fR, \fB\-\-si5351c\fR: target SI5351C
.HP
\fB\-f\fR, \fB\-\-rffc5072\fR: target RFFC5072
.HP
\fB\-g\fR, \fB\-\-gateware\fR: target gateware registers
.HP
\fB-P\fR, \fB--fpga\fR <n>: load the n-th bitstream to the FPGA
.HP
\fB-1\fR, \fB--p1\fR <n>: P1 control
.HP
\fB-2\fR, \fB--p2\fR <n>: P2 control
.HP
\fB-C\fR, \fB--clkin\fR <0/1>: CLKIN control (0 for P1_CLKIN, 1 for P22_CLKIN)
.HP
\fB-N\fR, \fB--narrowband\fR <0/1>: narrowband filter disable/enable
.HP
\fB-S\fR, \fB--state\fR: display M0 state
.HP
\fB-T\fR, \fB--tx-underrun-limit\fR <n>: set TX underrun limit in bytes (0 for no limit)
.HP
\fB-R\fR, \fB--rx-overrun-limit\fR <n>: set RX overrun limit in bytes (0 for no limit)
.HP
\fB\-u\fR, \fB\-\-ui\fR <1/0>: enable/disable UI
.HP
\fB-l\fR, \fB--leds\fR <state>: configure LED state (0 for all off, 1 for default)
.HP
\fB-t\fR, \fB--selftest\fR: read self-test report
.HP
\fB-o\fR, \fB--rtc-osc\fR: test 32.768kHz RTC oscillator
.HP
\fB-a\fR, \fB--adc\fR <channel>: read value from an ADC channel. Add 0x80 for alternate pin
.HP
.SH EXAMPLES
.TP
hackrf_debug \-\-si5351c \-n 0 \-r
# reads from si5351c register 0
.TP
hackrf_debug \-\-si5351c \-c
# displays si5351c multisynth configuration
.TP
hackrf_debug \-\-rffc5072 \-r
# reads all rffc5072 registers
.TP
hackrf_debug \-\-max2837 \-n 10 \-w 22 # writes max2837 register 10 with 22 decimal
.TP
hackrf_debug \-\-state # displays M0 state
.SH "SEE ALSO"
The primary source of documentation is the wiki on github:
https://github.com/mossmann/hackrf/wiki
|