/* DMAMUX Set Request Generator Trigger Polarity. 
Set DMAMUX Request Generator input signal polarity (dmamux_rgxcr_gpol). */
void dmamux_set_request_generator_trigger_pol(uint32_t dmamux, uint8_t rg_channel, uint8_t polarity)
/* DMAMUX Set Request Generator Trigger Polarity. 
Set DMAMUX Request Generator input signal polarity (dmamux_rgxcr_gpol). */
void dmamux_set_request_generator_trigger_pol(uint32_t dmamux, uint8_t rg_channel, uint8_t polarity)
{
	uint32_t reg32 = DMAMUX_RGxCR(dmamux, rg_channel);
	reg32 &= ~(DMAMUX_RGxCR_GPOL_MASK << DMAMUX_RGxCR_GPOL_SHIFT);
	reg32 |= ((polarity & DMAMUX_RGxCR_GPOL_MASK) << DMAMUX_RGxCR_GPOL_SHIFT);
	DMAMUX_RGxCR(dmamux, rg_channel) = reg32;
}