Function Com_SendMode() Foundation

Controls Write Timeout characteristics of the physical device driver.

Syntax
Com_SendMode( <nComPortNum>, ;
              <nMode>      , ;
              [<nTimeout>]   ;  // Default: 100
            ) -->
Return

Returns .T. if mode can be set successfully or .F. otherwise.

Description

Com_SendMode() controls the Write Timeout processing characteristics of the physical device driver.

Two modes can be specified with <nMode> using #define constants from XBTCOMP.CH:

- WRITE_TIMEOUT

A write request will not return later than the period of time specified by <nTimeout> elapses, even if not all of the data could be send.

<nTimeOut> - timeout value in .01 second units (0 = .01 seconds!)

- INFINITE_WRITE_TIMEOUT

A write request is not completed until all of the data has been sent. <nTimeOut> will be ignored.

Default mode set when calling Com_Open() the first time for a COM port: WRITE_TIMEOUT with a timout value of 100.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.