Application programming interface associates component code with driver function