Classes | Defines | Functions | Variables
bcap_client.c File Reference
#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"
Include dependency graph for bcap_client.c:

Go to the source code of this file.

Classes

struct  CONN_BCAP_CLIENT
 b-CAP client communication object. More...

Defines

#define _RETRY_MAX   (7)
 A definition for the maximum retry count.
#define _RETRY_MIN   (1)
 A definition for the minimum retry count.

Functions

HRESULT bCap_Close_Client (int *pfd)
 Ends b-CAP communication.
HRESULT bCap_CommandCancel (int fd, uint32_t hCommand)
 Send the b-CAP ID_COMMAND_CANCEL packet.
HRESULT bCap_CommandExecute (int fd, uint32_t hCommand, int32_t lMode, VARIANT *pVal)
 Send the b-CAP ID_COMMAND_EXECUTE packet.
HRESULT bCap_CommandGetAttribute (int fd, uint32_t hCommand, int32_t *pVal)
 Send the b-CAP ID_COMMAND_GETATTRIBUTE packet.
HRESULT bCap_CommandGetHelp (int fd, uint32_t hCommand, BSTR *pVal)
 Send the b-CAP ID_COMMAND_GETHELP packet.
HRESULT bCap_CommandGetID (int fd, uint32_t hCommand, VARIANT *pVal)
 Send the b-CAP ID_COMMAND_GETID packet.
HRESULT bCap_CommandGetName (int fd, uint32_t hCommand, BSTR *pVal)
 Send the b-CAP ID_COMMAND_GETNAME packet.
HRESULT bCap_CommandGetParameters (int fd, uint32_t hCommand, VARIANT *pVal)
 Send the b-CAP ID_COMMAND_GETPARAMETERS packet.
HRESULT bCap_CommandGetResult (int fd, uint32_t hCommand, VARIANT *pVal)
 Send the b-CAP ID_COMMAND_GETRESULT packet.
HRESULT bCap_CommandGetState (int fd, uint32_t hCommand, int32_t *pVal)
 Send the b-CAP ID_COMMAND_GETSTATE packet.
HRESULT bCap_CommandGetTag (int fd, uint32_t hCommand, VARIANT *pVal)
 Send the b-CAP ID_COMMAND_GETTAG packet.
HRESULT bCap_CommandGetTimeout (int fd, uint32_t hCommand, int32_t *pVal)
 Send the b-CAP ID_COMMAND_GETTIMEOUT packet.
HRESULT bCap_CommandPutID (int fd, uint32_t hCommand, VARIANT newVal)
 Send the b-CAP ID_COMMAND_PUTID packet.
HRESULT bCap_CommandPutParameters (int fd, uint32_t hCommand, VARIANT newVal)
 Send the b-CAP ID_VARIABLE_PUTPARAMETERS packet.
HRESULT bCap_CommandPutTag (int fd, uint32_t hCommand, VARIANT newVal)
 Send the b-CAP ID_COMMAND_PUTTAG packet.
HRESULT bCap_CommandPutTimeout (int fd, uint32_t hCommand, int32_t newVal)
 Send the b-CAP ID_COMMAND_PUTTIMEOUT packet.
HRESULT bCap_CommandRelease (int fd, uint32_t *hCommand)
 Send the b-CAP ID_COMMAND_RELEASE packet.
HRESULT bCap_ControllerConnect (int fd, BSTR bstrName, BSTR bstrProvider, BSTR bstrMachine, BSTR bstrOption, uint32_t *hController)
 Send the b-CAP ID_CONTROLLER_CONNECT packet.
HRESULT bCap_ControllerDisconnect (int fd, uint32_t *hController)
 Send the b-CAP ID_CONTROLLER_DISCONNECT packet.
HRESULT bCap_ControllerExecute (int fd, uint32_t hController, BSTR bstrCommand, VARIANT vntParam, VARIANT *pVal)
 Send the b-CAP ID_CONTROLLER_EXECUTE packet.
HRESULT bCap_ControllerGetAttribute (int fd, uint32_t hController, int32_t *pVal)
 Send the b-CAP ID_CONTROLLER_GETATTRIBUTE packet.
HRESULT bCap_ControllerGetCommand (int fd, uint32_t hController, BSTR bstrName, BSTR bstrOption, uint32_t *hCommand)
 Send the b-CAP ID_CONTROLLER_GETCOMMAND packet.
HRESULT bCap_ControllerGetCommandNames (int fd, uint32_t hController, BSTR bstrOption, VARIANT *pVal)
 Send the b-CAP ID_CONTROLLER_GETCOMMANDNAMES packet.
HRESULT bCap_ControllerGetExtension (int fd, uint32_t hController, BSTR bstrName, BSTR bstrOption, uint32_t *hExtension)
 Send the b-CAP ID_CONTROLLER_GETEXTENSION packet.
HRESULT bCap_ControllerGetExtensionNames (int fd, uint32_t hController, BSTR bstrOption, VARIANT *pVal)
 Send the b-CAP ID_CONTROLLER_GETEXTENSIONNAMES packet.
HRESULT bCap_ControllerGetFile (int fd, uint32_t hController, BSTR bstrName, BSTR bstrOption, uint32_t *hFile)
 Send the b-CAP ID_CONTROLLER_GETFILE packet.
HRESULT bCap_ControllerGetFileNames (int fd, uint32_t hController, BSTR bstrOption, VARIANT *pVal)
 Send the b-CAP ID_CONTROLLER_GETFILENAMES packet.
HRESULT bCap_ControllerGetHelp (int fd, uint32_t hController, BSTR *pVal)
 Send the b-CAP ID_CONTROLLER_GETHELP packet.
HRESULT bCap_ControllerGetID (int fd, uint32_t hController, VARIANT *pVal)
 Send the b-CAP ID_CONTROLLER_GETID packet.
HRESULT bCap_ControllerGetMessage (int fd, uint32_t hController, uint32_t *hMessage)
 Send the b-CAP ID_CONTROLLER_GETMESSAGE packet.
HRESULT bCap_ControllerGetName (int fd, uint32_t hController, BSTR *pVal)
 Send the b-CAP ID_CONTROLLER_GETNAME packet.
HRESULT bCap_ControllerGetRobot (int fd, uint32_t hController, BSTR bstrName, BSTR bstrOption, uint32_t *hRobot)
 Send the b-CAP ID_CONTROLLER_GETROBOT packet.
HRESULT bCap_ControllerGetRobotNames (int fd, uint32_t hController, BSTR bstrOption, VARIANT *pVal)
 Send the b-CAP ID_CONTROLLER_GETROBOTNAMES packet.
HRESULT bCap_ControllerGetTag (int fd, uint32_t hController, VARIANT *pVal)
 Send the b-CAP ID_CONTROLLER_GETTAG packet.
HRESULT bCap_ControllerGetTask (int fd, uint32_t hController, BSTR bstrName, BSTR bstrOption, uint32_t *hTask)
 Send the b-CAP ID_CONTROLLER_GETTASK packet.
HRESULT bCap_ControllerGetTaskNames (int fd, uint32_t hController, BSTR bstrOption, VARIANT *pVal)
 Send the b-CAP ID_CONTROLLER_GETTASKNAMES packet.
HRESULT bCap_ControllerGetVariable (int fd, uint32_t hController, BSTR bstrName, BSTR bstrOption, uint32_t *hVariable)
 Send the b-CAP ID_CONTROLLER_GETVARIABLE packet.
HRESULT bCap_ControllerGetVariableNames (int fd, uint32_t hController, BSTR bstrOption, VARIANT *pVal)
 Send the b-CAP ID_CONTROLLER_GETVARIABLENAMES packet.
HRESULT bCap_ControllerPutID (int fd, uint32_t hController, VARIANT newVal)
 Send the b-CAP ID_CONTROLLER_PUTID packet.
HRESULT bCap_ControllerPutTag (int fd, uint32_t hController, VARIANT newVal)
 Send the b-CAP ID_CONTROLLER_PUTTAG packet.
HRESULT bCap_ExtensionExecute (int fd, uint32_t hExtension, BSTR bstrCommand, VARIANT vntParam, VARIANT *pVal)
 Send the b-CAP ID_EXTENSION_EXECUTE packet.
HRESULT bCap_ExtensionGetAttribute (int fd, uint32_t hExtension, int32_t *pVal)
 Send the b-CAP ID_EXTENSION_GETATTRIBUTE packet.
HRESULT bCap_ExtensionGetHelp (int fd, uint32_t hExtension, BSTR *pVal)
 Send the b-CAP ID_EXTENSION_GETHELP packet.
HRESULT bCap_ExtensionGetID (int fd, uint32_t hExtension, VARIANT *pVal)
 Send the b-CAP ID_EXTENSION_GETID packet.
HRESULT bCap_ExtensionGetName (int fd, uint32_t hExtension, BSTR *pVal)
 Send the b-CAP ID_EXTENSION_GETNAME packet.
HRESULT bCap_ExtensionGetTag (int fd, uint32_t hExtension, VARIANT *pVal)
 Send the b-CAP ID_EXTENSION_GETTAG packet.
