/* Configure the length setting for block and repeat mode.  */
static void r_dtc_block_repeat_initialize(transfer_info_t *p_info)
/* Configure the length setting for block and repeat mode.  */
static void r_dtc_block_repeat_initialize(transfer_info_t *p_info)
{
    uint32_t i = 0;
    do
    {
        if (TRANSFER_MODE_NORMAL != p_info[i].transfer_settings_word_b.mode)
        {
            uint8_t CRAL = p_info[i].length & DTC_PRV_MASK_CRAL;
            p_info[i].length = (uint16_t) ((CRAL << DTC_PRV_OFFSET_CRAH) | CRAL);
        }
    } while (TRANSFER_CHAIN_MODE_DISABLED != p_info[i++].transfer_settings_word_b.chain_mode);
}