/* Returns the number of major loops finished, i.e. TCD_BITER - TCD_CITER, where BITER is the number of major loops (iterations) requested and CITER is the number of major loops left to perform.  */
int kinetis_dma_ch_iter_done(int ch)
/* Returns the number of major loops finished, i.e. TCD_BITER - TCD_CITER, where BITER is the number of major loops (iterations) requested and CITER is the number of major loops left to perform.  */
int kinetis_dma_ch_iter_done(int ch)
{
	return KINETIS_DMA->tcd[ch].biter - KINETIS_DMA->tcd[ch].citer;
}