mirror of
https://github.com/steve-m/hsdaoh-rp2350.git
synced 2026-01-27 16:57:18 +01:00
lib: add flag for format id
This commit is contained in:
parent
d960d0eff1
commit
5e91d61bda
2 changed files with 3 additions and 1 deletions
|
|
@ -176,7 +176,8 @@ static bool vactive_cmdlist_posted = false;
|
|||
static uint8_t dma_sniff_pipelined_ch = 0;
|
||||
static bool dma_sniff_pipelined_disable = false;
|
||||
|
||||
metadata_t metadata = (metadata_t) { .magic = 0xda7acab1, .crc_config = CRC16_2_LINE, .version = 1, .flags = FLAG_STREAM_ID_PRESENT };
|
||||
metadata_t metadata = (metadata_t) { .magic = 0xda7acab1, .crc_config = CRC16_2_LINE, .version = 1,
|
||||
.flags = FLAG_STREAM_ID_PRESENT | FLAG_FORMAT_ID_PRESENT };
|
||||
|
||||
/* HSTX DMA IRQ handler, reconfigures the channel that just completed while
|
||||
* ther other channel is currently busy */
|
||||
|
|
|
|||
|
|
@ -49,6 +49,7 @@ typedef struct
|
|||
} __attribute__((packed, aligned(1))) metadata_t;
|
||||
|
||||
#define FLAG_STREAM_ID_PRESENT (1 << 0)
|
||||
#define FLAG_FORMAT_ID_PRESENT (1 << 1)
|
||||
|
||||
void hsdaoh_start(void);
|
||||
void hsdaoh_init(int dstrength, int slewrate);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue