/* DMAMUX Set Request Generator Input Trigger Signal. 
Set DMAMUX Request Generator input signal id (dmamux_rgxcr_sig_id) for given Request Generator Channel. */
void dmamux_set_request_generator_trigger(uint32_t dmamux, uint8_t rg_channel, uint8_t sig_id)
/* DMAMUX Set Request Generator Input Trigger Signal. 
Set DMAMUX Request Generator input signal id (dmamux_rgxcr_sig_id) for given Request Generator Channel. */
void dmamux_set_request_generator_trigger(uint32_t dmamux, uint8_t rg_channel, uint8_t sig_id)
{
	uint32_t reg32 = DMAMUX_RGxCR(dmamux, rg_channel);
	reg32 &= ~(DMAMUX_RGxCR_SIG_ID_MASK << DMAMUX_RGxCR_SIG_ID_SHIFT);
	reg32 |= ((sig_id & DMAMUX_RGxCR_SIG_ID_MASK) << DMAMUX_RGxCR_SIG_ID_SHIFT);
	DMAMUX_RGxCR(dmamux, rg_channel) = reg32;
}