25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

34 lines
643 B

  1. #include "Connector.h"
  2. #include "GlobalDefine.h"
  3. CConnector::CConnector()
  4. {
  5. mPinCount = 0;
  6. mIOModuleRangeBegin = mIOModuleRangeEnd = 0;
  7. }
  8. int CConnector::GetPinCount()
  9. {
  10. return mPinCount;
  11. }
  12. int CConnector::SetConnectorType(CConnectorDefs::eConnectorType type)
  13. {
  14. mConnectorType = type;
  15. mPinCount = CConnectorDefs::GetPinCount(type);
  16. mIOModuleRangeBegin = CConnectorDefs::GetConnectorIOMappingStart(type);
  17. mIOModuleRangeEnd = CConnectorDefs::GetConnectorIOMappingEnd(type);
  18. return RET_OK;
  19. }
  20. bool CConnector::IsConnectorDefined()
  21. {
  22. if(mPinCount == 0)
  23. {
  24. return false;
  25. }
  26. return true;
  27. }