#include <stdarg.h>
#include "stdint.h"
#include <stdlib.h>
#include <string.h>
#include "dn_additional.h"
#include "dn_common.h"
#include "dn_device.h"
#include "dn_tcp.h"
#include "dn_udp.h"
#include "dn_com.h"
#include "dn_thread.h"
#include "bcap_common.h"
#include "bcap_funcid.h"
#include "bcap_client.h"
Go to the source code of this file.
Classes | |
struct | CONN_BCAP_CLIENT |
b-CAP client communication object. More... | |
Macros | |
#define | _RETRY_MAX (7) |
A definition for the maximum retry count. More... | |
#define | _RETRY_MIN (1) |
A definition for the minimum retry count. More... | |
Functions | |
HRESULT | bCap_Close_Client (int *pfd) |
Ends b-CAP communication. More... | |
HRESULT | bCap_CommandCancel (int fd, uint32_t hCommand) |
Send the b-CAP ID_COMMAND_CANCEL packet. More... | |
HRESULT | bCap_CommandExecute (int fd, uint32_t hCommand, int32_t lMode, VARIANT *pVal) |
Send the b-CAP ID_COMMAND_EXECUTE packet. More... | |
HRESULT | bCap_CommandGetAttribute (int fd, uint32_t hCommand, int32_t *pVal) |
Send the b-CAP ID_COMMAND_GETATTRIBUTE packet. More... | |
HRESULT | bCap_CommandGetHelp (int fd, uint32_t hCommand, BSTR *pVal) |
Send the b-CAP ID_COMMAND_GETHELP packet. More... | |
HRESULT | bCap_CommandGetID (int fd, uint32_t hCommand, VARIANT *pVal) |
Send the b-CAP ID_COMMAND_GETID packet. More... | |
HRESULT | bCap_CommandGetName (int fd, uint32_t hCommand, BSTR *pVal) |
Send the b-CAP ID_COMMAND_GETNAME packet. More... | |
HRESULT | bCap_CommandGetParameters (int fd, uint32_t hCommand, VARIANT *pVal) |
Send the b-CAP ID_COMMAND_GETPARAMETERS packet. More... | |
HRESULT | bCap_CommandGetResult (int fd, uint32_t hCommand, VARIANT *pVal) |
Send the b-CAP ID_COMMAND_GETRESULT packet. More... | |
HRESULT | bCap_CommandGetState (int fd, uint32_t hCommand, int32_t *pVal) |
Send the b-CAP ID_COMMAND_GETSTATE packet. More... | |
HRESULT | bCap_CommandGetTag (int fd, uint32_t hCommand, VARIANT *pVal) |
Send the b-CAP ID_COMMAND_GETTAG packet. More... | |
HRESULT | bCap_CommandGetTimeout (int fd, uint32_t hCommand, int32_t *pVal) |
Send the b-CAP ID_COMMAND_GETTIMEOUT packet. More... | |
HRESULT | bCap_CommandPutID (int fd, uint32_t hCommand, VARIANT newVal) |
Send the b-CAP ID_COMMAND_PUTID packet. More... | |
HRESULT | bCap_CommandPutParameters (int fd, uint32_t hCommand, VARIANT newVal) |
Send the b-CAP ID_VARIABLE_PUTPARAMETERS packet. More... | |
HRESULT | bCap_CommandPutTag (int fd, uint32_t hCommand, VARIANT newVal) |
Send the b-CAP ID_COMMAND_PUTTAG packet. More... | |
HRESULT | bCap_CommandPutTimeout (int fd, uint32_t hCommand, int32_t newVal) |
Send the b-CAP ID_COMMAND_PUTTIMEOUT packet. More... | |
HRESULT | bCap_CommandRelease (int fd, uint32_t *hCommand) |
Send the b-CAP ID_COMMAND_RELEASE packet. More... | |
HRESULT | bCap_ControllerConnect (int fd, BSTR bstrName, BSTR bstrProvider, BSTR bstrMachine, BSTR bstrOption, uint32_t *hController) |
Send the b-CAP ID_CONTROLLER_CONNECT packet. More... | |
HRESULT | bCap_ControllerDisconnect (int fd, uint32_t *hController) |
Send the b-CAP ID_CONTROLLER_DISCONNECT packet. More... | |
HRESULT | bCap_ControllerExecute (int fd, uint32_t hController, BSTR bstrCommand, VARIANT vntParam, VARIANT *pVal) |
Send the b-CAP ID_CONTROLLER_EXECUTE packet. More... | |
HRESULT | bCap_ControllerGetAttribute (int fd, uint32_t hController, int32_t *pVal) |
Send the b-CAP ID_CONTROLLER_GETATTRIBUTE packet. More... | |
HRESULT | bCap_ControllerGetCommand (int fd, uint32_t hController, BSTR bstrName, BSTR bstrOption, uint32_t *hCommand) |
Send the b-CAP ID_CONTROLLER_GETCOMMAND packet. More... | |
HRESULT | bCap_ControllerGetCommandNames (int fd, uint32_t hController, BSTR bstrOption, VARIANT *pVal) |
Send the b-CAP ID_CONTROLLER_GETCOMMANDNAMES packet. More... | |
HRESULT | bCap_ControllerGetExtension (int fd, uint32_t hController, BSTR bstrName, BSTR bstrOption, uint32_t *hExtension) |
Send the b-CAP ID_CONTROLLER_GETEXTENSION packet. More... | |
HRESULT | bCap_ControllerGetExtensionNames (int fd, uint32_t hController, BSTR bstrOption, VARIANT *pVal) |
Send the b-CAP ID_CONTROLLER_GETEXTENSIONNAMES packet. More... | |
HRESULT | bCap_ControllerGetFile (int fd, uint32_t hController, BSTR bstrName, BSTR bstrOption, uint32_t *hFile) |
Send the b-CAP ID_CONTROLLER_GETFILE packet. More... | |
HRESULT | bCap_ControllerGetFileNames (int fd, uint32_t hController, BSTR bstrOption, VARIANT *pVal) |
Send the b-CAP ID_CONTROLLER_GETFILENAMES packet. More... | |
HRESULT | bCap_ControllerGetHelp (int fd, uint32_t hController, BSTR *pVal) |
Send the b-CAP ID_CONTROLLER_GETHELP packet. More... | |
HRESULT | bCap_ControllerGetID (int fd, uint32_t hController, VARIANT *pVal) |
Send the b-CAP ID_CONTROLLER_GETID packet. More... | |
HRESULT | bCap_ControllerGetMessage (int fd, uint32_t hController, uint32_t *hMessage) |
Send the b-CAP ID_CONTROLLER_GETMESSAGE packet. More... | |
HRESULT | bCap_ControllerGetName (int fd, uint32_t hController, BSTR *pVal) |
Send the b-CAP ID_CONTROLLER_GETNAME packet. More... | |
HRESULT | bCap_ControllerGetRobot (int fd, uint32_t hController, BSTR bstrName, BSTR bstrOption, uint32_t *hRobot) |
Send the b-CAP ID_CONTROLLER_GETROBOT packet. More... | |
HRESULT | bCap_ControllerGetRobotNames (int fd, uint32_t hController, BSTR bstrOption, VARIANT *pVal) |
Send the b-CAP ID_CONTROLLER_GETROBOTNAMES packet. More... | |
HRESULT | bCap_ControllerGetTag (int fd, uint32_t hController, VARIANT *pVal) |
Send the b-CAP ID_CONTROLLER_GETTAG packet. More... | |
HRESULT | bCap_ControllerGetTask (int fd, uint32_t hController, BSTR bstrName, BSTR bstrOption, uint32_t *hTask) |
Send the b-CAP ID_CONTROLLER_GETTASK packet. More... | |
HRESULT | bCap_ControllerGetTaskNames (int fd, uint32_t hController, BSTR bstrOption, VARIANT *pVal) |
Send the b-CAP ID_CONTROLLER_GETTASKNAMES packet. More... | |
HRESULT | bCap_ControllerGetVariable (int fd, uint32_t hController, BSTR bstrName, BSTR bstrOption, uint32_t *hVariable) |
Send the b-CAP ID_CONTROLLER_GETVARIABLE packet. More... | |
HRESULT | bCap_ControllerGetVariableNames (int fd, uint32_t hController, BSTR bstrOption, VARIANT *pVal) |
Send the b-CAP ID_CONTROLLER_GETVARIABLENAMES packet. More... | |
HRESULT | bCap_ControllerPutID (int fd, uint32_t hController, VARIANT newVal) |
Send the b-CAP ID_CONTROLLER_PUTID packet. More... | |
HRESULT | bCap_ControllerPutTag (int fd, uint32_t hController, VARIANT newVal) |
Send the b-CAP ID_CONTROLLER_PUTTAG packet. More... | |
HRESULT | bCap_ExtensionExecute (int fd, uint32_t hExtension, BSTR bstrCommand, VARIANT vntParam, VARIANT *pVal) |
Send the b-CAP ID_EXTENSION_EXECUTE packet. More... | |
HRESULT | bCap_ExtensionGetAttribute (int fd, uint32_t hExtension, int32_t *pVal) |
Send the b-CAP ID_EXTENSION_GETATTRIBUTE packet. More... | |
HRESULT | bCap_ExtensionGetHelp (int fd, uint32_t hExtension, BSTR *pVal) |
Send the b-CAP ID_EXTENSION_GETHELP packet. More... | |
HRESULT | bCap_ExtensionGetID (int fd, uint32_t hExtension, VARIANT *pVal) |
Send the b-CAP ID_EXTENSION_GETID packet. More... | |
HRESULT | bCap_ExtensionGetName (int fd, uint32_t hExtension, BSTR *pVal) |
Send the b-CAP ID_EXTENSION_GETNAME packet. More... | |
HRESULT | bCap_ExtensionGetTag (int fd, uint32_t hExtension, VARIANT *pVal) |
Send the b-CAP ID_EXTENSION_GETTAG packet. More... | |
HRESULT | bCap_ExtensionGetVariable (int fd, uint32_t hExtension, BSTR bstrName, BSTR bstrOption, uint32_t *hVariable) |
Send the b-CAP ID_EXTENSION_GETVARIABLE packet. More... | |
HRESULT | bCap_ExtensionGetVariableNames (int fd, uint32_t hExtension, BSTR bstrOption, VARIANT *pVal) |
Send the b-CAP ID_EXTENSION_GETVARIABLENAMES packet. More... | |
HRESULT | bCap_ExtensionPutID (int fd, uint32_t hExtension, VARIANT newVal) |
Send the b-CAP ID_EXTENSION_PUTID packet. More... | |
HRESULT | bCap_ExtensionPutTag (int fd, uint32_t hExtension, VARIANT newVal) |
Send the b-CAP ID_EXTENSION_PUTTAG packet. More... | |
HRESULT | bCap_ExtensionRelease (int fd, uint32_t *hExtension) |
Send the b-CAP ID_EXTENSION_RELEASE packet. More... | |
HRESULT | bCap_FileCopy (int fd, uint32_t hFile, BSTR bstrName, BSTR bstrOption) |
Send the b-CAP ID_FILE_COPY packet. More... | |
HRESULT | bCap_FileDelete (int fd, uint32_t hFile, BSTR bstrOption) |
Send the b-CAP ID_FILE_DELETE packet. More... | |
HRESULT | bCap_FileExecute (int fd, uint32_t hFile, BSTR bstrCommand, VARIANT vntParam, VARIANT *pVal) |
Send the b-CAP ID_FILE_EXECUTE packet. More... | |
HRESULT | bCap_FileGetAttribute (int fd, uint32_t hFile, int32_t *pVal) |
Send the b-CAP ID_FILE_GETATTRIBUTE packet. More... | |
HRESULT | bCap_FileGetDateCreated (int fd, uint32_t hFile, VARIANT *pVal) |
Send the b-CAP ID_FILE_GETDATECREATED packet. More... | |
HRESULT | bCap_FileGetDateLastAccessed (int fd, uint32_t hFile, VARIANT *pVal) |
Send the b-CAP ID_FILE_GETDATELASTACCESSED packet. More... | |
HRESULT | bCap_FileGetDateLastModified (int fd, uint32_t hFile, VARIANT *pVal) |
Send the b-CAP ID_FILE_GETDATELASTMODIFIED packet. More... | |
HRESULT | bCap_FileGetFile (int fd, uint32_t hFile, BSTR bstrName, BSTR bstrOption, uint32_t *hFile2) |
Send the b-CAP ID_FILE_GETFILE packet. More... | |
HRESULT | bCap_FileGetFileNames (int fd, uint32_t hFile, BSTR bstrOption, VARIANT *pVal) |
Send the b-CAP ID_FILE_GETFILENAMES packet. More... | |
HRESULT | bCap_FileGetHelp (int fd, uint32_t hFile, BSTR *pVal) |
Send the b-CAP ID_FILE_GETHELP packet. More... | |
HRESULT | bCap_FileGetID (int fd, uint32_t hFile, VARIANT *pVal) |
Send the b-CAP ID_FILE_GETID packet. More... | |
HRESULT | bCap_FileGetName (int fd, uint32_t hFile, BSTR *pVal) |
Send the b-CAP ID_FILE_GETNAME packet. More... | |
HRESULT | bCap_FileGetPath (int fd, uint32_t hFile, BSTR *pVal) |
Send the b-CAP ID_FILE_GETPATH packet. More... | |
HRESULT | bCap_FileGetSize (int fd, uint32_t hFile, int32_t *pVal) |
Send the b-CAP ID_FILE_GETSIZE packet. More... | |
HRESULT | bCap_FileGetTag (int fd, uint32_t hFile, VARIANT *pVal) |
Send the b-CAP ID_FILE_GETTAG packet. More... | |
HRESULT | bCap_FileGetType (int fd, uint32_t hFile, BSTR *pVal) |
Send the b-CAP ID_FILE_GETTYPE packet. More... | |
HRESULT | bCap_FileGetValue (int fd, uint32_t hFile, VARIANT *pVal) |
Send the b-CAP ID_FILE_GETVALUE packet. More... | |
HRESULT | bCap_FileGetVariable (int fd, uint32_t hFile, BSTR bstrName, BSTR bstrOption, uint32_t *hVariable) |
Send the b-CAP ID_FILE_GETVARIABLE packet. More... | |
HRESULT | bCap_FileGetVariableNames (int fd, uint32_t hFile, BSTR bstrOption, VARIANT *pVal) |
Send the b-CAP ID_FILE_GETVARIABLENAMES packet. More... | |
HRESULT | bCap_FileMove (int fd, uint32_t hFile, BSTR bstrName, BSTR bstrOption) |
Send the b-CAP ID_FILE_MOVE packet. More... | |
HRESULT | bCap_FilePutID (int fd, uint32_t hFile, VARIANT newVal) |
Send the b-CAP ID_FILE_PUTID packet. More... | |
HRESULT | bCap_FilePutTag (int fd, uint32_t hFile, VARIANT newVal) |
Send the b-CAP ID_FILE_PUTTAG packet. More... | |
HRESULT | bCap_FilePutValue (int fd, uint32_t hFile, VARIANT newVal) |
Send the b-CAP ID_FILE_PUTVALUE packet. More... | |
HRESULT | bCap_FileRelease (int fd, uint32_t *hFile) |
Send the b-CAP ID_FILE_RELEASE packet. More... | |
HRESULT | bCap_FileRun (int fd, uint32_t hFile, BSTR bstrOption, BSTR *pVal) |
Send the b-CAP ID_FILE_RUN packet. More... | |
HRESULT | bCap_GetRetry (int fd, unsigned int *retry) |
Gets retry count. More... | |
HRESULT | bCap_GetTimeout (int fd, uint32_t *timeout) |
Gets timeout. More... | |
HRESULT | bCap_MessageClear (int fd, uint32_t hMessage) |
Send the b-CAP ID_MESSAGE_CLEAR packet. More... | |
HRESULT | bCap_MessageGetDateTime (int fd, uint32_t hMessage, VARIANT *pVal) |
Send the b-CAP ID_MESSAGE_GETDATETIME packet. More... | |
HRESULT | bCap_MessageGetDescription (int fd, uint32_t hMessage, BSTR *pVal) |
Send the b-CAP ID_MESSAGE_GETDESCRIPTION packet. More... | |
HRESULT | bCap_MessageGetDestination (int fd, uint32_t hMessage, BSTR *pVal) |
Send the b-CAP ID_MESSAGE_GETDESTINATION packet. More... | |
HRESULT | bCap_MessageGetNumber (int fd, uint32_t hMessage, int32_t *pVal) |
Send the b-CAP ID_MESSAGE_GETNUMBER packet. More... | |
HRESULT | bCap_MessageGetSerialNumber (int fd, uint32_t hMessage, int32_t *pVal) |
Send the b-CAP ID_MESSAGE_GETSERIALNUMBER packet. More... | |
HRESULT | bCap_MessageGetSource (int fd, uint32_t hMessage, BSTR *pVal) |
Send the b-CAP ID_MESSAGE_GETSOURCE packet. More... | |
HRESULT | bCap_MessageGetValue (int fd, uint32_t hMessage, VARIANT *pVal) |
Send the b-CAP ID_MESSAGE_GETVALUE packet. More... | |
HRESULT | bCap_MessageRelease (int fd, uint32_t *hMessage) |
Send the b-CAP ID_MESSAGE_RELEASE packet. More... | |
HRESULT | bCap_MessageReply (int fd, uint32_t hMessage, VARIANT vntData) |
Send the b-CAP ID_MESSAGE_REPLY packet. More... | |
HRESULT | bCap_Open_Client (const char *connect, uint32_t timeout, unsigned int retry, int *pfd) |
Starts b-CAP communication. More... | |
HRESULT | bCap_RobotAccelerate (int fd, uint32_t hRobot, int32_t lAxis, float fAccel, float fDecel) |
Send the b-CAP ID_ROBOT_ACCELERATE packet. More... | |
HRESULT | bCap_RobotChange (int fd, uint32_t hRobot, BSTR bstrName) |
Send the b-CAP ID_ROBOT_CHANGE packet. More... | |
HRESULT | bCap_RobotChuck (int fd, uint32_t hRobot, BSTR bstrOption) |
Send the b-CAP ID_ROBOT_CHUCK packet. More... | |
HRESULT | bCap_RobotDrive (int fd, uint32_t hRobot, int32_t lNo, float fMov, BSTR bstrOption) |
Send the b-CAP ID_ROBOT_DRIVE packet. More... | |
HRESULT | bCap_RobotExecute (int fd, uint32_t hRobot, BSTR bstrCommand, VARIANT vntParam, VARIANT *pVal) |
Send the b-CAP ID_ROBOT_EXECUTE packet. More... | |
HRESULT | bCap_RobotGetAttribute (int fd, uint32_t hRobot, int32_t *pVal) |
Send the b-CAP ID_ROBOT_GETATTRIBUTE packet. More... | |
HRESULT | bCap_RobotGetHelp (int fd, uint32_t hRobot, BSTR *pVal) |
Send the b-CAP ID_ROBOT_GETHELP packet. More... | |
HRESULT | bCap_RobotGetID (int fd, uint32_t hRobot, VARIANT *pVal) |
Send the b-CAP ID_ROBOT_GETID packet. More... | |
HRESULT | bCap_RobotGetName (int fd, uint32_t hRobot, BSTR *pVal) |
Send the b-CAP ID_ROBOT_GETNAME packet. More... | |
HRESULT | bCap_RobotGetTag (int fd, uint32_t hRobot, VARIANT *pVal) |
Send the b-CAP ID_ROBOT_GETTAG packet. More... | |
HRESULT | bCap_RobotGetVariable (int fd, uint32_t hRobot, BSTR bstrName, BSTR bstrOption, uint32_t *hVariable) |
Send the b-CAP ID_ROBOT_GETVARIABLE packet. More... | |
HRESULT | bCap_RobotGetVariableNames (int fd, uint32_t hRobot, BSTR bstrOption, VARIANT *pVal) |
Send the b-CAP ID_ROBOT_GETVARIABLENAMES packet. More... | |
HRESULT | bCap_RobotGoHome (int fd, uint32_t hRobot) |
Send the b-CAP ID_ROBOT_GOHOME packet. More... | |
HRESULT | bCap_RobotHalt (int fd, uint32_t hRobot, BSTR bstrOption) |
Send the b-CAP ID_ROBOT_HALT packet. More... | |
HRESULT | bCap_RobotHold (int fd, uint32_t hRobot, BSTR bstrOption) |
Send the b-CAP ID_ROBOT_HOLD packet. More... | |
HRESULT | bCap_RobotMove (int fd, uint32_t hRobot, int32_t lComp, VARIANT vntPose, BSTR bstrOption) |
Send the b-CAP ID_ROBOT_MOVE packet. More... | |
HRESULT | bCap_RobotPutID (int fd, uint32_t hRobot, VARIANT newVal) |
Send the b-CAP ID_ROBOT_PUTID packet. More... | |
HRESULT | bCap_RobotPutTag (int fd, uint32_t hRobot, VARIANT newVal) |
Send the b-CAP ID_ROBOT_PUTTAG packet. More... | |
HRESULT | bCap_RobotRelease (int fd, uint32_t *hRobot) |
Send the b-CAP ID_ROBOT_RELEASE packet. More... | |
HRESULT | bCap_RobotRotate (int fd, uint32_t hRobot, VARIANT vntRotSuf, float fDeg, VARIANT vntPivot, BSTR bstrOption) |
Send the b-CAP ID_ROBOT_ROTATE packet. More... | |
HRESULT | bCap_RobotSpeed (int fd, uint32_t hRobot, int32_t lAxis, float fSpeed) |
Send the b-CAP ID_ROBOT_SPEED packet. More... | |
HRESULT | bCap_RobotUnchuck (int fd, uint32_t hRobot, BSTR bstrOption) |
Send the b-CAP ID_ROBOT_UNCHUCK packet. More... | |
HRESULT | bCap_RobotUnhold (int fd, uint32_t hRobot, BSTR bstrOption) |
Send the b-CAP ID_ROBOT_UNHOLD packet. More... | |
HRESULT | bCap_ServiceStart (int fd, BSTR bstrOption) |
Send the b-CAP ID_SERVICE_START packet. More... | |
HRESULT | bCap_ServiceStop (int fd) |
Send the b-CAP ID_SERVICE_STOP packet. More... | |
HRESULT | bCap_SetRetry (int fd, unsigned int retry) |
Sets retry count. More... | |
HRESULT | bCap_SetTimeout (int fd, uint32_t timeout) |
Sets timeout. More... | |
HRESULT | bCap_TaskDelete (int fd, uint32_t hTask, BSTR bstrOption) |
Send the b-CAP ID_TASK_DELETE packet. More... | |
HRESULT | bCap_TaskExecute (int fd, uint32_t hTask, BSTR bstrCommand, VARIANT vntParam, VARIANT *pVal) |
Send the b-CAP ID_TASK_EXECUTE packet. More... | |
HRESULT | bCap_TaskGetAttribute (int fd, uint32_t hTask, int32_t *pVal) |
Send the b-CAP ID_TASK_GETATTRIBUTE packet. More... | |
HRESULT | bCap_TaskGetFileName (int fd, uint32_t hTask, BSTR *pVal) |
Send the b-CAP ID_TASK_GETFILENAME packet. More... | |
HRESULT | bCap_TaskGetHelp (int fd, uint32_t hTask, BSTR *pVal) |
Send the b-CAP ID_TASK_GETHELP packet. More... | |
HRESULT | bCap_TaskGetID (int fd, uint32_t hTask, VARIANT *pVal) |
Send the b-CAP ID_TASK_GETID packet. More... | |
HRESULT | bCap_TaskGetName (int fd, uint32_t hTask, BSTR *pVal) |
Send the b-CAP ID_TASK_GETNAME packet. More... | |
HRESULT | bCap_TaskGetTag (int fd, uint32_t hTask, VARIANT *pVal) |
Send the b-CAP ID_TASK_GETTAG packet. More... | |
HRESULT | bCap_TaskGetVariable (int fd, uint32_t hTask, BSTR bstrName, BSTR bstrOption, uint32_t *hVariable) |
Send the b-CAP ID_TASK_GETVARIABLE packet. More... | |
HRESULT | bCap_TaskGetVariableNames (int fd, uint32_t hTask, BSTR bstrOption, VARIANT *pVal) |
Send the b-CAP ID_TASK_GETVARIABLENAMES packet. More... | |
HRESULT | bCap_TaskPutID (int fd, uint32_t hTask, VARIANT newVal) |
Send the b-CAP ID_TASK_PUTID packet. More... | |
HRESULT | bCap_TaskPutTag (int fd, uint32_t hTask, VARIANT newVal) |
Send the b-CAP ID_TASK_PUTTAG packet. More... | |
HRESULT | bCap_TaskRelease (int fd, uint32_t *hTask) |
Send the b-CAP ID_TASK_RELEASE packet. More... | |
HRESULT | bCap_TaskStart (int fd, uint32_t hTask, int32_t lMode, BSTR bstrOption) |
Send the b-CAP ID_TASK_START packet. More... | |
HRESULT | bCap_TaskStop (int fd, uint32_t hTask, int32_t lMode, BSTR bstrOption) |
Send the b-CAP ID_TASK_STOP packet. More... | |
HRESULT | bCap_VariableGetAttribute (int fd, uint32_t hVariable, int32_t *pVal) |
Send the b-CAP ID_VARIABLE_GETATTRIBUTE packet. More... | |
HRESULT | bCap_VariableGetDateTime (int fd, uint32_t hVariable, VARIANT *pVal) |
Send the b-CAP ID_VARIABLE_GETDATETIME packet. More... | |
HRESULT | bCap_VariableGetHelp (int fd, uint32_t hVariable, BSTR *pVal) |
Send the b-CAP ID_VARIABLE_GETHELP packet. More... | |
HRESULT | bCap_VariableGetID (int fd, uint32_t hVariable, VARIANT *pVal) |
Send the b-CAP ID_VARIABLE_GETID packet. More... | |
HRESULT | bCap_VariableGetMicrosecond (int fd, uint32_t hVariable, int32_t *pVal) |
Send the b-CAP ID_VARIABLE_GETMICROSECOND packet. More... | |
HRESULT | bCap_VariableGetName (int fd, uint32_t hVariable, BSTR *pVal) |
Send the b-CAP ID_VARIABLE_GETNAME packet. More... | |
HRESULT | bCap_VariableGetTag (int fd, uint32_t hVariable, VARIANT *pVal) |
Send the b-CAP ID_VARIABLE_GETTAG packet. More... | |
HRESULT | bCap_VariableGetValue (int fd, uint32_t hVariable, VARIANT *pVal) |
Send the b-CAP ID_VARIABLE_GETVALUE packet. More... | |
HRESULT | bCap_VariablePutID (int fd, uint32_t hVariable, VARIANT newVal) |
Send the b-CAP ID_VARIABLE_PUTID packet. More... | |
HRESULT | bCap_VariablePutTag (int fd, uint32_t hVariable, VARIANT newVal) |
Send the b-CAP ID_VARIABLE_PUTTAG packet. More... | |
HRESULT | bCap_VariablePutValue (int fd, uint32_t hVariable, VARIANT newVal) |
Send the b-CAP ID_VARIABLE_PUTVALUE packet. More... | |
HRESULT | bCap_VariableRelease (int fd, uint32_t *hVariable) |
Send the b-CAP ID_VARIABLE_RELEASE packet. More... | |
static struct CONN_BCAP_CLIENT * | check_address (int index) |
Checks whether the index has been used or not. More... | |
static int | find_open_address () |
Returns the open address of m_conn_param. More... | |
static HRESULT | invoke_function (int fd, int32_t id, int argc, char *format,...) |
static HRESULT | send_receive (int index, struct BCAP_PACKET *packet_send, struct BCAP_PACKET *packet_recv) |
Sends and receives the b-CAP packet. More... | |
Variables | |
static struct CONN_BCAP_CLIENT | m_conn_param [BCAP_CONN_MAX] |
#define _RETRY_MAX (7) |
A definition for the maximum retry count.
Definition at line 60 of file bcap_client.c.
#define _RETRY_MIN (1) |
A definition for the minimum retry count.
Software License Agreement (MIT License)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Definition at line 54 of file bcap_client.c.
HRESULT bCap_Close_Client | ( | int * | pfd | ) |
Ends b-CAP communication.
[in,out] | pfd | The pointer of File descriptor. |
Definition at line 447 of file bcap_client.c.
Send the b-CAP ID_COMMAND_CANCEL packet.
[in] | fd | File descriptor. |
[in] | hCommand | Command handle. |
Definition at line 1546 of file bcap_client.c.
Send the b-CAP ID_COMMAND_EXECUTE packet.
[in] | fd | File descriptor. |
[in] | hCommand | Command handle. |
[in] | lMode | Execution mode. |
[out] | pVal | Result value. |
Definition at line 1538 of file bcap_client.c.
Send the b-CAP ID_COMMAND_GETATTRIBUTE packet.
[in] | fd | File descriptor. |
[in] | hCommand | Command handle. |
[out] | pVal | The gotten attribute value. |
Definition at line 1597 of file bcap_client.c.
Send the b-CAP ID_COMMAND_GETHELP packet.
[in] | fd | File descriptor. |
[in] | hCommand | Command handle. |
[out] | pVal | The gotten help string. |
Definition at line 1604 of file bcap_client.c.
Send the b-CAP ID_COMMAND_GETID packet.
[in] | fd | File descriptor. |
[in] | hCommand | Command handle. |
[out] | pVal | The gotten ID. |
Definition at line 1632 of file bcap_client.c.
Send the b-CAP ID_COMMAND_GETNAME packet.
[in] | fd | File descriptor. |
[in] | hCommand | Command handle. |
[out] | pVal | The gotten name string. |
Definition at line 1611 of file bcap_client.c.
Send the b-CAP ID_COMMAND_GETPARAMETERS packet.
[in] | fd | File descriptor. |
[in] | hCommand | Command handle. |
[out] | pVal | The gotten parameters. |
Definition at line 1574 of file bcap_client.c.
Send the b-CAP ID_COMMAND_GETRESULT packet.
[in] | fd | File descriptor. |
[in] | hCommand | Command handle. |
[out] | pVal | The gotten result. |
Definition at line 1590 of file bcap_client.c.
Send the b-CAP ID_COMMAND_GETSTATE packet.
[in] | fd | File descriptor. |
[in] | hCommand | Command handle. |
[out] | pVal | The gotten state value. |
Definition at line 1567 of file bcap_client.c.
Send the b-CAP ID_COMMAND_GETTAG packet.
[in] | fd | File descriptor. |
[in] | hCommand | Command handle. |
[out] | pVal | The gotten tag value. |
Definition at line 1618 of file bcap_client.c.
Send the b-CAP ID_COMMAND_GETTIMEOUT packet.
[in] | fd | File descriptor. |
[in] | hCommand | Command handle. |
[out] | pVal | The gotten timeout value. |
Definition at line 1553 of file bcap_client.c.
Send the b-CAP ID_COMMAND_PUTID packet.
[in] | fd | File descriptor. |
[in] | hCommand | Command handle. |
[in] | newVal | The ID to be put. |
Definition at line 1639 of file bcap_client.c.
Send the b-CAP ID_VARIABLE_PUTPARAMETERS packet.
[in] | fd | File descriptor. |
[in] | hCommand | Command handle. |
[in] | newVal | The parameters to be put. |
Definition at line 1582 of file bcap_client.c.
Send the b-CAP ID_COMMAND_PUTTAG packet.
[in] | fd | File descriptor. |
[in] | hCommand | Command handle. |
[in] | newVal | The tag value to be put. |
Definition at line 1625 of file bcap_client.c.
Send the b-CAP ID_COMMAND_PUTTIMEOUT packet.
[in] | fd | File descriptor. |
[in] | hCommand | Command handle. |
[in] | newVal | The timeout value to be put. |
Definition at line 1560 of file bcap_client.c.
Send the b-CAP ID_COMMAND_RELEASE packet.
[in] | fd | The file descriptor. |
[in,out] | hCommand | Command handle. |
Definition at line 1646 of file bcap_client.c.
HRESULT bCap_ControllerConnect | ( | int | fd, |
BSTR | bstrName, | ||
BSTR | bstrProvider, | ||
BSTR | bstrMachine, | ||
BSTR | bstrOption, | ||
uint32_t * | hController | ||
) |
Send the b-CAP ID_CONTROLLER_CONNECT packet.
[in] | fd | File descriptor. |
[in] | bstrName | Controller name. |
[in] | bstrProvider | Provider name. |
[in] | bstrMachine | Machine name. |
[in] | bstrOption | Option strings. |
[out] | hController | Controller handle. |
Definition at line 612 of file bcap_client.c.
Send the b-CAP ID_CONTROLLER_DISCONNECT packet.
[in] | fd | The file descriptor. |
[in,out] | hController | Controller handle. |
Definition at line 623 of file bcap_client.c.
HRESULT bCap_ControllerExecute | ( | int | fd, |
uint32_t | hController, | ||
BSTR | bstrCommand, | ||
VARIANT | vntParam, | ||
VARIANT * | pVal | ||
) |
Send the b-CAP ID_CONTROLLER_EXECUTE packet.
[in] | fd | File descriptor. |
[in] | hController | Controller handle. |
[in] | bstrCommand | Executing command name. |
[in] | vntParam | Executing parameters. |
[out] | pVal | Result value. |
Definition at line 760 of file bcap_client.c.
Send the b-CAP ID_CONTROLLER_GETATTRIBUTE packet.
[in] | fd | File descriptor. |
[in] | hController | Controller handle. |
[out] | pVal | The gotten attribute value. |
Definition at line 779 of file bcap_client.c.
HRESULT bCap_ControllerGetCommand | ( | int | fd, |
uint32_t | hController, | ||
BSTR | bstrName, | ||
BSTR | bstrOption, | ||
uint32_t * | hCommand | ||
) |
Send the b-CAP ID_CONTROLLER_GETCOMMAND packet.
[in] | fd | File descriptor. |
[in] | hController | Controller handle. |
[in] | bstrName | File name. |
[in] | bstrOption | Option strings. |
[out] | hCommand | Command handle. |
Definition at line 695 of file bcap_client.c.
HRESULT bCap_ControllerGetCommandNames | ( | int | fd, |
uint32_t | hController, | ||
BSTR | bstrOption, | ||
VARIANT * | pVal | ||
) |
Send the b-CAP ID_CONTROLLER_GETCOMMANDNAMES packet.
[in] | fd | File descriptor. |
[in] | hController | Controller handle. |
[in] | bstrOption | Option strings. |
[out] | pVal | The gotten names. |
Definition at line 751 of file bcap_client.c.
HRESULT bCap_ControllerGetExtension | ( | int | fd, |
uint32_t | hController, | ||
BSTR | bstrName, | ||
BSTR | bstrOption, | ||
uint32_t * | hExtension | ||
) |
Send the b-CAP ID_CONTROLLER_GETEXTENSION packet.
[in] | fd | File descriptor. |
[in] | hController | Controller handle. |
[in] | bstrName | Extension name. |
[in] | bstrOption | Option strings. |
[out] | hExtension | Extension handle. |
Definition at line 640 of file bcap_client.c.
HRESULT bCap_ControllerGetExtensionNames | ( | int | fd, |
uint32_t | hController, | ||
BSTR | bstrOption, | ||
VARIANT * | pVal | ||
) |
Send the b-CAP ID_CONTROLLER_GETEXTENSIONNAMES packet.
[in] | fd | File descriptor. |
[in] | hController | Controller handle. |
[in] | bstrOption | Option strings. |
[out] | pVal | The gotten names. |
Definition at line 706 of file bcap_client.c.
HRESULT bCap_ControllerGetFile | ( | int | fd, |
uint32_t | hController, | ||
BSTR | bstrName, | ||
BSTR | bstrOption, | ||
uint32_t * | hFile | ||
) |
Send the b-CAP ID_CONTROLLER_GETFILE packet.
[in] | fd | File descriptor. |
[in] | hController | Controller handle. |
[in] | bstrName | File name. |
[in] | bstrOption | Option strings. |
[out] | hFile | File handle. |
Definition at line 651 of file bcap_client.c.
HRESULT bCap_ControllerGetFileNames | ( | int | fd, |
uint32_t | hController, | ||
BSTR | bstrOption, | ||
VARIANT * | pVal | ||
) |
Send the b-CAP ID_CONTROLLER_GETFILENAMES packet.
[in] | fd | File descriptor. |
[in] | hController | Controller handle. |
[in] | bstrOption | Option strings. |
[out] | pVal | The gotten names. |
Definition at line 715 of file bcap_client.c.
Send the b-CAP ID_CONTROLLER_GETHELP packet.
[in] | fd | File descriptor. |
[in] | hController | Controller handle. |
[out] | pVal | The gotten help string. |
Definition at line 787 of file bcap_client.c.
Send the b-CAP ID_CONTROLLER_GETID packet.
[in] | fd | File descriptor. |
[in] | hController | Controller handle. |
[out] | pVal | The gotten ID. |
Definition at line 818 of file bcap_client.c.
Send the b-CAP ID_CONTROLLER_GETMESSAGE packet.
[in] | fd | File descriptor. |
[in] | hController | Controller handle. |
[out] | hMessage | Message handle. |
Definition at line 769 of file bcap_client.c.
Send the b-CAP ID_CONTROLLER_GETNAME packet.
[in] | fd | File descriptor. |
[in] | hController | Controller handle. |
[out] | pVal | The gotten name string. |
Definition at line 795 of file bcap_client.c.
HRESULT bCap_ControllerGetRobot | ( | int | fd, |
uint32_t | hController, | ||
BSTR | bstrName, | ||
BSTR | bstrOption, | ||
uint32_t * | hRobot | ||
) |
Send the b-CAP ID_CONTROLLER_GETROBOT packet.
[in] | fd | File descriptor. |
[in] | hController | Controller handle. |
[in] | bstrName | File name. |
[in] | bstrOption | Option strings. |
[out] | hRobot | Robot handle. |
Definition at line 662 of file bcap_client.c.
HRESULT bCap_ControllerGetRobotNames | ( | int | fd, |
uint32_t | hController, | ||
BSTR | bstrOption, | ||
VARIANT * | pVal | ||
) |
Send the b-CAP ID_CONTROLLER_GETROBOTNAMES packet.
[in] | fd | File descriptor. |
[in] | hController | Controller handle. |
[in] | bstrOption | Option strings. |
[out] | pVal | The gotten names. |
Definition at line 724 of file bcap_client.c.
Send the b-CAP ID_CONTROLLER_GETTAG packet.
[in] | fd | File descriptor. |
[in] | hController | Controller handle. |
[out] | pVal | The gotten tag value. |
Definition at line 803 of file bcap_client.c.
HRESULT bCap_ControllerGetTask | ( | int | fd, |
uint32_t | hController, | ||
BSTR | bstrName, | ||
BSTR | bstrOption, | ||
uint32_t * | hTask | ||
) |
Send the b-CAP ID_CONTROLLER_GETTASK packet.
[in] | fd | File descriptor. |
[in] | hController | Controller handle. |
[in] | bstrName | File name. |
[in] | bstrOption | Option strings. |
[out] | hTask | Task handle. |
Definition at line 673 of file bcap_client.c.
HRESULT bCap_ControllerGetTaskNames | ( | int | fd, |
uint32_t | hController, | ||
BSTR | bstrOption, | ||
VARIANT * | pVal | ||
) |
Send the b-CAP ID_CONTROLLER_GETTASKNAMES packet.
[in] | fd | File descriptor. |
[in] | hController | Controller handle. |
[in] | bstrOption | Option strings. |
[out] | pVal | The gotten names. |
Definition at line 733 of file bcap_client.c.
HRESULT bCap_ControllerGetVariable | ( | int | fd, |
uint32_t | hController, | ||
BSTR | bstrName, | ||
BSTR | bstrOption, | ||
uint32_t * | hVariable | ||
) |
Send the b-CAP ID_CONTROLLER_GETVARIABLE packet.
[in] | fd | File descriptor. |
[in] | hController | Controller handle. |
[in] | bstrName | File name. |
[in] | bstrOption | Option strings. |
[out] | hVariable | Variable handle. |
Definition at line 684 of file bcap_client.c.
HRESULT bCap_ControllerGetVariableNames | ( | int | fd, |
uint32_t | hController, | ||
BSTR | bstrOption, | ||
VARIANT * | pVal | ||
) |
Send the b-CAP ID_CONTROLLER_GETVARIABLENAMES packet.
[in] | fd | File descriptor. |
[in] | hController | Controller handle. |
[in] | bstrOption | Option strings. |
[out] | pVal | The gotten names. |
Definition at line 742 of file bcap_client.c.
Send the b-CAP ID_CONTROLLER_PUTID packet.
[in] | fd | File descriptor. |
[in] | hController | Controller handle. |
[in] | newVal | The ID to be put. |
Definition at line 825 of file bcap_client.c.
Send the b-CAP ID_CONTROLLER_PUTTAG packet.
[in] | fd | File descriptor. |
[in] | hController | Controller handle. |
[in] | newVal | The tag value to be put. |
Definition at line 810 of file bcap_client.c.
HRESULT bCap_ExtensionExecute | ( | int | fd, |
uint32_t | hExtension, | ||
BSTR | bstrCommand, | ||
VARIANT | vntParam, | ||
VARIANT * | pVal | ||
) |
Send the b-CAP ID_EXTENSION_EXECUTE packet.
[in] | fd | File descriptor. |
[in] | hExtension | Extension handle. |
[in] | bstrCommand | Executing command name. |
[in] | vntParam | Executing parameters. |
[out] | pVal | Result value. |
Definition at line 853 of file bcap_client.c.
Send the b-CAP ID_EXTENSION_GETATTRIBUTE packet.
[in] | fd | File descriptor. |
[in] | hExtension | Extension handle. |
[out] | pVal | The gotten attribute value. |
Definition at line 862 of file bcap_client.c.
Send the b-CAP ID_EXTENSION_GETHELP packet.
[in] | fd | File descriptor. |
[in] | hExtension | Extension handle. |
[out] | pVal | The gotten help string. |
Definition at line 870 of file bcap_client.c.
Send the b-CAP ID_EXTENSION_GETID packet.
[in] | fd | File descriptor. |
[in] | hExtension | Extension handle. |
[out] | pVal | The gotten ID. |
Definition at line 898 of file bcap_client.c.
Send the b-CAP ID_EXTENSION_GETNAME packet.
[in] | fd | File descriptor. |
[in] | hExtension | Extension handle. |
[out] | pVal | The gotten name string. |
Definition at line 877 of file bcap_client.c.
Send the b-CAP ID_EXTENSION_GETTAG packet.
[in] | fd | File descriptor. |
[in] | hExtension | Extension handle. |
[out] | pVal | The gotten tag value. |
Definition at line 884 of file bcap_client.c.
HRESULT bCap_ExtensionGetVariable | ( | int | fd, |
uint32_t | hExtension, | ||
BSTR | bstrName, | ||
BSTR | bstrOption, | ||
uint32_t * | hVariable | ||
) |
Send the b-CAP ID_EXTENSION_GETVARIABLE packet.
[in] | fd | File descriptor. |
[in] | hController | Extension handle. |
[in] | bstrName | File name. |
[in] | bstrOption | Option strings. |
[out] | hVariable | Variable handle. |
Definition at line 833 of file bcap_client.c.
HRESULT bCap_ExtensionGetVariableNames | ( | int | fd, |
uint32_t | hExtension, | ||
BSTR | bstrOption, | ||
VARIANT * | pVal | ||
) |
Send the b-CAP ID_EXTENSION_GETVARIABLENAMES packet.
[in] | fd | File descriptor. |
[in] | hExtension | Extension handle. |
[in] | bstrOption | Option strings. |
[out] | pVal | The gotten names. |
Definition at line 844 of file bcap_client.c.
Send the b-CAP ID_EXTENSION_PUTID packet.
[in] | fd | File descriptor. |
[in] | hExtension | Extension handle. |
[in] | newVal | The ID to be put. |
Definition at line 905 of file bcap_client.c.
Send the b-CAP ID_EXTENSION_PUTTAG packet.
[in] | fd | File descriptor. |
[in] | hExtension | Extension handle. |
[in] | newVal | The tag value to be put. |
Definition at line 891 of file bcap_client.c.
Send the b-CAP ID_EXTENSION_RELEASE packet.
[in] | fd | The file descriptor. |
[in,out] | hExtension | Extension handle. |
Definition at line 912 of file bcap_client.c.
Send the b-CAP ID_FILE_COPY packet.
[in] | fd | File descriptor. |
[in] | hFile | File handle. |
[in] | bstrName | Copied file name. |
[in] | bstrOption | Option strings. |
Definition at line 977 of file bcap_client.c.
Send the b-CAP ID_FILE_DELETE packet.
[in] | fd | File descriptor. |
[in] | hFile | File handle. |
[in] | bstrOption | Option strings. |
Definition at line 985 of file bcap_client.c.
HRESULT bCap_FileExecute | ( | int | fd, |
uint32_t | hFile, | ||
BSTR | bstrCommand, | ||
VARIANT | vntParam, | ||
VARIANT * | pVal | ||
) |
Send the b-CAP ID_FILE_EXECUTE packet.
[in] | fd | File descriptor. |
[in] | hFile | File handle. |
[in] | bstrCommand | Executing command name. |
[in] | vntParam | Executing parameters. |
[out] | pVal | Result value. |
Definition at line 968 of file bcap_client.c.
Send the b-CAP ID_FILE_GETATTRIBUTE packet.
[in] | fd | File descriptor. |
[in] | hFile | File handle. |
[out] | pVal | The gotten attribute value. |
Definition at line 1065 of file bcap_client.c.
Send the b-CAP ID_FILE_GETDATECREATED packet.
[in] | fd | File descriptor. |
[in] | hFile | File handle. |
[out] | pVal | The gotten time value. |
Definition at line 1007 of file bcap_client.c.
Send the b-CAP ID_FILE_GETDATELASTACCESSED packet.
[in] | fd | File descriptor. |
[in] | hFile | File handle. |
[out] | pVal | The gotten time value. |
Definition at line 1014 of file bcap_client.c.
Send the b-CAP ID_FILE_GETDATELASTMODIFIED packet.
[in] | fd | File descriptor. |
[in] | hFile | File handle. |
[out] | pVal | The gotten time value. |
Definition at line 1022 of file bcap_client.c.
HRESULT bCap_FileGetFile | ( | int | fd, |
uint32_t | hFile, | ||
BSTR | bstrName, | ||
BSTR | bstrOption, | ||
uint32_t * | hFile2 | ||
) |
Send the b-CAP ID_FILE_GETFILE packet.
[in] | fd | File descriptor. |
[in] | hFile | File handle. |
[in] | bstrName | File name. |
[in] | bstrOption | Option strings. |
[out] | hFile2 | File handle. |
Definition at line 929 of file bcap_client.c.
Send the b-CAP ID_FILE_GETFILENAMES packet.
[in] | fd | File descriptor. |
[in] | hFile | File handle. |
[in] | bstrOption | Option strings. |
[out] | pVal | The gotten names. |
Definition at line 951 of file bcap_client.c.
Send the b-CAP ID_FILE_GETHELP packet.
[in] | fd | File descriptor. |
[in] | hFile | File handle. |
[out] | pVal | The gotten help string. |
Definition at line 1072 of file bcap_client.c.
Send the b-CAP ID_FILE_GETID packet.
[in] | fd | File descriptor. |
[in] | hFile | File handle. |
[out] | pVal | The gotten ID. |
Definition at line 1100 of file bcap_client.c.
Send the b-CAP ID_FILE_GETNAME packet.
[in] | fd | File descriptor. |
[in] | hFile | File handle. |
[out] | pVal | The gotten name string. |
Definition at line 1079 of file bcap_client.c.
Send the b-CAP ID_FILE_GETPATH packet.
[in] | fd | File descriptor. |
[in] | hFile | File handle. |
[out] | pVal | The gotten path. |
Definition at line 1030 of file bcap_client.c.
Send the b-CAP ID_FILE_GETSIZE packet.
[in] | fd | File descriptor. |
[in] | hFile | File handle. |
[out] | pVal | The gotten size. |
Definition at line 1037 of file bcap_client.c.
Send the b-CAP ID_FILE_GETTAG packet.
[in] | fd | File descriptor. |
[in] | hFile | File handle. |
[out] | pVal | The gotten tag value. |
Definition at line 1086 of file bcap_client.c.
Send the b-CAP ID_FILE_GETTYPE packet.
[in] | fd | File descriptor. |
[in] | hFile | File handle. |
[out] | pVal | The gotten type. |
Definition at line 1044 of file bcap_client.c.
Send the b-CAP ID_FILE_GETVALUE packet.
[in] | fd | File descriptor. |
[in] | hFile | File handle. |
[out] | pVal | The gotten value. |
Definition at line 1051 of file bcap_client.c.
HRESULT bCap_FileGetVariable | ( | int | fd, |
uint32_t | hFile, | ||
BSTR | bstrName, | ||
BSTR | bstrOption, | ||
uint32_t * | hVariable | ||
) |
Send the b-CAP ID_FILE_GETVARIABLE packet.
[in] | fd | File descriptor. |
[in] | hFile | File handle. |
[in] | bstrName | File name. |
[in] | bstrOption | Option strings. |
[out] | hVariable | Variable handle. |
Definition at line 940 of file bcap_client.c.
Send the b-CAP ID_FILE_GETVARIABLENAMES packet.
[in] | fd | File descriptor. |
[in] | hFile | File handle. |
[in] | bstrOption | Option strings. |
[out] | pVal | The gotten names. |
Definition at line 959 of file bcap_client.c.
Send the b-CAP ID_FILE_MOVE packet.
[in] | fd | File descriptor. |
[in] | hFile | File handle. |
[in] | bstrName | Moved file name. |
[in] | bstrOption | Option strings. |
Definition at line 992 of file bcap_client.c.
Send the b-CAP ID_FILE_PUTID packet.
[in] | fd | File descriptor. |
[in] | hFile | File handle. |
[in] | newVal | The ID to be put. |
Definition at line 1107 of file bcap_client.c.
Send the b-CAP ID_FILE_PUTTAG packet.
[in] | fd | File descriptor. |
[in] | hFile | File handle. |
[in] | newVal | The tag value to be put. |
Definition at line 1093 of file bcap_client.c.
Send the b-CAP ID_FILE_PUTVALUE packet.
[in] | fd | File descriptor. |
[in] | hFile | File handle. |
[in] | newVal | The value to be put. |
Definition at line 1058 of file bcap_client.c.
Send the b-CAP ID_FILE_RELEASE packet.
[in] | fd | The file descriptor. |
[in,out] | hFile | File handle. |
Definition at line 1114 of file bcap_client.c.
Send the b-CAP ID_FILE_RUN packet.
[in] | fd | File descriptor. |
[in] | hFile | File handle. |
[in] | bstrOption | Option strings. |
[out] | pVal | The created task name. |
Definition at line 1000 of file bcap_client.c.
HRESULT bCap_GetRetry | ( | int | fd, |
unsigned int * | retry | ||
) |
Gets retry count.
[in] | fd | File descriptor. |
[in] | retry | The gotten retry count. |
Definition at line 581 of file bcap_client.c.
Gets timeout.
[in] | fd | File descriptor. |
[out] | timeout | The gotten timeout value. |
Definition at line 517 of file bcap_client.c.
Send the b-CAP ID_MESSAGE_CLEAR packet.
[in] | fd | File descriptor. |
[in] | hMessage | Message handle. |
Definition at line 1670 of file bcap_client.c.
Send the b-CAP ID_MESSAGE_GETDATETIME packet.
[in] | fd | File descriptor. |
[in] | hMessage | Message handle. |
[out] | pVal | The gotten time value. |
Definition at line 1677 of file bcap_client.c.
Send the b-CAP ID_MESSAGE_GETDESCRIPTION packet.
[in] | fd | File descriptor. |
[in] | hMessage | Message handle. |
[out] | pVal | The gotten description. |
Definition at line 1684 of file bcap_client.c.
Send the b-CAP ID_MESSAGE_GETDESTINATION packet.
[in] | fd | File descriptor. |
[in] | hMessage | Message handle. |
[out] | pVal | The gotten destination. |
Definition at line 1692 of file bcap_client.c.
Send the b-CAP ID_MESSAGE_GETNUMBER packet.
[in] | fd | File descriptor. |
[in] | hMessage | Message handle. |
[out] | pVal | The gotten number. |
Definition at line 1700 of file bcap_client.c.
Send the b-CAP ID_MESSAGE_GETSERIALNUMBER packet.
[in] | fd | File descriptor. |
[in] | hMessage | Message handle. |
[out] | pVal | The gotten serial number. |
Definition at line 1707 of file bcap_client.c.
Send the b-CAP ID_MESSAGE_GETSOURCE packet.
[in] | fd | File descriptor. |
[in] | hMessage | Message handle. |
[out] | pVal | The gotten source. |
Definition at line 1715 of file bcap_client.c.
Send the b-CAP ID_MESSAGE_GETVALUE packet.
[in] | fd | File descriptor. |
[in] | hMessage | Message handle. |
[out] | pVal | The gotten value. |
Definition at line 1722 of file bcap_client.c.
Send the b-CAP ID_MESSAGE_RELEASE packet.
[in] | fd | The file descriptor. |
[in,out] | hMessage | Message handle. |
Definition at line 1729 of file bcap_client.c.
Send the b-CAP ID_MESSAGE_REPLY packet.
[in] | fd | File descriptor. |
[in] | hMessage | Message handle. |
[in] | vntData | The reply data. |
Definition at line 1663 of file bcap_client.c.
Starts b-CAP communication.
[in] | connect | Connection parameters. |
[in] | timeout | Timeout value. |
[in] | retry | Retry value. |
[out] | pfd | The pointer of File descriptor. |
Definition at line 322 of file bcap_client.c.
Send the b-CAP ID_ROBOT_ACCELERATE packet.
[in] | fd | File descriptor. |
[in] | hRobot | Robot handle. |
[in] | lAxis | Axis number. |
[in] | fAccel | Acceleration value. |
[in] | fDecel | Deceleration value. |
Definition at line 1160 of file bcap_client.c.
Send the b-CAP ID_ROBOT_CHANGE packet.
[in] | fd | File descriptor. |
[in] | hRobot | Robot handle. |
[in] | bstrName | Hand name. |
Definition at line 1169 of file bcap_client.c.
Send the b-CAP ID_ROBOT_CHUCK packet.
[in] | fd | File descriptor. |
[in] | hRobot | Robot handle. |
[in] | bstrOption | Option strings. |
Definition at line 1176 of file bcap_client.c.
Send the b-CAP ID_ROBOT_DRIVE packet.
[in] | fd | File descriptor. |
[in] | hRobot | Robot handle. |
[in] | lNo | Axis number. |
[in] | fMov | Movement value. |
[in] | bstrOption | Option strings. |
Definition at line 1183 of file bcap_client.c.
HRESULT bCap_RobotExecute | ( | int | fd, |
uint32_t | hRobot, | ||
BSTR | bstrCommand, | ||
VARIANT | vntParam, | ||
VARIANT * | pVal | ||
) |
Send the b-CAP ID_ROBOT_EXECUTE packet.
[in] | fd | File descriptor. |
[in] | hRobot | Robot handle. |
[in] | bstrCommand | Executing command name. |
[in] | vntParam | Executing parameters. |
[out] | pVal | Result value. |
Definition at line 1151 of file bcap_client.c.
Send the b-CAP ID_ROBOT_GETATTRIBUTE packet.
[in] | fd | File descriptor. |
[in] | hRobot | Robot handle. |
[out] | pVal | The gotten attribute value. |
Definition at line 1252 of file bcap_client.c.
Send the b-CAP ID_ROBOT_GETHELP packet.
[in] | fd | File descriptor. |
[in] | hRobot | Robot handle. |
[out] | pVal | The gotten help string. |
Definition at line 1259 of file bcap_client.c.
Send the b-CAP ID_ROBOT_GETID packet.
[in] | fd | File descriptor. |
[in] | hRobot | Robot handle. |
[out] | pVal | The gotten ID. |
Definition at line 1287 of file bcap_client.c.
Send the b-CAP ID_ROBOT_GETNAME packet.
[in] | fd | File descriptor. |
[in] | hRobot | Robot handle. |
[out] | pVal | The gotten name string. |
Definition at line 1266 of file bcap_client.c.
Send the b-CAP ID_ROBOT_GETTAG packet.
[in] | fd | File descriptor. |
[in] | hRobot | Robot handle. |
[out] | pVal | The gotten tag value. |
Definition at line 1273 of file bcap_client.c.
HRESULT bCap_RobotGetVariable | ( | int | fd, |
uint32_t | hRobot, | ||
BSTR | bstrName, | ||
BSTR | bstrOption, | ||
uint32_t * | hVariable | ||
) |
Send the b-CAP ID_ROBOT_GETVARIABLE packet.
[in] | fd | File descriptor. |
[in] | hController | Robot handle. |
[in] | bstrName | File name. |
[in] | bstrOption | Option strings. |
[out] | hVariable | Variable handle. |
Definition at line 1131 of file bcap_client.c.
Send the b-CAP ID_ROBOT_GETVARIABLENAMES packet.
[in] | fd | File descriptor. |
[in] | hRobot | Robot handle. |
[in] | bstrOption | Option strings. |
[out] | pVal | The gotten names. |
Definition at line 1142 of file bcap_client.c.
Send the b-CAP ID_ROBOT_GOHOME packet.
[in] | fd | File descriptor. |
[in] | hRobot | Robot handle. |
Definition at line 1192 of file bcap_client.c.
Send the b-CAP ID_ROBOT_HALT packet.
[in] | fd | File descriptor. |
[in] | hRobot | Robot handle. |
[in] | bstrOption | Option strings. |
Definition at line 1199 of file bcap_client.c.
Send the b-CAP ID_ROBOT_HOLD packet.
[in] | fd | File descriptor. |
[in] | hRobot | Robot handle. |
[in] | bstrOption | Option strings. |
Definition at line 1206 of file bcap_client.c.
Send the b-CAP ID_ROBOT_MOVE packet.
[in] | fd | File descriptor. |
[in] | hRobot | Robot handle. |
[in] | lComp | Move interpolation. |
[in] | vntPose | Pose data. |
[in] | bstrOption | Option strings. |
Definition at line 1213 of file bcap_client.c.
Send the b-CAP ID_ROBOT_PUTID packet.
[in] | fd | File descriptor. |
[in] | hRobot | Robot handle. |
[in] | newVal | The ID to be put. |
Definition at line 1294 of file bcap_client.c.
Send the b-CAP ID_ROBOT_PUTTAG packet.
[in] | fd | File descriptor. |
[in] | hRobot | Robot handle. |
[in] | newVal | The tag value to be put. |
Definition at line 1280 of file bcap_client.c.
Send the b-CAP ID_ROBOT_RELEASE packet.
[in] | fd | The file descriptor. |
[in,out] | hRobot | Robot handle. |
Definition at line 1301 of file bcap_client.c.
HRESULT bCap_RobotRotate | ( | int | fd, |
uint32_t | hRobot, | ||
VARIANT | vntRotSuf, | ||
float | fDeg, | ||
VARIANT | vntPivot, | ||
BSTR | bstrOption | ||
) |
Send the b-CAP ID_ROBOT_ROTATE packet.
[in] | fd | File descriptor. |
[in] | hRobot | Robot handle. |
[in] | vntRotSuf | Rotate surface. |
[in] | fDeg | Degree. |
[in] | vntPivot | Center of rotation. |
[in] | bstrOption | Option strings. |
Definition at line 1222 of file bcap_client.c.
Send the b-CAP ID_ROBOT_SPEED packet.
[in] | fd | File descriptor. |
[in] | hRobot | Robot handle. |
[in] | lAxis | Axis number. |
[in] | fSpeed | Sleep value to be set. |
Definition at line 1231 of file bcap_client.c.
Send the b-CAP ID_ROBOT_UNCHUCK packet.
[in] | fd | File descriptor. |
[in] | hRobot | Robot handle. |
[in] | bstrOption | Option strings. |
Definition at line 1238 of file bcap_client.c.
Send the b-CAP ID_ROBOT_UNHOLD packet.
[in] | fd | File descriptor. |
[in] | hRobot | Robot handle. |
[in] | bstrOption | Option strings. |
Definition at line 1245 of file bcap_client.c.
Send the b-CAP ID_SERVICE_START packet.
[in] | fd | File descriptor. |
[in] | bstrOpt | Option strings. |
Definition at line 598 of file bcap_client.c.
HRESULT bCap_ServiceStop | ( | int | fd | ) |
Send the b-CAP ID_SERVICE_STOP packet.
[in] | fd | File descriptor. |
Definition at line 605 of file bcap_client.c.
HRESULT bCap_SetRetry | ( | int | fd, |
unsigned int | retry | ||
) |
Sets retry count.
[in] | fd | File descriptor. |
[in] | retry | Retry count to be set. |
Definition at line 536 of file bcap_client.c.
Sets timeout.
[in] | fd | File descriptor. |
[in] | timeout | Timeout value to be set. |
Definition at line 486 of file bcap_client.c.
Send the b-CAP ID_TASK_DELETE packet.
[in] | fd | File descriptor. |
[in] | hTask | Task handle. |
[in] | bstrOption | Option strings. |
Definition at line 1361 of file bcap_client.c.
HRESULT bCap_TaskExecute | ( | int | fd, |
uint32_t | hTask, | ||
BSTR | bstrCommand, | ||
VARIANT | vntParam, | ||
VARIANT * | pVal | ||
) |
Send the b-CAP ID_TASK_EXECUTE packet.
[in] | fd | File descriptor. |
[in] | hTask | Task handle. |
[in] | bstrCommand | Executing command name. |
[in] | vntParam | Executing parameters. |
[out] | pVal | Result value. |
Definition at line 1338 of file bcap_client.c.
Send the b-CAP ID_TASK_GETATTRIBUTE packet.
[in] | fd | File descriptor. |
[in] | hTask | Task handle. |
[out] | pVal | The gotten attribute value. |
Definition at line 1375 of file bcap_client.c.
Send the b-CAP ID_TASK_GETFILENAME packet.
[in] | fd | File descriptor. |
[in] | hTask | Task handle. |
[out] | pVal | The gotten file name. |
Definition at line 1368 of file bcap_client.c.
Send the b-CAP ID_TASK_GETHELP packet.
[in] | fd | File descriptor. |
[in] | hTask | Task handle. |
[out] | pVal | The gotten help string. |
Definition at line 1382 of file bcap_client.c.
Send the b-CAP ID_TASK_GETID packet.
[in] | fd | File descriptor. |
[in] | hTask | Task handle. |
[out] | pVal | The gotten ID. |
Definition at line 1410 of file bcap_client.c.
Send the b-CAP ID_TASK_GETNAME packet.
[in] | fd | File descriptor. |
[in] | hTask | Task handle. |
[out] | pVal | The gotten name string. |
Definition at line 1389 of file bcap_client.c.
Send the b-CAP ID_TASK_GETTAG packet.
[in] | fd | File descriptor. |
[in] | hTask | Task handle. |
[out] | pVal | The gotten tag value. |
Definition at line 1396 of file bcap_client.c.
HRESULT bCap_TaskGetVariable | ( | int | fd, |
uint32_t | hTask, | ||
BSTR | bstrName, | ||
BSTR | bstrOption, | ||
uint32_t * | hVariable | ||
) |
Send the b-CAP ID_TASK_GETVARIABLE packet.
[in] | fd | File descriptor. |
[in] | hTask | Task handle. |
[in] | bstrName | Variable name. |
[in] | bstrOption | Option strings. |
[out] | hVariable | Variable handle. |
Definition at line 1318 of file bcap_client.c.
Send the b-CAP ID_TASK_GETVARIABLENAMES packet.
[in] | fd | File descriptor. |
[in] | hTask | Task handle. |
[in] | bstrOption | Option strings. |
[out] | pVal | The gotten names. |
Definition at line 1329 of file bcap_client.c.
Send the b-CAP ID_TASK_PUTID packet.
[in] | fd | File descriptor. |
[in] | hTask | Task handle. |
[in] | newVal | The ID to be put. |
Definition at line 1417 of file bcap_client.c.
Send the b-CAP ID_TASK_PUTTAG packet.
[in] | fd | File descriptor. |
[in] | hTask | Task handle. |
[in] | newVal | The tag value to be put. |
Definition at line 1403 of file bcap_client.c.
Send the b-CAP ID_TASK_RELEASE packet.
[in] | fd | The file descriptor. |
[in,out] | hTask | Task handle. |
Definition at line 1424 of file bcap_client.c.
Send the b-CAP ID_TASK_START packet.
[in] | fd | File descriptor. |
[in] | hTask | Task handle. |
[in] | lMode | Start mode. |
[in] | bstrOption | Option strings. |
Definition at line 1347 of file bcap_client.c.
Send the b-CAP ID_TASK_STOP packet.
[in] | fd | File descriptor. |
[in] | hTask | Task handle. |
[in] | lMode | Stop mode. |
[in] | bstrOption | Option strings. |
Definition at line 1354 of file bcap_client.c.
Send the b-CAP ID_VARIABLE_GETATTRIBUTE packet.
[in] | fd | File descriptor. |
[in] | hVariable | Variable handle. |
[out] | pVal | The gotten attribute value. |
Definition at line 1463 of file bcap_client.c.
Send the b-CAP ID_VARIABLE_GETDATETIME packet.
[in] | fd | File descriptor. |
[in] | hVariable | Variable handle. |
[out] | pVal | The gotten time value. |
Definition at line 1441 of file bcap_client.c.
Send the b-CAP ID_VARIABLE_GETHELP packet.
[in] | fd | File descriptor. |
[in] | hVariable | Variable handle. |
[out] | pVal | The gotten help string. |
Definition at line 1471 of file bcap_client.c.
Send the b-CAP ID_VARIABLE_GETID packet.
[in] | fd | File descriptor. |
[in] | hVariable | Variable handle. |
[out] | pVal | The gotten ID. |
Definition at line 1499 of file bcap_client.c.
Send the b-CAP ID_VARIABLE_GETMICROSECOND packet.
[in] | fd | File descriptor. |
[in] | hVariable | Variable handle. |
[out] | pVal | The gotten time value. |
Definition at line 1513 of file bcap_client.c.
Send the b-CAP ID_VARIABLE_GETNAME packet.
[in] | fd | File descriptor. |
[in] | hVariable | Variable handle. |
[out] | pVal | The gotten name string. |
Definition at line 1478 of file bcap_client.c.
Send the b-CAP ID_VARIABLE_GETTAG packet.
[in] | fd | File descriptor. |
[in] | hVariable | Variable handle. |
[out] | pVal | The gotten tag value. |
Definition at line 1485 of file bcap_client.c.
Send the b-CAP ID_VARIABLE_GETVALUE packet.
[in] | fd | File descriptor. |
[in] | hVariable | Variable handle. |
[out] | pVal | The gotten value. |
Definition at line 1449 of file bcap_client.c.
Send the b-CAP ID_VARIABLE_PUTID packet.
[in] | fd | File descriptor. |
[in] | hVariable | Variable handle. |
[in] | newVal | The ID to be put. |
Definition at line 1506 of file bcap_client.c.
Send the b-CAP ID_VARIABLE_PUTTAG packet.
[in] | fd | File descriptor. |
[in] | hVariable | Variable handle. |
[in] | newVal | The tag value to be put. |
Definition at line 1492 of file bcap_client.c.
Send the b-CAP ID_VARIABLE_PUTVALUE packet.
[in] | fd | File descriptor. |
[in] | hVariable | Variable handle. |
[in] | newVal | The value to be put. |
Definition at line 1456 of file bcap_client.c.
Send the b-CAP ID_VARIABLE_RELEASE packet.
[in] | fd | The file descriptor. |
[in,out] | hVariable | Variable handle. |
Definition at line 1521 of file bcap_client.c.
|
static |
Checks whether the index has been used or not.
[in] | index | The index of m_conn_param. |
Definition at line 103 of file bcap_client.c.
|
static |
Returns the open address of m_conn_param.
Definition at line 82 of file bcap_client.c.
Definition at line 196 of file bcap_client.c.
|
static |
Sends and receives the b-CAP packet.
[in] | index | The index of m_conn_param. |
[in] | packet_send | The b-CAP packet to be sent. |
[out] | packet_recv | The received b-CAP packet. |
Definition at line 125 of file bcap_client.c.
|
static |
Definition at line 74 of file bcap_client.c.