/* Offsets are specified to support either contiguous or discontiguous memory transfers, or repeated access to a hardware register, as needed. When accessing hardware registers, both offsets are normally zero.  */
void edma_set_src_index(unsigned slot, rt_int16_t src_bidx, rt_int16_t src_cidx)
/* Offsets are specified to support either contiguous or discontiguous memory transfers, or repeated access to a hardware register, as needed. When accessing hardware registers, both offsets are normally zero.  */
void edma_set_src_index(unsigned slot, rt_int16_t src_bidx, rt_int16_t src_cidx)
{
    unsigned ctlr;
    ctlr = EDMA_CTLR(slot);
    slot = EDMA_CHAN_SLOT(slot);
    if (slot < edma_cc[ctlr]->num_slots) {
        edma_parm_modify(ctlr, PARM_SRC_DST_BIDX, slot,
                0xffff0000, src_bidx);
        edma_parm_modify(ctlr, PARM_SRC_DST_CIDX, slot,
                0xffff0000, src_cidx);
    }
}