HRESULT bCap_ExtensionGetVariable (int fd, uint32_t hExtension, BSTR bstrName, BSTR bstrOption, uint32_t *hVariable)
 Send the b-CAP ID_EXTENSION_GETVARIABLE packet.
HRESULT bCap_ExtensionGetVariableNames (int fd, uint32_t hExtension, BSTR bstrOption, VARIANT *pVal)
 Send the b-CAP ID_EXTENSION_GETVARIABLENAMES packet.
HRESULT bCap_ExtensionPutID (int fd, uint32_t hExtension, VARIANT newVal)
 Send the b-CAP ID_EXTENSION_PUTID packet.
HRESULT bCap_ExtensionPutTag (int fd, uint32_t hExtension, VARIANT newVal)
 Send the b-CAP ID_EXTENSION_PUTTAG packet.
HRESULT bCap_ExtensionRelease (int fd, uint32_t *hExtension)
 Send the b-CAP ID_EXTENSION_RELEASE packet.
HRESULT bCap_FileCopy (int fd, uint32_t hFile, BSTR bstrName, BSTR bstrOption)
 Send the b-CAP ID_FILE_COPY packet.
HRESULT bCap_FileDelete (int fd, uint32_t hFile, BSTR bstrOption)
 Send the b-CAP ID_FILE_DELETE packet.
HRESULT bCap_FileExecute (int fd, uint32_t hFile, BSTR bstrCommand, VARIANT vntParam, VARIANT *pVal)
 Send the b-CAP ID_FILE_EXECUTE packet.
HRESULT bCap_FileGetAttribute (int fd, uint32_t hFile, int32_t *pVal)
 Send the b-CAP ID_FILE_GETATTRIBUTE packet.
HRESULT bCap_FileGetDateCreated (int fd, uint32_t hFile, VARIANT *pVal)
 Send the b-CAP ID_FILE_GETDATECREATED packet.
HRESULT bCap_FileGetDateLastAccessed (int fd, uint32_t hFile, VARIANT *pVal)
 Send the b-CAP ID_FILE_GETDATELASTACCESSED packet.
HRESULT bCap_FileGetDateLastModified (int fd, uint32_t hFile, VARIANT *pVal)
 Send the b-CAP ID_FILE_GETDATELASTMODIFIED packet.
HRESULT bCap_FileGetFile (int fd, uint32_t hFile, BSTR bstrName, BSTR bstrOption, uint32_t *hFile2)
 Send the b-CAP ID_FILE_GETFILE packet.
HRESULT bCap_FileGetFileNames (int fd, uint32_t hFile, BSTR bstrOption, VARIANT *pVal)
 Send the b-CAP ID_FILE_GETFILENAMES packet.
HRESULT bCap_FileGetHelp (int fd, uint32_t hFile, BSTR *pVal)
 Send the b-CAP ID_FILE_GETHELP packet.
HRESULT bCap_FileGetID (int fd, uint32_t hFile, VARIANT *pVal)
 Send the b-CAP ID_FILE_GETID packet.
HRESULT bCap_FileGetName (int fd, uint32_t hFile, BSTR *pVal)
 Send the b-CAP ID_FILE_GETNAME packet.
HRESULT bCap_FileGetPath (int fd, uint32_t hFile, BSTR *pVal)
 Send the b-CAP ID_FILE_GETPATH packet.
HRESULT bCap_FileGetSize (int fd, uint32_t hFile, int32_t *pVal)
 Send the b-CAP ID_FILE_GETSIZE packet.
HRESULT bCap_FileGetTag (int fd, uint32_t hFile, VARIANT *pVal)
 Send the b-CAP ID_FILE_GETTAG packet.
HRESULT bCap_FileGetType (int fd, uint32_t hFile, BSTR *pVal)
 Send the b-CAP ID_FILE_GETTYPE packet.
HRESULT bCap_FileGetValue (int fd, uint32_t hFile, VARIANT *pVal)
 Send the b-CAP ID_FILE_GETVALUE packet.
HRESULT bCap_FileGetVariable (int fd, uint32_t hFile, BSTR bstrName, BSTR bstrOption, uint32_t *hVariable)
 Send the b-CAP ID_FILE_GETVARIABLE packet.
HRESULT bCap_FileGetVariableNames (int fd, uint32_t hFile, BSTR bstrOption, VARIANT *pVal)
 Send the b-CAP ID_FILE_GETVARIABLENAMES packet.
HRESULT bCap_FileMove (int fd, uint32_t hFile, BSTR bstrName, BSTR bstrOption)
 Send the b-CAP ID_FILE_MOVE packet.
HRESULT bCap_FilePutID (int fd, uint32_t hFile, VARIANT newVal)
 Send the b-CAP ID_FILE_PUTID packet.
HRESULT bCap_FilePutTag (int fd, uint32_t hFile, VARIANT newVal)
 Send the b-CAP ID_FILE_PUTTAG packet.
HRESULT bCap_FilePutValue (int fd, uint32_t hFile, VARIANT newVal)
 Send the b-CAP ID_FILE_PUTVALUE packet.
HRESULT bCap_FileRelease (int fd, uint32_t *hFile)
 Send the b-CAP ID_FILE_RELEASE packet.
HRESULT bCap_FileRun (int fd, uint32_t hFile, BSTR bstrOption, BSTR *pVal)
 Send the b-CAP ID_FILE_RUN packet.
HRESULT bCap_GetRetry (int fd, unsigned int *retry)
 Gets retry count.
HRESULT bCap_GetTimeout (int fd, uint32_t *timeout)
 Gets timeout.
HRESULT bCap_MessageClear (int fd, uint32_t hMessage)
 Send the b-CAP ID_MESSAGE_CLEAR packet.
HRESULT bCap_MessageGetDateTime (int fd, uint32_t hMessage, VARIANT *pVal)
 Send the b-CAP ID_MESSAGE_GETDATETIME packet.
HRESULT bCap_MessageGetDescription (int fd, uint32_t hMessage, BSTR *pVal)
 Send the b-CAP ID_MESSAGE_GETDESCRIPTION packet.
HRESULT bCap_MessageGetDestination (int fd, uint32_t hMessage, BSTR *pVal)
 Send the b-CAP ID_MESSAGE_GETDESTINATION packet.
HRESULT bCap_MessageGetNumber (int fd, uint32_t hMessage, int32_t *pVal)
 Send the b-CAP ID_MESSAGE_GETNUMBER packet.
HRESULT bCap_MessageGetSerialNumber (int fd, uint32_t hMessage, int32_t *pVal)
 Send the b-CAP ID_MESSAGE_GETSERIALNUMBER packet.
HRESULT bCap_MessageGetSource (int fd, uint32_t hMessage, BSTR *pVal)
 Send the b-CAP ID_MESSAGE_GETSOURCE packet.
HRESULT bCap_MessageGetValue (int fd, uint32_t hMessage, VARIANT *pVal)
 Send the b-CAP ID_MESSAGE_GETVALUE packet.
HRESULT bCap_MessageRelease (int fd, uint32_t *hMessage)
 Send the b-CAP ID_MESSAGE_RELEASE packet.
HRESULT bCap_MessageReply (int fd, uint32_t hMessage, VARIANT vntData)
 Send the b-CAP ID_MESSAGE_REPLY packet.
HRESULT bCap_Open_Client (const char *connect, uint32_t timeout, unsigned int retry, int *pfd)
 Starts b-CAP communication.
HRESULT bCap_RobotAccelerate (int fd, uint32_t hRobot, int32_t lAxis, float fAccel, float fDecel)
 Send the b-CAP ID_ROBOT_ACCELERATE packet.
HRESULT bCap_RobotChange (int fd, uint32_t hRobot, BSTR bstrName)
 Send the b-CAP ID_ROBOT_CHANGE packet.
HRESULT bCap_RobotChuck (int fd, uint32_t hRobot, BSTR bstrOption)
 Send the b-CAP ID_ROBOT_CHUCK packet.
HRESULT bCap_RobotDrive (int fd, uint32_t hRobot, int32_t lNo, float fMov, BSTR bstrOption)
 Send the b-CAP ID_ROBOT_DRIVE packet.
HRESULT bCap_RobotExecute (int fd, uint32_t hRobot, BSTR bstrCommand, VARIANT vntParam, VARIANT *pVal)
 Send the b-CAP ID_ROBOT_EXECUTE packet.
HRESULT bCap_RobotGetAttribute (int fd, uint32_t hRobot, int32_t *pVal)
 Send the b-CAP ID_ROBOT_GETATTRIBUTE packet.
HRESULT bCap_RobotGetHelp (int fd, uint32_t hRobot, BSTR *pVal)
 Send the b-CAP ID_ROBOT_GETHELP packet.
HRESULT bCap_RobotGetID (int fd, uint32_t hRobot, VARIANT *pVal)
 Send the b-CAP ID_ROBOT_GETID packet.
HRESULT bCap_RobotGetName (int fd, uint32_t hRobot, BSTR *pVal)
 Send the b-CAP ID_ROBOT_GETNAME packet.
