Jump to content

ASYNC GETMODEMOUTPUT: Difference between revisions

From EDM2
Ak120 (talk | contribs)
Ak120 (talk | contribs)
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
Returns the modem control output signals.  
{{DISPLAYTITLE:ASYNC_GETMODEMOUTPUT}}
; Category:IOCTL_ASYNC (01h)  
Returns the modem control output signals.
; Function:ASYNC_GETMODEMOUTPUT (66h)  
;Category:IOCTL_ASYNC (01h)
;Function:ASYNC_GETMODEMOUTPUT (66h)


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


==Data Packet Format==
==Data Packet Format==
<pre>
{|class="wikitable"
┌──────────────────────────────────────────────────────┐
!Field||Length||C Datatype
│Field                          Length     C Datatype
|-
├──────────────────────────────────────────────────────┤
|Modem Control Output Status||BYTE||UCHAR
│Modem Control Output Status   BYTE       UCHAR       │
|}
└──────────────────────────────────────────────────────┘
</pre>


;Modem Control Output Status  
;Modem Control Output Status:If a bit has a value of 1, the condition is on. If a bit has a value of 0, the condition is off.
If a bit has a value of 1, the condition is on. If a bit has a value of 0, the condition is off.  
::Bit 0: Data Terminal Ready (DTR)
 
::Bit 1: Request To Send (RTS)
:;Bit 0 ::Data Terminal Ready (DTR)  
::Bits 2-7: Undefined
:;Bit 1 ::Request To Send (RTS)  
::;Bits 2-7 :::Undefined


==Returns==
==Returns==
If the call is made with an invalid Parameter Packet value, a general failure error is reported and valid information is not returned in the Data Packet.  
If the call is made with an invalid Parameter Packet value, a general failure error is reported and valid information is not returned in the Data Packet.


==Remarks==
==Remarks==
If a general failure error is not returned, the physical device driver returns the current modem control output signals of the COM device.  
If a general failure error is not returned, the physical device driver returns the current modem control output signals of the COM device.


[[Category:IOCtl Commands]]
[[Category:IOCtl Function]]
{{DISPLAYTITLE:ASYNC_GETMODEMOUTPUT (66h)}}

Latest revision as of 18:58, 22 October 2021

Returns the modem control output signals.

Category
IOCTL_ASYNC (01h)
Function
ASYNC_GETMODEMOUTPUT (66h)

Parameter Packet Format

None. Packet pointer must be NULL.

Data Packet Format

Field Length C Datatype
Modem Control Output Status BYTE UCHAR
Modem Control Output Status
If a bit has a value of 1, the condition is on. If a bit has a value of 0, the condition is off.
Bit 0: Data Terminal Ready (DTR)
Bit 1: Request To Send (RTS)
Bits 2-7: Undefined

Returns

If the call is made with an invalid Parameter Packet value, a general failure error is reported and valid information is not returned in the Data Packet.

Remarks

If a general failure error is not returned, the physical device driver returns the current modem control output signals of the COM device.