46.6.5.5.1 Data Transmit with the DMA in Client Mode

The following procedure shows an example to transmit data with DMA.

  1. Initialize the transmit DMA (memory pointers, transfer size, etc).
  2. Configure the Client mode.
  3. Enable the DMA.
  4. Wait for the DMA status flag indicating that the buffer transfer is complete.
  5. Disable the DMA.
  6. (Only if peripheral clock must be disabled) Wait for the TXCOMP flag to be raised in TWIHS_SR.