Você não pode selecionar mais de 25 tópicos
Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
|
- #include "Connector.h"
- #include "GlobalDefine.h"
-
- CConnector::CConnector()
- {
- mPinCount = 0;
- mIOModuleRangeBegin = mIOModuleRangeEnd = 0;
- }
-
- int CConnector::GetPinCount()
- {
- return mPinCount;
- }
-
- int CConnector::SetConnectorType(CConnectorDefs::eConnectorType type)
- {
- mConnectorType = type;
- mPinCount = CConnectorDefs::GetPinCount(type);
- mIOModuleRangeBegin = CConnectorDefs::GetConnectorIOMappingStart(type);
- mIOModuleRangeEnd = CConnectorDefs::GetConnectorIOMappingEnd(type);
-
- return RET_OK;
- }
-
- bool CConnector::IsConnectorDefined()
- {
- if(mPinCount == 0)
- {
- return false;
- }
-
- return true;
- }
|