46.6.5.5.2 Data Receive with the DMA in Client Mode
The following procedure shows an example to transmit data with DMA where the number of characters to receive is known.
- Initialize the DMA (channels, memory pointers, size, etc.).
- Configure the Client mode.
- Enable the DMA.
- Wait for the DMA status flag indicating that the buffer transfer is complete.
- Disable the DMA.
- (Only if peripheral clock must be disabled) Wait for the TXCOMP flag to be raised in TWIHS_SR.