Jump to content

ASYNC SETBAUDRATE: Difference between revisions

From EDM2
Created page with "This function sets the bit rate. ; Category: IOCTL_ASYNC (01h) ; Function: ASYNC_SETBAUDRATE (41h) ==Parameter Packet Format== Field Length C Datatype Bit R..."
 
Ak120 (talk | contribs)
mNo edit summary
Line 1: Line 1:
This function sets the bit rate.  
This function sets the bit rate.
 
; Category: IOCTL_ASYNC (01h)
; Category: IOCTL_ASYNC (01h)  
; Function: ASYNC_SETBAUDRATE (41h)
 
; Function: ASYNC_SETBAUDRATE (41h)  


==Parameter Packet Format==
==Parameter Packet Format==
Line 10: Line 8:


==Data Packet Format==
==Data Packet Format==
None. Packet pointer must be NULL.  
None. Packet pointer must be NULL.


==Returns==
==Returns==
If the call is made with invalid Parameter Packet values or an invalid Data Packet pointer, a general failure error is reported.  
If the call is made with invalid Parameter Packet values or an invalid Data Packet pointer, a general failure error is reported.


==Remarks==
==Remarks==
If a general failure error is not returned, the physical device driver performs the action described in the Bit Rate field. An OPEN request packet does not cause the physical device driver to change the bit rate from its previous value. The initial value is 1200 bps.
If a general failure error is not returned, the physical device driver performs the action described in the Bit Rate field. An OPEN request packet does not cause the physical device driver to change the bit rate from its previous value. The initial value is 1200 bps.


The COM device hardware determines which bit rates can be supported on a given system. The range of bit rates supported by Function 41h is 2 bps to 19200 bps for COM ports on conventional serial devices. For COM ports on enhanced serial devices, the range is 10 bps to 57600 bps. A call with a value beyond this range fails with the ERROR_INVALID_PARAMETER return code.  
The COM device hardware determines which bit rates can be supported on a given system. The range of bit rates supported by Function 41h is 2 bps to 19200 bps for COM ports on conventional serial devices. For COM ports on enhanced serial devices, the range is 10 bps to 57600 bps. A call with a value beyond this range fails with the ERROR_INVALID_PARAMETER return code.


[[Category:DevHlps]]
[[Category:IOCtl Commands]]

Revision as of 00:44, 13 October 2019

This function sets the bit rate.

Category
IOCTL_ASYNC (01h)
Function
ASYNC_SETBAUDRATE (41h)

Parameter Packet Format

Field        Length     C Datatype
Bit Rate     WORD       USHORT

Data Packet Format

None. Packet pointer must be NULL.

Returns

If the call is made with invalid Parameter Packet values or an invalid Data Packet pointer, a general failure error is reported.

Remarks

If a general failure error is not returned, the physical device driver performs the action described in the Bit Rate field. An OPEN request packet does not cause the physical device driver to change the bit rate from its previous value. The initial value is 1200 bps.

The COM device hardware determines which bit rates can be supported on a given system. The range of bit rates supported by Function 41h is 2 bps to 19200 bps for COM ports on conventional serial devices. For COM ports on enhanced serial devices, the range is 10 bps to 57600 bps. A call with a value beyond this range fails with the ERROR_INVALID_PARAMETER return code.