/* DMAMUX Set Request Generator Trigger GNBREQ. 
Set number of request to generate (minus 1). This must be configured while given Request Generator is disabled. */
void dmamux_set_request_generator_trigger_gnbreq(uint32_t dmamux, uint8_t rg_channel, uint8_t gnbreq)
/* DMAMUX Set Request Generator Trigger GNBREQ. 
Set number of request to generate (minus 1). This must be configured while given Request Generator is disabled. */
void dmamux_set_request_generator_trigger_gnbreq(uint32_t dmamux, uint8_t rg_channel, uint8_t gnbreq)
{
	uint32_t reg32 = DMAMUX_RGxCR(dmamux, rg_channel);
	reg32 &= ~(DMAMUX_RGxCR_GNBREQ_MASK << DMAMUX_RGxCR_GNBREQ_SHIFT);
	reg32 |= ((gnbreq & DMAMUX_RGxCR_GNBREQ_MASK) << DMAMUX_RGxCR_GNBREQ_SHIFT);
	DMAMUX_RGxCR(dmamux, rg_channel) = reg32;
}