HRESULT bCap_RobotGetTag (int fd, uint32_t hRobot, VARIANT *pVal)
 Send the b-CAP ID_ROBOT_GETTAG packet.
HRESULT bCap_RobotGetVariable (int fd, uint32_t hRobot, BSTR bstrName, BSTR bstrOption, uint32_t *hVariable)
 Send the b-CAP ID_ROBOT_GETVARIABLE packet.
HRESULT bCap_RobotGetVariableNames (int fd, uint32_t hRobot, BSTR bstrOption, VARIANT *pVal)
 Send the b-CAP ID_ROBOT_GETVARIABLENAMES packet.
HRESULT bCap_RobotGoHome (int fd, uint32_t hRobot)
 Send the b-CAP ID_ROBOT_GOHOME packet.
HRESULT bCap_RobotHalt (int fd, uint32_t hRobot, BSTR bstrOption)
 Send the b-CAP ID_ROBOT_HALT packet.
HRESULT bCap_RobotHold (int fd, uint32_t hRobot, BSTR bstrOption)
 Send the b-CAP ID_ROBOT_HOLD packet.
HRESULT bCap_RobotMove (int fd, uint32_t hRobot, int32_t lComp, VARIANT vntPose, BSTR bstrOption)
 Send the b-CAP ID_ROBOT_MOVE packet.
HRESULT bCap_RobotPutID (int fd, uint32_t hRobot, VARIANT newVal)
 Send the b-CAP ID_ROBOT_PUTID packet.
HRESULT bCap_RobotPutTag (int fd, uint32_t hRobot, VARIANT newVal)
 Send the b-CAP ID_ROBOT_PUTTAG packet.
HRESULT bCap_RobotRelease (int fd, uint32_t *hRobot)
 Send the b-CAP ID_ROBOT_RELEASE packet.
HRESULT bCap_RobotRotate (int fd, uint32_t hRobot, VARIANT vntRotSuf, float fDeg, VARIANT vntPivot, BSTR bstrOption)
 Send the b-CAP ID_ROBOT_ROTATE packet.
HRESULT bCap_RobotSpeed (int fd, uint32_t hRobot, int32_t lAxis, float fSpeed)
 Send the b-CAP ID_ROBOT_SPEED packet.
HRESULT bCap_RobotUnchuck (int fd, uint32_t hRobot, BSTR bstrOption)
 Send the b-CAP ID_ROBOT_UNCHUCK packet.
HRESULT bCap_RobotUnhold (int fd, uint32_t hRobot, BSTR bstrOption)
 Send the b-CAP ID_ROBOT_UNHOLD packet.
HRESULT bCap_ServiceStart (int fd, BSTR bstrOption)
 Send the b-CAP ID_SERVICE_START packet.
HRESULT bCap_ServiceStop (int fd)
 Send the b-CAP ID_SERVICE_STOP packet.
HRESULT bCap_SetRetry (int fd, unsigned int retry)
 Sets retry count.
HRESULT bCap_SetTimeout (int fd, uint32_t timeout)
 Sets timeout.
HRESULT bCap_TaskDelete (int fd, uint32_t hTask, BSTR bstrOption)
 Send the b-CAP ID_TASK_DELETE packet.
HRESULT bCap_TaskExecute (int fd, uint32_t hTask, BSTR bstrCommand, VARIANT vntParam, VARIANT *pVal)
 Send the b-CAP ID_TASK_EXECUTE packet.
HRESULT bCap_TaskGetAttribute (int fd, uint32_t hTask, int32_t *pVal)
 Send the b-CAP ID_TASK_GETATTRIBUTE packet.
HRESULT bCap_TaskGetFileName (int fd, uint32_t hTask, BSTR *pVal)
 Send the b-CAP ID_TASK_GETFILENAME packet.
HRESULT bCap_TaskGetHelp (int fd, uint32_t hTask, BSTR *pVal)
 Send the b-CAP ID_TASK_GETHELP packet.
HRESULT bCap_TaskGetID (int fd, uint32_t hTask, VARIANT *pVal)
 Send the b-CAP ID_TASK_GETID packet.
HRESULT bCap_TaskGetName (int fd, uint32_t hTask, BSTR *pVal)
 Send the b-CAP ID_TASK_GETNAME packet.
HRESULT bCap_TaskGetTag (int fd, uint32_t hTask, VARIANT *pVal)
 Send the b-CAP ID_TASK_GETTAG packet.
HRESULT bCap_TaskGetVariable (int fd, uint32_t hTask, BSTR bstrName, BSTR bstrOption, uint32_t *hVariable)
 Send the b-CAP ID_TASK_GETVARIABLE packet.
HRESULT bCap_TaskGetVariableNames (int fd, uint32_t hTask, BSTR bstrOption, VARIANT *pVal)
 Send the b-CAP ID_TASK_GETVARIABLENAMES packet.
HRESULT bCap_TaskPutID (int fd, uint32_t hTask, VARIANT newVal)
 Send the b-CAP ID_TASK_PUTID packet.
HRESULT bCap_TaskPutTag (int fd, uint32_t hTask, VARIANT newVal)
 Send the b-CAP ID_TASK_PUTTAG packet.
HRESULT bCap_TaskRelease (int fd, uint32_t *hTask)
 Send the b-CAP ID_TASK_RELEASE packet.
HRESULT bCap_TaskStart (int fd, uint32_t hTask, int32_t lMode, BSTR bstrOption)
 Send the b-CAP ID_TASK_START packet.
HRESULT bCap_TaskStop (int fd, uint32_t hTask, int32_t lMode, BSTR bstrOption)
 Send the b-CAP ID_TASK_STOP packet.
HRESULT bCap_VariableGetAttribute (int fd, uint32_t hVariable, int32_t *pVal)
 Send the b-CAP ID_VARIABLE_GETATTRIBUTE packet.
HRESULT bCap_VariableGetDateTime (int fd, uint32_t hVariable, VARIANT *pVal)
 Send the b-CAP ID_VARIABLE_GETDATETIME packet.
HRESULT bCap_VariableGetHelp (int fd, uint32_t hVariable, BSTR *pVal)
 Send the b-CAP ID_VARIABLE_GETHELP packet.
HRESULT bCap_VariableGetID (int fd, uint32_t hVariable, VARIANT *pVal)
 Send the b-CAP ID_VARIABLE_GETID packet.
HRESULT bCap_VariableGetMicrosecond (int fd, uint32_t hVariable, int32_t *pVal)
 Send the b-CAP ID_VARIABLE_GETMICROSECOND packet.
HRESULT bCap_VariableGetName (int fd, uint32_t hVariable, BSTR *pVal)
 Send the b-CAP ID_VARIABLE_GETNAME packet.
HRESULT bCap_VariableGetTag (int fd, uint32_t hVariable, VARIANT *pVal)
 Send the b-CAP ID_VARIABLE_GETTAG packet.
HRESULT bCap_VariableGetValue (int fd, uint32_t hVariable, VARIANT *pVal)
 Send the b-CAP ID_VARIABLE_GETVALUE packet.
HRESULT bCap_VariablePutID (int fd, uint32_t hVariable, VARIANT newVal)
 Send the b-CAP ID_VARIABLE_PUTID packet.
HRESULT bCap_VariablePutTag (int fd, uint32_t hVariable, VARIANT newVal)
 Send the b-CAP ID_VARIABLE_PUTTAG packet.
HRESULT bCap_VariablePutValue (int fd, uint32_t hVariable, VARIANT newVal)
 Send the b-CAP ID_VARIABLE_PUTVALUE packet.
HRESULT bCap_VariableRelease (int fd, uint32_t *hVariable)
 Send the b-CAP ID_VARIABLE_RELEASE packet.
static struct CONN_BCAP_CLIENTcheck_address (int index)
 Checks whether the index has been used or not.
static int find_open_address ()
 Returns the open address of m_conn_param.
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.

Variables

static struct CONN_BCAP_CLIENT m_conn_param [BCAP_CONN_MAX]

Define Documentation

#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.


Function Documentation

HRESULT bCap_Close_Client ( int *  pfd)

Ends b-CAP communication.

Parameters:
[in,out]pfdThe pointer of File descriptor.

Definition at line 447 of file bcap_client.c.

HRESULT bCap_CommandCancel ( int  fd,
uint32_t  hCommand 
)

Send the b-CAP ID_COMMAND_CANCEL packet.

Parameters:
[in]fdFile descriptor.
[in]hCommandCommand handle.

Definition at line 1546 of file bcap_client.c.

HRESULT bCap_CommandExecute ( int  fd,
uint32_t  hCommand,
int32_t  lMode,
VARIANT pVal 
)

Send the b-CAP ID_COMMAND_EXECUTE packet.

Parameters:
[in]fdFile descriptor.
[in]hCommandCommand handle.
[in]lModeExecution mode.
[out]pValResult value.

Definition at line 1538 of file bcap_client.c.

HRESULT bCap_CommandGetAttribute ( int  fd,
uint32_t  hCommand,
int32_t pVal 
)

Send the b-CAP ID_COMMAND_GETATTRIBUTE packet.

