Description of the mca communication dll – GBS Elektronik MCA-166 Communication DLL User Manual

Page 29

Advertising
background image

Description of the MCA Communication DLL

Name

MMCA_SET_EXTENSION_RS232

Description

The function configures the RS232 interface of the extension port.

Declaration

ERROR_FLAG CALLBACK MMCA_SET_EXTENSION_RS232(unsigned short unBaudrate,
unsigned char uchFlags);

unBaudrate

Baud rate

uchFlags

Flags

Return value

See MCA_COMM function

Remarks

This function is only usable for MCA527. See CMD_SET_EXTENSION_RS232.

Name

MMCA_WRITE_TO_EXTENSION

Description

The function writes a string to the RS232 interface of the extension port.

Declaration

ERROR_FLAG CALLBACK MMCA_WRITE_TO_EXTENSION(LPSTR lpszBuffer);

lpszBuffer

Pointer to a null-terminated string.

Return value

See MCA_COMM function

Remarks

This function is only usable for MCA527.

Name

MMCA_READ_FROM_EXTENSION, MMCA_READ_FROM_EXTENSION_EX

Description

The function reads a string from the RS232 interface of the extension port.

Declaration

ERROR_FLAG CALLBACK MMCA_READ_FROM_EXTENSION(LPSTR lpszBuffer,
unsigned short unBufferSize);
ERROR_FLAG CALLBACK MMCA_READ_FROM_EXTENSION_EX(unsigned short unOption,

LPSTR lpszBuffer,
unsigned short unBufferSize);

unOption

0 = current data
1 = buffered data
2 = buffered data, unlock buffer
3 = buffered data, lock buffer

lpszBuffer

Pointer to a null-terminated string.

Return value

See MCA_COMM function,

Remarks

This function is only usable for MCA527. See CMD_QUERY_EXTENSION_RS232_RX.

Name

MMCA_QUERY_EXTENSION_RS232_RX

Description

The function reads bytes from the RS232 interface of the extension port.

Declaration

ERROR_FLAG CALLBACK MMCA_QUERY_EXTENSION_RS232_RX(unsigned short unOption,
LPSTR rec_data);

unOption

0 = current data
1 = buffered data
2 = buffered data, unlock buffer
3 = buffered data, lock buffer

rec_data

Pointer to a QUERY_EXTENSION_RS232_RX structure. See CMD_QUERY_EXTENSION_RS232_RX
or mca_comm.h.

Return value

See MCA_COMM function,

Remarks

This function is only usable for MCA527.

29

Advertising
This manual is related to the following products: