PTRobot API
Page 25 of 41
© 2005, Primera Technology, Inc. Primera is a registered trademark and Bravo is a trademark of Primera Technology, Inc. All other trademarks are the property of
their respective companies.
3 Type Definitions
3.1 PTDriveInfo Structure
typedef
struct
{
HANDLE
hDrive;
//Drive Handle.
TCHAR
tszDriveName[
132
];
//Drive String (reported from drive)
TCHAR
tszFirmwareVer[
40
];
//Drive FW version
TCHAR
tszSerialNum[
40
];
//Drive Serial Number
HANDLE
hRobot;
DWORD
dwDriveColumn;
//Drive Column (0 based - 0 is leftmost column)
DWORD
dwDriveRow;
//Drive Row (0 based - 0 is the top row)
}
PTDriveInfo,
*
pPTDriveInfo;
3.2 PTRobotInfo Structure
typedef
struct
{
HANDLE hRobot;
//Robot Handle
TCHAR
tszRobotDesc[
100
];
//Robot Description
DWORD
dwRobotType;
//See "Robot Type" section 4.4
DWORD
dwNumDrives;
//Number of Recorders on this robot
DWORD
dwNumPrinters;
//Number of Printers on this robot (0 or 1)
DWORD
dwNumBins;
//Number of Bins on this robot
DWORD
dwDriveColumns;
//Number of Drive Columns
DWORD
dwDriveRows;
//Number of Drive Rows
TCHAR
tszRobotFirmware[
20
];
//String Containing the FW Version of the Robot
DWORD
dwOptions;
//See "Robot Options" section 4.6
DWORD
dwAction;
//See "Robot Actions" section 4.7
HANDLE
hDrives[
10
];
DWORD
dwDriveBusType;
//BusType of the Drives
}
PTRobotInfo,
*
pPTRobotInfo;
3.3 PTRobotStatus Structure
typedef
struct
{
DWORD
dwSystemState;
//See "System State" section 4.3
DWORD
dwSystemError;
//See "System Error" section 4.2
DWORD dwCurrColorSpits;
DWORD
dwCurrBlackSpits;
DWORD
dwFullColorSpits;
DWORD
dwFullBlackSpits;
}
PTRobotStatus,
*
pPTRobotStatus;