Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 
 

62 Zeilen
2.6 KiB

  1. #include "CableTestBenchDefs.h"
  2. const int CConnectorDefs::ConnIOMapping[CConnectorDefs::NB_CONNECTOR_TYPE][2] = {
  3. {0,0}, //Unknown
  4. {97,102}, //in 6 pins
  5. {91,104}, //in 14 pins
  6. {73,96}, //in 24 pins
  7. {1,72}, //in 72 pins
  8. {1,90}, //in 90 pins
  9. {1,108}, //in 108 pins
  10. {1,108}, //in 120 pins
  11. {97,102}, //out 6 pins
  12. {91,104}, //out 14 pins
  13. {73,96}, //out 24 pins
  14. {1,72}, //out 72 pins
  15. {1,108}, //out 108 pins
  16. };
  17. const int CConnectorDefs::ConnPinCount[NB_CONNECTOR_TYPE] = {0, 6, 14, 24, 72, 90, 108, 120, 6, 14, 24, 72, 108};
  18. const int CConnectorDefs::GetPinCount(eConnectorType type)
  19. {
  20. if(type < 0 || type >= NB_CONNECTOR_TYPE)
  21. {
  22. return 0;
  23. }
  24. return ConnPinCount[type];
  25. }
  26. const int CConnectorDefs::GetConnectorIOMappingStart(eConnectorType type)
  27. {
  28. if(type < 0 || type >= NB_CONNECTOR_TYPE)
  29. {
  30. return ConnIOMapping[UNKNOWN_CONNECTOR_TYPE][IO_MAPPING_START_INDEX];
  31. }
  32. return ConnIOMapping[type][IO_MAPPING_START_INDEX];
  33. }
  34. const int CConnectorDefs::GetConnectorIOMappingEnd(eConnectorType type)
  35. {
  36. if(type < 0 || type >= NB_CONNECTOR_TYPE)
  37. {
  38. return ConnIOMapping[UNKNOWN_CONNECTOR_TYPE][IO_MAPPING_END_INDEX];
  39. }
  40. return ConnIOMapping[type][IO_MAPPING_END_INDEX];
  41. }
  42. const int * CConnectorDefs::GetConnectorIOMapping(eConnectorType type)
  43. {
  44. if(type < 0 || type >= NB_CONNECTOR_TYPE)
  45. {
  46. return ConnIOMapping[UNKNOWN_CONNECTOR_TYPE];
  47. }
  48. return ConnIOMapping[type];
  49. }