mirror of
https://github.com/greatscottgadgets/hackrf.git
synced 2026-03-06 15:30:18 +01:00
Add a wait mode for the M0.
In wait mode, the byte counter is advanced, but no SGPIO read/writes are done. This mode is intended to be used for implementing timed operations.
This commit is contained in:
@@ -378,7 +378,7 @@ int write_register(hackrf_device* device, uint8_t part,
|
||||
}
|
||||
|
||||
static const char * mode_name(uint32_t mode) {
|
||||
const char *mode_names[] = {"IDLE", "RX", "TX_START", "TX_RUN"};
|
||||
const char *mode_names[] = {"IDLE", "WAIT", "RX", "TX_START", "TX_RUN"};
|
||||
const uint32_t num_modes = sizeof(mode_names) / sizeof(mode_names[0]);
|
||||
if (mode < num_modes)
|
||||
return mode_names[mode];
|
||||
|
||||
Reference in New Issue
Block a user