Casio IT-2000W User Manual

Page 132

Advertising
background image

132

TransmitCommChar

int TransmitCommChar(idComDev, chTransmit)

int idComDev;

/* Communication device */

char chTransmit;

/* Character to be transmitted */

The TransmitCommChar function places the specified character at the top of the specified

transmission queue.

< Parameter >

idComDev

: Specifies the communication device to which characters are transmitted.

The OpenComm function returns this value.

ChTransmit

: Specifies the characters to be transmitted.

< Return value >

Returns zero if the function is terminated normally. If the character could not be transmitted,

it returns a value less than zero.

Note:

If the device is not transmitting a character, the TransmitCommChar function cannot be called

repeatedly. If a character has been placed in the communication queue with the TransmitCommChar

function, that character must be transmitted so that the function can be called again. If the previous

character has not been transmitted yet, this function returns an error value.

Note on IrDA :

Data transmission will take place only after the transmitted characters have been passed from the

transmission queue to the IrDA driver. The specified characters will be transmitted after the

remaining data in the IrDA driver has been transmitted. The TransmitCommChar function will pass

the characters to the IrDA driver preceding the data in the transmission queue.

Advertising