MXIO Software Development Kit
C++ Sample Code Programming Guide
|
Functions | |
virtual int | CMXIO_V3_2500::MXIO_Connect (char *szIP, WORD wPort, DWORD dwTimeOut, char *szMACAddr, MX_ACCOUNT_DATA *AccountData, int *hConnection)=0 |
virtual int | CMXIO_V3_2500::MXIO_Disconnect (int hConnection)=0 |
virtual int | CMXIO_V3_2500::MXIO_Restart (int hConnection)=0 |
virtual int | CMXIO_V3_2500::MXIO_Read (int hConnection, WORD wBlockQuantity, CMXIO_V3_2500::MX_READ_BLOCK_DATA *pReadBlockData, pfnREADCALLBACK pfnProc, void *pParam)=0 |
virtual int | CMXIO_V3_2500::MXIO_Write (int hConnection, WORD wBlockQuantity, CMXIO_V3_2500::MX_WRITE_BLOCK_DATA *pRwBlockData, pfnWRITECALLBACK pfnProc, void *pParam)=0 |
virtual int | CMXIO_V3_2500::MXIO_Clear (int hConnection, WORD wBlockQuantity, CMXIO_V3_2500::MX_CLEAR_BLOCK_DATA *pClearBlockData, pfnCLEARCALLBACK pfnProc, void *pParam)=0 |
|
pure virtual |
[in] | szIP | IP address of device or Cellular Data Access. e.g. "192.16.127.253" |
[in] | wPort | TCP port of device agent service or Cellular Data Access service. |
[in] | dwTimeOut | Timeout value (ms) that try to link to device service or Cellular Data Access service. |
[in] | szMACAddr | Input device MAC address that link to Cellular Data Access or empty that link to device directly. |
[in] | AccountData | Login account information. |
[out] | hConnection | Handle of device. |
|
pure virtual |
[out] | hConnection | return device handle number. |
|
pure virtual |
[in] | hConnection | Input device handle number that MXIO_Connect() return. |
|
pure virtual |
[in] | hConnection | Input device handle number that MXIO_Connect() return. |
[in] | wBlockQuantity | Input command block Quantity. Only support one block right now. |
[in] | pRwBlockData | Input read parameters. |
[out] | pfnProc | Output read result to callback function. |
[in] | pParam | Input reference data point return by callback function. |
Note: wStartObj and wTotalObj of MX_CMD_BLOCK_HEADER must set to 0 and 1 in IOTYPE_SYS_SYSTEM Command
Note: wStartObj and wTotalObj of MX_CMD_BLOCK_HEADER must set to 0 in IOTYPE_SYS_IO_MODE Command
|
pure virtual |
[in] | hConnection | Input device handle number that MXIO_Connect() return. |
[in] | wBlockQuantity | Input command block Quantity. Only support one block right now. |
[in] | pRwBlockData | Input write parameters. |
[out] | pfnProc | Output write result to callback function. |
[in] | pParam | Input reference data point return by callback function. |
|
pure virtual |
[in] | hConnection | Input device handle number that MXIO_Connect() return. |
[in] | wBlockQuantity | Input command block Quantity. Only support one block right now. |
[in] | pClearBlockData | Input clear parameters. |
[out] | pfnProc | Output clear result to callback function. |
[in] | pParam | Input reference data point return by callback function. |