Mapping of the physical contacts of an electrical connector or electronic component to their functions