Skip to main content

tx_buf

Function tx_buf 

Source
pub fn tx_buf(i2s: ove_i2s_t) -> Option<*mut u8>
Expand description

Pointer to the TX half-buffer safe to write, or None if the handle is invalid.

Returns the half of the DMA TX buffer that DMA is not currently transmitting from. Fill this buffer before the next TX callback. The pointed-to memory is [half_buf_size] bytes long and remains valid until the next stop or destroy on the same handle.