Parameters:
[in]fdFile descriptor.
[in]hCommandCommand handle.
[out]pValThe gotten attribute value.

Definition at line 1597 of file bcap_client.c.

HRESULT bCap_CommandGetHelp ( int  fd,
uint32_t  hCommand,
BSTR pVal 
)

Send the b-CAP ID_COMMAND_GETHELP packet.

Parameters:
[in]fdFile descriptor.
[in]hCommandCommand handle.
[out]pValThe gotten help string.

Definition at line 1604 of file bcap_client.c.

HRESULT bCap_CommandGetID ( int  fd,
uint32_t  hCommand,
VARIANT pVal 
)

Send the b-CAP ID_COMMAND_GETID packet.

Parameters:
[in]fdFile descriptor.
[in]hCommandCommand handle.
[out]pValThe gotten ID.

Definition at line 1632 of file bcap_client.c.

HRESULT bCap_CommandGetName ( int  fd,
uint32_t  hCommand,
BSTR pVal 
)

Send the b-CAP ID_COMMAND_GETNAME packet.

Parameters:
[in]fdFile descriptor.
[in]hCommandCommand handle.
[out]pValThe gotten name string.

Definition at line 1611 of file bcap_client.c.

HRESULT bCap_CommandGetParameters ( int  fd,
uint32_t  hCommand,
VARIANT pVal 
)

Send the b-CAP ID_COMMAND_GETPARAMETERS packet.

Parameters:
[in]fdFile descriptor.
[in]hCommandCommand handle.
[out]pValThe gotten parameters.

Definition at line 1574 of file bcap_client.c.

HRESULT bCap_CommandGetResult ( int  fd,
uint32_t  hCommand,
VARIANT pVal 
)

Send the b-CAP ID_COMMAND_GETRESULT packet.

Parameters:
[in]fdFile descriptor.
[in]hCommandCommand handle.
[out]pValThe gotten result.

Definition at line 1590 of file bcap_client.c.

HRESULT bCap_CommandGetState ( int  fd,
uint32_t  hCommand,
int32_t pVal 
)

Send the b-CAP ID_COMMAND_GETSTATE packet.

Parameters:
[in]fdFile descriptor.
[in]hCommandCommand handle.
[out]pValThe gotten state value.

Definition at line 1567 of file bcap_client.c.

HRESULT bCap_CommandGetTag ( int  fd,
uint32_t  hCommand,
VARIANT pVal 
)

Send the b-CAP ID_COMMAND_GETTAG packet.

Parameters:
[in]fdFile descriptor.
[in]hCommandCommand handle.
[out]pValThe gotten tag value.

Definition at line 1618 of file bcap_client.c.

HRESULT bCap_CommandGetTimeout ( int  fd,
uint32_t  hCommand,
int32_t pVal 
)

Send the b-CAP ID_COMMAND_GETTIMEOUT packet.

Parameters:
[in]fdFile descriptor.
[in]hCommandCommand handle.
[out]pValThe gotten timeout value.

Definition at line 1553 of file bcap_client.c.

HRESULT bCap_CommandPutID ( int  fd,
uint32_t  hCommand,
VARIANT  newVal 
)

Send the b-CAP ID_COMMAND_PUTID packet.

Parameters:
[in]fdFile descriptor.
[in]hCommandCommand handle.
[in]newValThe ID to be put.

Definition at line 1639 of file bcap_client.c.

HRESULT bCap_CommandPutParameters ( int  fd,
uint32_t  hCommand,
VARIANT  newVal 
)

Send the b-CAP ID_VARIABLE_PUTPARAMETERS packet.

Parameters:
[in]fdFile descriptor.
[in]hCommandCommand handle.
[in]newValThe parameters to be put.

Definition at line 1582 of file bcap_client.c.

HRESULT bCap_CommandPutTag ( int  fd,
uint32_t  hCommand,
VARIANT  newVal 
)

Send the b-CAP ID_COMMAND_PUTTAG packet.

Parameters:
[in]fdFile descriptor.
[in]hCommandCommand handle.
[in]newValThe tag value to be put.

Definition at line 1625 of file bcap_client.c.

HRESULT bCap_CommandPutTimeout ( int  fd,
uint32_t  hCommand,
int32_t  newVal 
)

Send the b-CAP ID_COMMAND_PUTTIMEOUT packet.

Parameters:
[in]fdFile descriptor.
[in]hCommandCommand handle.
[in]newValThe timeout value to be put.

Definition at line 1560 of file bcap_client.c.

HRESULT bCap_CommandRelease ( int  fd,
uint32_t hCommand 
)

Send the b-CAP ID_COMMAND_RELEASE packet.

Parameters:
[in]fdThe file descriptor.
[in,out]hCommandCommand 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.

Parameters:
[in]fdFile descriptor.
[in]bstrNameController name.
[in]bstrProviderProvider name.
[in]bstrMachineMachine name.
[in]bstrOptionOption strings.
[out]hControllerController handle.

Definition at line 612 of file bcap_client.c.

HRESULT bCap_ControllerDisconnect ( int  fd,
uint32_t hController 
)

Send the b-CAP ID_CONTROLLER_DISCONNECT packet.

Parameters:
[in]fdThe file descriptor.
[in,out]hControllerController 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.

Parameters:
[in]fdFile descriptor.
[in]hControllerController handle.
[in]bstrCommandExecuting command name.
[in]vntParamExecuting parameters.
[out]pValResult value.

Definition at line 760 of file bcap_client.c.

HRESULT bCap_ControllerGetAttribute ( int  fd,
uint32_t  hController,
int32_t pVal 
)

Send the b-CAP ID_CONTROLLER_GETATTRIBUTE packet.

Parameters:
[in]fdFile descriptor.
[in]hControllerController handle.
[out]pValThe 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.

Parameters:
[in]fdFile descriptor.
[in]hControllerController handle.
[in]bstrNameFile name.
[in]bstrOptionOption strings.
[out]hCommandCommand 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.

Parameters:
[in]fdFile descriptor.
[in]hControllerController handle.
[in]bstrOptionOption strings.
[out]pValThe 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.

Parameters:
[in]fdFile descriptor.
[in]hControllerController handle.
[in]bstrNameExtension name.
[in]bstrOptionOption strings.
[out]hExtensionExtension 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.

Parameters:
[in]fdFile descriptor.
[in]hControllerController handle.
[in]bstrOptionOption strings.
[out]pValThe 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.

Parameters:
[in]fdFile descriptor.
[in]hControllerController handle.
[in]bstrNameFile name.
[in]bstrOptionOption strings.
[out]hFileFile 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.

Parameters:
[in]fdFile descriptor.
[in]hControllerController handle.
[in]bstrOptionOption strings.
[out]pValThe gotten names.

Definition at line 715 of file bcap_client.c.

HRESULT bCap_ControllerGetHelp ( int  fd,
uint32_t  hController,
BSTR pVal 
)

Send the b-CAP ID_CONTROLLER_GETHELP packet.

Parameters:
[in]fdFile descriptor.
[in]hControllerController handle.
[out]pValThe gotten help string.

Definition at line 787 of file bcap_client.c.

HRESULT bCap_ControllerGetID ( int  fd,
uint32_t  hController,
VARIANT pVal 
)

Send the b-CAP ID_CONTROLLER_GETID packet.

Parameters:
[in]fdFile descriptor.
[in]hControllerController handle.
[out]pValThe gotten ID.

Definition at line 818 of file bcap_client.c.

HRESULT bCap_ControllerGetMessage ( int  fd,
uint32_t  hController,
uint32_t hMessage 
)

Send the b-CAP ID_CONTROLLER_GETMESSAGE packet.

Parameters:
[in]fdFile descriptor.
[in]hControllerController handle.
[out]hMessageMessage handle.

Definition at line 769 of file bcap_client.c.

HRESULT bCap_ControllerGetName ( int  fd,
uint32_t  hController,
BSTR pVal 
)

Send the b-CAP ID_CONTROLLER_GETNAME packet.

Parameters:
[in]fdFile descriptor.
[in]hControllerController handle.
[out]pValThe 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.

Parameters:
[in]fdFile descriptor.
[in]hControllerController handle.
[in]bstrNameFile name.
[in]bstrOptionOption strings.
[out]hRobotRobot 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.

Parameters:
[in]fdFile descriptor.
[in]hControllerController handle.
[in]bstrOptionOption strings.
[out]pValThe gotten names.

Definition at line 724 of file bcap_client.c.

HRESULT bCap_ControllerGetTag ( int  fd,
uint32_t  hController,
VARIANT pVal 
)

Send the b-CAP ID_CONTROLLER_GETTAG packet.

Parameters:
[in]fdFile descriptor.
[in]hControllerController handle.
[out]pValThe 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.

Parameters:
[in]fdFile descriptor.
[in]hControllerController handle.
[in]bstrNameFile name.
[in]bstrOptionOption strings.
[out]hTaskTask 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.

Parameters:
[in]fdFile descriptor.
[in]hControllerController handle.
[in]bstrOptionOption strings.
[out]pValThe 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.

Parameters:
[in]fdFile descriptor.
[in]hControllerController handle.
[in]bstrNameFile name.
[in]bstrOptionOption strings.
[out]hVariableVariable 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.

Parameters:
[in]fdFile descriptor.
[in]hControllerController handle.
[in]bstrOptionOption strings.
[out]pValThe gotten names.

Definition at line 742 of file bcap_client.c.

HRESULT bCap_ControllerPutID ( int  fd,
uint32_t  hController,
VARIANT  newVal 
)

Send the b-CAP ID_CONTROLLER_PUTID packet.

Parameters:
[in]fdFile descriptor.
[in]hControllerController handle.
[in]newValThe ID to be put.

Definition at line 825 of file bcap_client.c.

HRESULT bCap_ControllerPutTag ( int  fd,
uint32_t  hController,
VARIANT  newVal 
)

Send the b-CAP ID_CONTROLLER_PUTTAG packet.

Parameters:
[in]fdFile descriptor.
[in]hControllerController handle.
[in]newValThe 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.

Parameters:
[in]fdFile descriptor.
[in]hExtensionExtension handle.
[in]bstrCommandExecuting command name.
[in]vntParamExecuting parameters.
[out]pValResult value.

Definition at line 853 of file bcap_client.c.

HRESULT bCap_ExtensionGetAttribute ( int  fd,
uint32_t  hExtension,
int32_t pVal 
)

Send the b-CAP ID_EXTENSION_GETATTRIBUTE packet.

Parameters:
[in]fdFile descriptor.
[in]hExtensionExtension handle.
[out]pValThe gotten attribute value.

Definition at line 862 of file bcap_client.c.

HRESULT bCap_ExtensionGetHelp ( int  fd,
uint32_t  hExtension,
BSTR pVal 
)

Send the b-CAP ID_EXTENSION_GETHELP packet.

Parameters:
[in]fdFile descriptor.
[in]hExtensionExtension handle.
[out]pValThe gotten help string.

Definition at line 870 of file bcap_client.c.

HRESULT bCap_ExtensionGetID ( int  fd,
uint32_t  hExtension,
VARIANT pVal 
)

Send the b-CAP ID_EXTENSION_GETID packet.

Parameters:
[in]fdFile descriptor.
[in]hExtensionExtension handle.
[out]pValThe gotten ID.

Definition at line 898 of file bcap_client.c.

HRESULT bCap_ExtensionGetName ( int  fd,
uint32_t  hExtension,
BSTR pVal 
)

Send the b-CAP ID_EXTENSION_GETNAME packet.

Parameters:
[in]fdFile descriptor.
[in]hExtensionExtension handle.
[out]pValThe gotten name string.

Definition at line 877 of file bcap_client.c.

HRESULT bCap_ExtensionGetTag ( int  fd,
uint32_t  hExtension,
VARIANT pVal 
)

Send the b-CAP ID_EXTENSION_GETTAG packet.

Parameters:
[in]fdFile descriptor.
[in]hExtensionExtension handle.
[out]pValThe 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.

Parameters:
[in]fdFile descriptor.
[in]hControllerExtension handle.
[in]bstrNameFile name.
[in]bstrOptionOption strings.
[out]hVariableVariable 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.

Parameters:
[in]fdFile descriptor.
[in]hExtensionExtension handle.
[in]bstrOptionOption strings.
[out]pValThe gotten names.

Definition at line 844 of file bcap_client.c.

HRESULT bCap_ExtensionPutID ( int  fd,
uint32_t  hExtension,
VARIANT  newVal 
)

Send the b-CAP ID_EXTENSION_PUTID packet.

Parameters:
[in]fdFile descriptor.
[in]hExtensionExtension handle.
[in]newValThe ID to be put.

Definition at line 905 of file bcap_client.c.

HRESULT bCap_ExtensionPutTag ( int  fd,
uint32_t  hExtension,
VARIANT  newVal 
)

Send the b-CAP ID_EXTENSION_PUTTAG packet.

Parameters:
[in]fdFile descriptor.
[in]hExtensionExtension handle.
[in]newValThe tag value to be put.

Definition at line 891 of file bcap_client.c.

HRESULT bCap_ExtensionRelease ( int  fd,
uint32_t hExtension 
)

Send the b-CAP ID_EXTENSION_RELEASE packet.

Parameters:
[in]fdThe file descriptor.
[in,out]hExtensionExtension handle.

Definition at line 912 of file bcap_client.c.

HRESULT bCap_FileCopy ( int  fd,
uint32_t  hFile,
BSTR  bstrName,
BSTR  bstrOption 
)

Send the b-CAP ID_FILE_COPY packet.

Parameters:
[in]fdFile descriptor.
[in]hFileFile handle.
[in]bstrNameCopied file name.
[in]bstrOptionOption strings.

Definition at line 977 of file bcap_client.c.

HRESULT bCap_FileDelete ( int  fd,
uint32_t  hFile,
BSTR  bstrOption 
)

Send the b-CAP ID_FILE_DELETE packet.

Parameters:
[in]fdFile descriptor.
[in]hFileFile handle.
[in]bstrOptionOption 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.

Parameters:
[in]fdFile descriptor.
[in]hFileFile handle.
[in]bstrCommandExecuting command name.
[in]vntParamExecuting parameters.
[out]pValResult value.

Definition at line 968 of file bcap_client.c.

HRESULT bCap_FileGetAttribute ( int  fd,
uint32_t  hFile,
int32_t pVal 
)

Send the b-CAP ID_FILE_GETATTRIBUTE packet.

Parameters:
[in]fdFile descriptor.
[in]hFileFile handle.
[out]pValThe gotten attribute value.

Definition at line 1065 of file bcap_client.c.

HRESULT bCap_FileGetDateCreated ( int  fd,
uint32_t  hFile,
VARIANT pVal 
)

Send the b-CAP ID_FILE_GETDATECREATED packet.

Parameters:
[in]fdFile descriptor.
[in]hFileFile handle.
[out]pValThe gotten time value.

Definition at line 1007 of file bcap_client.c.

HRESULT bCap_FileGetDateLastAccessed ( int  fd,
uint32_t  hFile,
VARIANT pVal 
)

Send the b-CAP ID_FILE_GETDATELASTACCESSED packet.

Parameters:
[in]fdFile descriptor.
[in]hFileFile handle.
[out]pValThe gotten time value.

Definition at line 1014 of file bcap_client.c.

HRESULT bCap_FileGetDateLastModified ( int  fd,
uint32_t  hFile,
VARIANT pVal 
)

Send the b-CAP ID_FILE_GETDATELASTMODIFIED packet.

Parameters:
[in]fdFile descriptor.
[in]hFileFile handle.
[out]pValThe 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.

Parameters:
[in]fdFile descriptor.
[in]hFileFile handle.
[in]bstrNameFile name.
[in]bstrOptionOption strings.
[out]hFile2File handle.

Definition at line 929 of file bcap_client.c.

HRESULT bCap_FileGetFileNames ( int  fd,
uint32_t  hFile,
BSTR  bstrOption,
VARIANT pVal 
)

Send the b-CAP ID_FILE_GETFILENAMES packet.

Parameters:
[in]fdFile descriptor.
[in]hFileFile handle.
[in]bstrOptionOption strings.
[out]pValThe gotten names.

Definition at line 951 of file bcap_client.c.

HRESULT bCap_FileGetHelp ( int  fd,
uint32_t  hFile,
BSTR pVal 
)

Send the b-CAP ID_FILE_GETHELP packet.

Parameters:
[in]fdFile descriptor.
[in]hFileFile handle.
[out]pValThe gotten help string.

Definition at line 1072 of file bcap_client.c.

HRESULT bCap_FileGetID ( int  fd,
uint32_t  hFile,
VARIANT pVal 
)

Send the b-CAP ID_FILE_GETID packet.

Parameters:
[in]fdFile descriptor.
[in]hFileFile handle.
[out]pValThe gotten ID.

Definition at line 1100 of file bcap_client.c.

HRESULT bCap_FileGetName ( int  fd,
uint32_t  hFile,
BSTR pVal 
)

Send the b-CAP ID_FILE_GETNAME packet.

Parameters:
[in]fdFile descriptor.
[in]hFileFile handle.
[out]pValThe gotten name string.

Definition at line 1079 of file bcap_client.c.

HRESULT bCap_FileGetPath ( int  fd,
uint32_t  hFile,
BSTR pVal 
)

Send the b-CAP ID_FILE_GETPATH packet.

Parameters:
[in]fdFile descriptor.
[in]hFileFile handle.
[out]pValThe gotten path.

Definition at line 1030 of file bcap_client.c.

HRESULT bCap_FileGetSize ( int  fd,
uint32_t  hFile,
int32_t pVal 
)

Send the b-CAP ID_FILE_GETSIZE packet.

Parameters:
[in]fdFile descriptor.
[in]hFileFile handle.
[out]pValThe gotten size.

Definition at line 1037 of file bcap_client.c.

HRESULT bCap_FileGetTag ( int  fd,
uint32_t  hFile,
VARIANT pVal 
)

Send the b-CAP ID_FILE_GETTAG packet.

Parameters:
[in]fdFile descriptor.
[in]hFileFile handle.
[out]pValThe gotten tag value.

Definition at line 1086 of file bcap_client.c.

HRESULT bCap_FileGetType ( int  fd,
uint32_t  hFile,
BSTR pVal 
)

Send the b-CAP ID_FILE_GETTYPE packet.

Parameters:
[in]fdFile descriptor.
[in]hFileFile handle.
[out]pValThe gotten type.

Definition at line 1044 of file bcap_client.c.

HRESULT bCap_FileGetValue ( int  fd,
uint32_t  hFile,
VARIANT pVal 
)

Send the b-CAP ID_FILE_GETVALUE packet.

Parameters:
[in]fdFile descriptor.
[in]hFileFile handle.
[out]pValThe 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.

Parameters:
[in]fdFile descriptor.
[in]hFileFile handle.
[in]bstrNameFile name.
[in]bstrOptionOption strings.
[out]hVariableVariable handle.

Definition at line 940 of file bcap_client.c.

HRESULT bCap_FileGetVariableNames ( int  fd,
uint32_t  hFile,
BSTR  bstrOption,
VARIANT pVal 
)

Send the b-CAP ID_FILE_GETVARIABLENAMES packet.

Parameters:
[in]fdFile descriptor.
[in]hFileFile handle.
[in]bstrOptionOption strings.
[out]pValThe gotten names.

Definition at line 959 of file bcap_client.c.

HRESULT bCap_FileMove ( int  fd,
uint32_t  hFile,
BSTR  bstrName,
BSTR  bstrOption 
)

Send the b-CAP ID_FILE_MOVE packet.

Parameters:
[in]fdFile descriptor.
[in]hFileFile handle.
[in]bstrNameMoved file name.
[in]bstrOptionOption strings.

Definition at line 992 of file bcap_client.c.

HRESULT bCap_FilePutID ( int  fd,
uint32_t  hFile,
VARIANT  newVal 
)

Send the b-CAP ID_FILE_PUTID packet.

Parameters:
[in]fdFile descriptor.
[in]hFileFile handle.
[in]newValThe ID to be put.

Definition at line 1107 of file bcap_client.c.

HRESULT bCap_FilePutTag ( int  fd,
uint32_t  hFile,
VARIANT  newVal 
)

Send the b-CAP ID_FILE_PUTTAG packet.

Parameters:
[in]fdFile descriptor.
[in]hFileFile handle.
[in]newValThe tag value to be put.

Definition at line 1093 of file bcap_client.c.

HRESULT bCap_FilePutValue ( int  fd,
uint32_t  hFile,
VARIANT  newVal 
)

Send the b-CAP ID_FILE_PUTVALUE packet.

Parameters:
[in]fdFile descriptor.
[in]hFileFile handle.
[in]newValThe value to be put.

Definition at line 1058 of file bcap_client.c.

HRESULT bCap_FileRelease ( int  fd,
uint32_t hFile 
)

Send the b-CAP ID_FILE_RELEASE packet.

Parameters:
[in]fdThe file descriptor.
[in,out]hFileFile handle.

Definition at line 1114 of file bcap_client.c.

HRESULT bCap_FileRun ( int  fd,
uint32_t  hFile,
BSTR  bstrOption,
BSTR pVal 
)

Send the b-CAP ID_FILE_RUN packet.

Parameters:
[in]fdFile descriptor.
[in]hFileFile handle.
[in]bstrOptionOption strings.
[out]pValThe created task name.

Definition at line 1000 of file bcap_client.c.

HRESULT bCap_GetRetry ( int  fd,
unsigned int *  retry 
)

Gets retry count.

Parameters:
[in]fdFile descriptor.
[in]retryThe gotten retry count.

Definition at line 581 of file bcap_client.c.

HRESULT bCap_GetTimeout ( int  fd,
uint32_t timeout 
)

Gets timeout.

Parameters:
[in]fdFile descriptor.
[out]timeoutThe gotten timeout value.

Definition at line 517 of file bcap_client.c.

HRESULT bCap_MessageClear ( int  fd,
uint32_t  hMessage 
)

Send the b-CAP ID_MESSAGE_CLEAR packet.

Parameters:
[in]fdFile descriptor.
[in]hMessageMessage handle.

Definition at line 1670 of file bcap_client.c.

HRESULT bCap_MessageGetDateTime ( int  fd,
uint32_t  hMessage,
VARIANT pVal 
)

Send the b-CAP ID_MESSAGE_GETDATETIME packet.

Parameters:
[in]fdFile descriptor.
[in]hMessageMessage handle.
[out]pValThe gotten time value.

Definition at line 1677 of file bcap_client.c.

HRESULT bCap_MessageGetDescription ( int  fd,
uint32_t  hMessage,
BSTR pVal 
)

Send the b-CAP ID_MESSAGE_GETDESCRIPTION packet.

Parameters:
[in]fdFile descriptor.
[in]hMessageMessage handle.
[out]pValThe gotten description.

Definition at line 1684 of file bcap_client.c.

HRESULT bCap_MessageGetDestination ( int  fd,
uint32_t  hMessage,
BSTR pVal 
)

Send the b-CAP ID_MESSAGE_GETDESTINATION packet.

Parameters:
[in]fdFile descriptor.
[in]hMessageMessage handle.
[out]pValThe gotten destination.

Definition at line 1692 of file bcap_client.c.

HRESULT bCap_MessageGetNumber ( int  fd,
uint32_t  hMessage,
int32_t pVal 
)

Send the b-CAP ID_MESSAGE_GETNUMBER packet.

Parameters:
[in]fdFile descriptor.
[in]hMessageMessage handle.
[out]pValThe gotten number.

Definition at line 1700 of file bcap_client.c.

HRESULT bCap_MessageGetSerialNumber ( int  fd,
uint32_t  hMessage,
int32_t pVal 
)

Send the b-CAP ID_MESSAGE_GETSERIALNUMBER packet.

Parameters:
[in]fdFile descriptor.
[in]hMessageMessage handle.
[out]pValThe gotten serial number.

Definition at line 1707 of file bcap_client.c.

HRESULT bCap_MessageGetSource ( int  fd,
uint32_t  hMessage,
BSTR pVal 
)

Send the b-CAP ID_MESSAGE_GETSOURCE packet.

Parameters:
[in]fdFile descriptor.
[in]hMessageMessage handle.
[out]pValThe gotten source.

Definition at line 1715 of file bcap_client.c.

HRESULT bCap_MessageGetValue ( int  fd,
uint32_t  hMessage,
VARIANT pVal 
)

Send the b-CAP ID_MESSAGE_GETVALUE packet.

Parameters:
[in]fdFile descriptor.
[in]hMessageMessage handle.
[out]pValThe gotten value.

Definition at line 1722 of file bcap_client.c.

HRESULT bCap_MessageRelease ( int  fd,
uint32_t hMessage 
)

Send the b-CAP ID_MESSAGE_RELEASE packet.

Parameters:
[in]fdThe file descriptor.
[in,out]hMessageMessage handle.

Definition at line 1729 of file bcap_client.c.

HRESULT bCap_MessageReply ( int  fd,
uint32_t  hMessage,
VARIANT  vntData 
)

Send the b-CAP ID_MESSAGE_REPLY packet.

Parameters:
[in]fdFile descriptor.
[in]hMessageMessage handle.
[in]vntDataThe reply data.

Definition at line 1663 of file bcap_client.c.

HRESULT bCap_Open_Client ( const char *  connect,
uint32_t  timeout,
unsigned int  retry,
int *  pfd 
)

Starts b-CAP communication.

Parameters:
[in]connectConnection parameters.
[in]timeoutTimeout value.
[in]retryRetry value.
[out]pfdThe pointer of File descriptor.

Definition at line 322 of file bcap_client.c.

HRESULT bCap_RobotAccelerate ( int  fd,
uint32_t  hRobot,
int32_t  lAxis,
float  fAccel,
float  fDecel 
)

Send the b-CAP ID_ROBOT_ACCELERATE packet.

Parameters:
[in]fdFile descriptor.
[in]hRobotRobot handle.
[in]lAxisAxis number.
[in]fAccelAcceleration value.
[in]fDecelDeceleration value.

Definition at line 1160 of file bcap_client.c.

HRESULT bCap_RobotChange ( int  fd,
uint32_t  hRobot,
BSTR  bstrName 
)

Send the b-CAP ID_ROBOT_CHANGE packet.

Parameters:
[in]fdFile descriptor.
[in]hRobotRobot handle.
[in]bstrNameHand name.

Definition at line 1169 of file bcap_client.c.

HRESULT bCap_RobotChuck ( int  fd,
uint32_t  hRobot,
BSTR  bstrOption 
)

Send the b-CAP ID_ROBOT_CHUCK packet.

Parameters:
[in]fdFile descriptor.
[in]hRobotRobot handle.
[in]bstrOptionOption strings.

Definition at line 1176 of file bcap_client.c.

