The documenation for gpio_set_irq_enabled is a little bit unhelpful in that it doesn't speicfy the mask numbers (which are the numbers that someoe is interested in when they read the docs for this function), it only specifies the bit values.
It also fails to mention the enum gpio_set_irq_enabled which defines the mask values.
I have a PR ready that fixes this.