dbdma: Add set_stat method.

A hardware device may have status flags connected to 8 status bits of the DBDMA engine.
This commit is contained in:
joevt 2023-11-21 20:28:17 -08:00 committed by dingusdev
parent 50fcb45b88
commit 0166059d1b
1 changed files with 1 additions and 0 deletions

View File

@ -91,6 +91,7 @@ public:
void set_callbacks(DbdmaCallback start_cb, DbdmaCallback stop_cb);
uint32_t reg_read(uint32_t offset, int size);
void reg_write(uint32_t offset, uint32_t value, int size);
void set_stat(uint8_t new_stat) { this->ch_stat = (this->ch_stat & 0xff00) | new_stat; }
bool is_out_active();
bool is_in_active();