HRESULT bCap_RobotDrive ( int  fd,
uint32_t  hRobot,
int32_t  lNo,
float  fMov,
BSTR  bstrOption 
)

Send the b-CAP ID_ROBOT_DRIVE packet.

Parameters:
[in]fdFile descriptor.
[in]hRobotRobot handle.
[in]lNoAxis number.
[in]fMovMovement value.
[in]bstrOptionOption 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.

Parameters:
[in]fdFile descriptor.
[in]hRobotRobot handle.
[in]bstrCommandExecuting command name.
[in]vntParamExecuting parameters.
[out]pValResult value.

Definition at line 1151 of file bcap_client.c.

HRESULT bCap_RobotGetAttribute ( int  fd,
uint32_t  hRobot,
int32_t pVal 
)

Send the b-CAP ID_ROBOT_GETATTRIBUTE packet.

Parameters:
[in]fdFile descriptor.
[in]hRobotRobot handle.
[out]pValThe gotten attribute value.

Definition at line 1252 of file bcap_client.c.

HRESULT bCap_RobotGetHelp ( int  fd,
uint32_t  hRobot,
BSTR pVal 
)

Send the b-CAP ID_ROBOT_GETHELP packet.

Parameters:
[in]fdFile descriptor.
[in]hRobotRobot handle.
[out]pValThe gotten help string.

Definition at line 1259 of file bcap_client.c.

HRESULT bCap_RobotGetID ( int  fd,
uint32_t  hRobot,
VARIANT pVal 
)

Send the b-CAP ID_ROBOT_GETID packet.

Parameters:
[in]fdFile descriptor.
[in]hRobotRobot handle.
[out]pValThe gotten ID.

Definition at line 1287 of file bcap_client.c.

HRESULT bCap_RobotGetName ( int  fd,
uint32_t  hRobot,
BSTR pVal 
)

Send the b-CAP ID_ROBOT_GETNAME packet.

Parameters:
[in]fdFile descriptor.
[in]hRobotRobot handle.
[out]pValThe gotten name string.

Definition at line 1266 of file bcap_client.c.

HRESULT bCap_RobotGetTag ( int  fd,
uint32_t  hRobot,
VARIANT pVal 
)

Send the b-CAP ID_ROBOT_GETTAG packet.

Parameters:
[in]fdFile descriptor.
[in]hRobotRobot handle.
[out]pValThe 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.

Parameters:
[in]fdFile descriptor.
[in]hControllerRobot handle.
[in]bstrNameFile name.
[in]bstrOptionOption strings.
[out]hVariableVariable handle.

Definition at line 1131 of file bcap_client.c.

HRESULT bCap_RobotGetVariableNames ( int  fd,
uint32_t  hRobot,
BSTR  bstrOption,
VARIANT pVal 
)

Send the b-CAP ID_ROBOT_GETVARIABLENAMES packet.

Parameters:
[in]fdFile descriptor.
[in]hRobotRobot handle.
[in]bstrOptionOption strings.
[out]pValThe gotten names.

Definition at line 1142 of file bcap_client.c.

HRESULT bCap_RobotGoHome ( int  fd,
uint32_t  hRobot 
)

Send the b-CAP ID_ROBOT_GOHOME packet.

Parameters:
[in]fdFile descriptor.
[in]hRobotRobot handle.

Definition at line 1192 of file bcap_client.c.

HRESULT bCap_RobotHalt ( int  fd,
uint32_t  hRobot,
BSTR  bstrOption 
)

Send the b-CAP ID_ROBOT_HALT packet.

Parameters:
[in]fdFile descriptor.
[in]hRobotRobot handle.
[in]bstrOptionOption strings.

Definition at line 1199 of file bcap_client.c.

HRESULT bCap_RobotHold ( int  fd,
uint32_t  hRobot,
BSTR  bstrOption 
)

Send the b-CAP ID_ROBOT_HOLD packet.

Parameters:
[in]fdFile descriptor.
[in]hRobotRobot handle.
[in]bstrOptionOption strings.

Definition at line 1206 of file bcap_client.c.

HRESULT bCap_RobotMove ( int  fd,
uint32_t  hRobot,
int32_t  lComp,
VARIANT  vntPose,
BSTR  bstrOption 
)

Send the b-CAP ID_ROBOT_MOVE packet.

Parameters:
[in]fdFile descriptor.
[in]hRobotRobot handle.
[in]lCompMove interpolation.
[in]vntPosePose data.
[in]bstrOptionOption strings.

Definition at line 1213 of file bcap_client.c.

HRESULT bCap_RobotPutID ( int  fd,
uint32_t  hRobot,
VARIANT  newVal 
)

Send the b-CAP ID_ROBOT_PUTID packet.

Parameters:
[in]fdFile descriptor.
[in]hRobotRobot handle.
[in]newValThe ID to be put.

Definition at line 1294 of file bcap_client.c.

HRESULT bCap_RobotPutTag ( int  fd,
uint32_t  hRobot,
VARIANT  newVal 
)

Send the b-CAP ID_ROBOT_PUTTAG packet.

Parameters:
[in]fdFile descriptor.
[in]hRobotRobot handle.
[in]newValThe tag value to be put.

Definition at line 1280 of file bcap_client.c.

HRESULT bCap_RobotRelease ( int  fd,
uint32_t hRobot 
)

Send the b-CAP ID_ROBOT_RELEASE packet.

Parameters:
[in]fdThe file descriptor.
[in,out]hRobotRobot 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.

Parameters:
[in]fdFile descriptor.
[in]hRobotRobot handle.
[in]vntRotSufRotate surface.
[in]fDegDegree.
[in]vntPivotCenter of rotation.
[in]bstrOptionOption strings.

Definition at line 1222 of file bcap_client.c.

HRESULT bCap_RobotSpeed ( int  fd,
uint32_t  hRobot,
int32_t  lAxis,
float  fSpeed 
)

Send the b-CAP ID_ROBOT_SPEED packet.

Parameters:
[in]fdFile descriptor.
[in]hRobotRobot handle.
[in]lAxisAxis number.
[in]fSpeedSleep value to be set.

Definition at line 1231 of file bcap_client.c.

HRESULT bCap_RobotUnchuck ( int  fd,
uint32_t  hRobot,
BSTR  bstrOption 
)

Send the b-CAP ID_ROBOT_UNCHUCK packet.

Parameters:
[in]fdFile descriptor.
[in]hRobotRobot handle.
[in]bstrOptionOption strings.

Definition at line 1238 of file bcap_client.c.

HRESULT bCap_RobotUnhold ( int  fd,
uint32_t  hRobot,
BSTR  bstrOption 
)

Send the b-CAP ID_ROBOT_UNHOLD packet.

Parameters:
[in]fdFile descriptor.
[in]hRobotRobot handle.
[in]bstrOptionOption strings.

Definition at line 1245 of file bcap_client.c.

HRESULT bCap_ServiceStart ( int  fd,
BSTR  bstrOption 
)

Send the b-CAP ID_SERVICE_START packet.

Parameters:
[in]fdFile descriptor.
[in]bstrOptOption strings.

Definition at line 598 of file bcap_client.c.

HRESULT bCap_ServiceStop ( int  fd)

Send the b-CAP ID_SERVICE_STOP packet.

Parameters:
[in]fdFile descriptor.

Definition at line 605 of file bcap_client.c.

HRESULT bCap_SetRetry ( int  fd,
unsigned int  retry 
)

Sets retry count.

Parameters:
[in]fdFile descriptor.
[in]retryRetry count to be set.

Definition at line 536 of file bcap_client.c.

HRESULT bCap_SetTimeout ( int  fd,
uint32_t  timeout 
)

Sets timeout.

Parameters:
[in]fdFile descriptor.
[in]timeoutTimeout value to be set.

Definition at line 486 of file bcap_client.c.

HRESULT bCap_TaskDelete ( int  fd,
uint32_t  hTask,
BSTR  bstrOption 
)

Send the b-CAP ID_TASK_DELETE packet.

Parameters:
[in]fdFile descriptor.
[in]hTaskTask handle.
[in]bstrOptionOption 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.

Parameters:
[in]fdFile descriptor.
[in]hTaskTask handle.
[in]bstrCommandExecuting command name.
[in]vntParamExecuting parameters.
[out]pValResult value.

Definition at line 1338 of file bcap_client.c.

HRESULT bCap_TaskGetAttribute ( int  fd,
uint32_t  hTask,
int32_t pVal 
)

Send the b-CAP ID_TASK_GETATTRIBUTE packet.

Parameters:
[in]fdFile descriptor.
[in]hTaskTask handle.
[out]pValThe gotten attribute value.

Definition at line 1375 of file bcap_client.c.

HRESULT bCap_TaskGetFileName ( int  fd,
uint32_t  hTask,
BSTR pVal 
)

Send the b-CAP ID_TASK_GETFILENAME packet.

Parameters:
[in]fdFile descriptor.
[in]hTaskTask handle.
[out]pValThe gotten file name.

Definition at line 1368 of file bcap_client.c.

