/* Map selected interrupt request to the selected channel.  */
void vimChannelMap(uint32 request, uint32 channel, t_isrFuncPTR handler)
/* Map selected interrupt request to the selected channel.  */
void vimChannelMap(uint32 request, uint32 channel, t_isrFuncPTR handler)
{
	uint32 i,j;
    i = channel >> 2U;
    j = channel -(i<<2U);
    j = 3U-j;
    j = j<<3U;
    vimREG->CHANCTRL[i] &= ~(0xFFU << j);
    vimREG->CHANCTRL[i] |= (request << j);
    vimRAM->ISR[channel+1] = handler;
}