42 lines
1.1 KiB
C++
42 lines
1.1 KiB
C++
#ifndef CABLETESTBENCHDEFS_H
|
|
#define CABLETESTBENCHDEFS_H
|
|
|
|
|
|
class CConnectorDefs
|
|
{
|
|
#define MAX_CONNECTOR_PIN_COUNT 120
|
|
#define IO_MAPPING_START_INDEX 0
|
|
#define IO_MAPPING_END_INDEX 1
|
|
|
|
public:
|
|
enum eConnectorType
|
|
{
|
|
UNKNOWN_CONNECTOR_TYPE,
|
|
INPUT_6_PINS_CONNECTOR_TYPE,
|
|
INPUT_14_PINS_CONNECTOR_TYPE,
|
|
INPUT_24_PINS_CONNECTOR_TYPE,
|
|
INPUT_72_PINS_CONNECTOR_TYPE,
|
|
INPUT_90_PINS_CONNECTOR_TYPE,
|
|
INPUT_108_PINS_CONNECTOR_TYPE,
|
|
INPUT_120_PINS_CONNECTOR_TYPE,
|
|
OUTPUT_6_PINS_CONNECTOR_TYPE,
|
|
OUTPUT_14_PINS_CONNECTOR_TYPE,
|
|
OUTPUT_24_PINS_CONNECTOR_TYPE,
|
|
OUTPUT_72_PINS_CONNECTOR_TYPE,
|
|
OUTPUT_108_PINS_CONNECTOR_TYPE,
|
|
NB_CONNECTOR_TYPE
|
|
};
|
|
|
|
static const int ConnIOMapping[NB_CONNECTOR_TYPE][2];
|
|
static const int ConnPinCount[NB_CONNECTOR_TYPE];
|
|
|
|
static const int GetPinCount(eConnectorType type);
|
|
static const int GetConnectorIOMappingStart(eConnectorType type);
|
|
static const int GetConnectorIOMappingEnd(eConnectorType type);
|
|
static const int* GetConnectorIOMapping(eConnectorType type);
|
|
|
|
|
|
};
|
|
|
|
#endif // CABLETESTBENCHDEFS_H
|