HRESULT bCap_TaskGetHelp ( int  fd,
uint32_t  hTask,
BSTR pVal 
)

Send the b-CAP ID_TASK_GETHELP packet.

Parameters:
[in]fdFile descriptor.
[in]hTaskTask handle.
[out]pValThe gotten help string.

Definition at line 1382 of file bcap_client.c.

HRESULT bCap_TaskGetID ( int  fd,
uint32_t  hTask,
VARIANT pVal 
)

Send the b-CAP ID_TASK_GETID packet.

Parameters:
[in]fdFile descriptor.
[in]hTaskTask handle.
[out]pValThe gotten ID.

Definition at line 1410 of file bcap_client.c.

HRESULT bCap_TaskGetName ( int  fd,
uint32_t  hTask,
BSTR pVal 
)

Send the b-CAP ID_TASK_GETNAME packet.

Parameters:
[in]fdFile descriptor.
[in]hTaskTask handle.
[out]pValThe gotten name string.

Definition at line 1389 of file bcap_client.c.

HRESULT bCap_TaskGetTag ( int  fd,
uint32_t  hTask,
VARIANT pVal 
)

Send the b-CAP ID_TASK_GETTAG packet.

Parameters:
[in]fdFile descriptor.
[in]hTaskTask handle.
[out]pValThe 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.

Parameters:
[in]fdFile descriptor.
[in]hTaskTask handle.
[in]bstrNameVariable name.
[in]bstrOptionOption strings.
[out]hVariableVariable handle.

Definition at line 1318 of file bcap_client.c.

HRESULT bCap_TaskGetVariableNames ( int  fd,
uint32_t  hTask,
BSTR  bstrOption,
VARIANT pVal 
)

Send the b-CAP ID_TASK_GETVARIABLENAMES packet.

Parameters:
[in]fdFile descriptor.
[in]hTaskTask handle.
[in]bstrOptionOption strings.
[out]pValThe gotten names.

Definition at line 1329 of file bcap_client.c.

HRESULT bCap_TaskPutID ( int  fd,
uint32_t  hTask,
VARIANT  newVal 
)

Send the b-CAP ID_TASK_PUTID packet.

Parameters:
[in]fdFile descriptor.
[in]hTaskTask handle.
[in]newValThe ID to be put.

Definition at line 1417 of file bcap_client.c.

HRESULT bCap_TaskPutTag ( int  fd,
uint32_t  hTask,
VARIANT  newVal 
)

Send the b-CAP ID_TASK_PUTTAG packet.

Parameters:
[in]fdFile descriptor.
[in]hTaskTask handle.
[in]newValThe tag value to be put.

Definition at line 1403 of file bcap_client.c.

HRESULT bCap_TaskRelease ( int  fd,
uint32_t hTask 
)

Send the b-CAP ID_TASK_RELEASE packet.

Parameters:
[in]fdThe file descriptor.
[in,out]hTaskTask handle.

Definition at line 1424 of file bcap_client.c.

HRESULT bCap_TaskStart ( int  fd,
uint32_t  hTask,
int32_t  lMode,
BSTR  bstrOption 
)

Send the b-CAP ID_TASK_START packet.

Parameters:
[in]fdFile descriptor.
[in]hTaskTask handle.
[in]lModeStart mode.
[in]bstrOptionOption strings.

Definition at line 1347 of file bcap_client.c.

HRESULT bCap_TaskStop ( int  fd,
uint32_t  hTask,
int32_t  lMode,
BSTR  bstrOption 
)

Send the b-CAP ID_TASK_STOP packet.

Parameters:
[in]fdFile descriptor.
[in]hTaskTask handle.
[in]lModeStop mode.
[in]bstrOptionOption strings.

Definition at line 1354 of file bcap_client.c.

HRESULT bCap_VariableGetAttribute ( int  fd,
uint32_t  hVariable,
int32_t pVal 
)

Send the b-CAP ID_VARIABLE_GETATTRIBUTE packet.

Parameters:
[in]fdFile descriptor.
[in]hVariableVariable handle.
[out]pValThe gotten attribute value.

Definition at line 1463 of file bcap_client.c.

HRESULT bCap_VariableGetDateTime ( int  fd,
uint32_t  hVariable,
VARIANT pVal 
)

Send the b-CAP ID_VARIABLE_GETDATETIME packet.

Parameters:
[in]fdFile descriptor.
[in]hVariableVariable handle.
[out]pValThe gotten time value.

Definition at line 1441 of file bcap_client.c.

HRESULT bCap_VariableGetHelp ( int  fd,
uint32_t  hVariable,
BSTR pVal 
)

Send the b-CAP ID_VARIABLE_GETHELP packet.

Parameters:
[in]fdFile descriptor.
[in]hVariableVariable handle.
[out]pValThe gotten help string.

Definition at line 1471 of file bcap_client.c.

HRESULT bCap_VariableGetID ( int  fd,
uint32_t  hVariable,
VARIANT pVal 
)

Send the b-CAP ID_VARIABLE_GETID packet.

Parameters:
[in]fdFile descriptor.
[in]hVariableVariable handle.
[out]pValThe gotten ID.

Definition at line 1499 of file bcap_client.c.

HRESULT bCap_VariableGetMicrosecond ( int  fd,
uint32_t  hVariable,
int32_t pVal 
)

Send the b-CAP ID_VARIABLE_GETMICROSECOND packet.

Parameters:
[in]fdFile descriptor.
[in]hVariableVariable handle.
[out]pValThe gotten time value.

Definition at line 1513 of file bcap_client.c.

HRESULT bCap_VariableGetName ( int  fd,
uint32_t  hVariable,
BSTR pVal 
)

Send the b-CAP ID_VARIABLE_GETNAME packet.

Parameters:
[in]fdFile descriptor.
[in]hVariableVariable handle.
[out]pValThe gotten name string.

Definition at line 1478 of file bcap_client.c.

HRESULT bCap_VariableGetTag ( int  fd,
uint32_t  hVariable,
VARIANT pVal 
)

Send the b-CAP ID_VARIABLE_GETTAG packet.

Parameters:
[in]fdFile descriptor.
[in]hVariableVariable handle.
[out]pValThe gotten tag value.

Definition at line 1485 of file bcap_client.c.

HRESULT bCap_VariableGetValue ( int  fd,
uint32_t  hVariable,
VARIANT pVal 
)

Send the b-CAP ID_VARIABLE_GETVALUE packet.

Parameters:
[in]fdFile descriptor.
[in]hVariableVariable handle.
[out]pValThe gotten value.

Definition at line 1449 of file bcap_client.c.

HRESULT bCap_VariablePutID ( int  fd,
uint32_t  hVariable,
VARIANT  newVal 
)

Send the b-CAP ID_VARIABLE_PUTID packet.

Parameters:
[in]fdFile descriptor.
[in]hVariableVariable handle.
[in]newValThe ID to be put.

Definition at line 1506 of file bcap_client.c.

HRESULT bCap_VariablePutTag ( int  fd,
uint32_t  hVariable,
VARIANT  newVal 
)

Send the b-CAP ID_VARIABLE_PUTTAG packet.

Parameters:
[in]fdFile descriptor.
[in]hVariableVariable handle.
[in]newValThe tag value to be put.

Definition at line 1492 of file bcap_client.c.

HRESULT bCap_VariablePutValue ( int  fd,
uint32_t  hVariable,
VARIANT  newVal 
)

Send the b-CAP ID_VARIABLE_PUTVALUE packet.

Parameters:
[in]fdFile descriptor.
[in]hVariableVariable handle.
[in]newValThe value to be put.

Definition at line 1456 of file bcap_client.c.

HRESULT bCap_VariableRelease ( int  fd,
uint32_t hVariable 
)

Send the b-CAP ID_VARIABLE_RELEASE packet.

Parameters:
[in]fdThe file descriptor.
[in,out]hVariableVariable handle.

Definition at line 1521 of file bcap_client.c.

struct CONN_BCAP_CLIENT * check_address ( int  index) [static, read]

Checks whether the index has been used or not.

Parameters:
[in]indexThe index of m_conn_param.
Note:
If the index has not been used then returns NULL.

Definition at line 103 of file bcap_client.c.

int find_open_address ( ) [static]

Returns the open address of m_conn_param.

Note:
If there is no open space, then returns 0.

Definition at line 82 of file bcap_client.c.

static HRESULT invoke_function ( int  fd,
int32_t  id,
int  argc,
char *  format,
  ... 
) [static]

Definition at line 196 of file bcap_client.c.

HRESULT send_receive ( int  index,
struct BCAP_PACKET packet_send,
struct BCAP_PACKET packet_recv 
) [static]

Sends and receives the b-CAP packet.

Parameters:
[in]indexThe index of m_conn_param.
[in]packet_sendThe b-CAP packet to be sent.
[out]packet_recvThe received b-CAP packet.

Definition at line 125 of file bcap_client.c.


Variable Documentation

Definition at line 74 of file bcap_client.c.



bcap_core
Author(s): DENSO WAVE INCORPORATED
autogenerated on Thu Jun 6 2019 21:00:03