Programmable interface between a set of switches and a set of functions