Replace TX flag with a mode setting.

This is to let us start adding new operatin modes for the M0.
This commit is contained in:
Martin Ling
2021-12-24 07:44:18 +00:00
parent c0d0cd2a1d
commit 5b50b2dfac
5 changed files with 31 additions and 17 deletions

View File

@@ -157,12 +157,12 @@ typedef struct {
/** State of the SGPIO loop running on the M0 core. */
typedef struct {
/** Operating mode. */
uint32_t mode;
/** Number of bytes transferred by the M0. */
uint32_t m0_count;
/** Number of bytes transferred by the M4. */
uint32_t m4_count;
/** TX flag. */
uint32_t tx;
} hackrf_m0_state;
struct hackrf_device_list {