mirror of
https://github.com/steve-m/hsdaoh-rp2350.git
synced 2025-12-10 07:44:39 +01:00
lib: introduce flag to signal stream ID presence
This commit is contained in:
parent
058c13d4a7
commit
7ab786c38c
2 changed files with 3 additions and 1 deletions
|
|
@ -176,7 +176,7 @@ 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 };
|
||||
metadata_t metadata = (metadata_t) { .magic = 0xda7acab1, .crc_config = CRC16_2_LINE, .version = 1, .flags = FLAG_STREAM_ID_PRESENT };
|
||||
|
||||
/* HSTX DMA IRQ handler, reconfigures the channel that just completed while
|
||||
* ther other channel is currently busy */
|
||||
|
|
|
|||
|
|
@ -48,6 +48,8 @@ typedef struct
|
|||
uint8_t stream_cnt;
|
||||
} __attribute__((packed, aligned(1))) metadata_t;
|
||||
|
||||
#define FLAG_STREAM_ID_PRESENT (1 << 0)
|
||||
|
||||
void hsdaoh_start(void);
|
||||
void hsdaoh_init(int dstrength, int slewrate);
|
||||
void hsdaoh_update_head(int stream_id, int head);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue