This function is used internally by the library to set the buffer’s flags. The flags can be one or both of two options: DMA_BUFFER_DISCONT
set if the capture was stopped and then restarted, and DMA_BUFFER_INTRLVD
which indicates that the data in the buffer is interleaved.
buf.setflags(uint32_t mask)