ST_IRQ_EDGE_MASK
bank->irq_edge_conf &= ~(ST_IRQ_EDGE_MASK << (
(conf >> (pin * ST_IRQ_EDGE_CONF_BITS_PER_PIN) & ST_IRQ_EDGE_MASK)