亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? pcl4c.ref

?? C語言通訊程序庫DOS版,支持10個115200波特率的通訊口
?? REF
?? 第 1 頁 / 共 5 頁
字號:
                     if(delta=SioModem(Port,DeltaDCD|DeltaCTS))
                       {status = SioModem(Port,DCD|CTS);
                        /* display DCD status if changed */
                        if(delta&DeltaDCD)
                          {if(status&DCD) c='T';
                           else c='F';
                           printf("DCD=%c\n",c);
                          }
                        /* display CTS status if changed */
                        if(delta&DeltaCTS)
                          {if(status&CTS) c = 'T';
                           else c='F';
                           printf("CTS=%c\n",c);
                          }
                       }


         See Also    SioCTS, SioDCD, SioDSR and SioRI.





        PCL4C Reference Manual                                 Page 24
                                  SioParms



         Function    Sets parity, stop bits, and word length.

           Syntax    int SioParms(Port,ParityCode,StopBitsCode,
                                    WordLengthCode)
                     int Port;           /* Port selected (COM1 - COM4) */
                     int ParityCode;     /* parity code [0,1,2] */
                     int StopBitsCode;   /* stop bits code  [0,1] */
                     int WordLengthCode; /* word length code [0,1,2,3] */

          Remarks    The SioParms function sets the parity, stop bits,  and
                     word length.  If the default parity (none), stop  bits
                     (1),  or  word length (8) is not acceptable, then they
                     can be changed by calling SioParms.  SioParms  can  be
                     called  either  before  or after calling SioReset. See
                     file PCL4C.H.

                                    Value   Description    PCL4C.H Name
                     ParityCode:    *0      no parity      NoParity
                                     1      odd parity     OddParity
                                     3      even parity    EvenParity

                     StopBitsCode:  *0      1 stop bit     OneStopBit
                                     1      2 stop bits    TwoStopBits

                     WordLengthCode: 0      5 data bits    WordLength5
                                     1      6 data bits    WordLength6
                                     2      7 data bits    WordLength7
                                    *3      8 data bits    WordLength8

                     * = Default

          Returns    -4 : No such port. Expect 0 to MaxPort.
                     -7 : Bad parity code selected. Expecting  0 to 2.
                     -8 : Bad stop bits code. Expecting  0 or 1.
                     -9 : Bad word length code. Expecting  0 to 3.

          Example    /* set no parity, 1 stop bit, and 8 bit data for COM1 */
                     SioParms(COM1,NoParity,OneStopBit,WordLength8);

         See Also    SioReset.















        PCL4C Reference Manual                                 Page 25
                                  SioPorts



         Function     To  set  the  number of ports, the 1st DigiBoard port
                     and the DigiBoard status register address.

           Syntax    int SioPorts(NumberPorts,FirstPort,StatusReg)
                     int NumberPorts;     /* total number of ports */
                     int FirstPort;       /* First DigiBoard port */
                     int StatusReg;       /* DigiBoard Status Register */

          Remarks    The  SioPorts function must be called before ANY other
                     serial functions. The purpose of the SioPorts function
                     is to  set  the  total  number  of  ports,  the  first
                     DigiBoard  port  and  the  DigiBoard  status  register
                     address.

                     Once  SioPorts  is called, all COM ports starting with
                     "FirstPort" will be treated as  DigiBoard  ports.  The
                     default  setup is 4 standard PC ports and no DigiBoard
                     ports [ SioPorts(4,4,0) ].

                     The standard DigiBoard status register is 0x140 if you
                     are using an odd IRQ for the DigiBoard, and  0x141  if
                     you  are  using  an even IRQ for the DigiBoard. If you
                     change this address on  your  DigiBoard,  be  sure  to
                     specify the correct value for "StatusReg".

          Returns    -4 : No such port. Expect 0 to 9.
                      0 : No error (sets MaxPort to NumberPorts-1).

          Example    /* Want 2 PC ports & 8 DigiBoard ports (on PC/8) */
                     SioPorts(10,COM3,0x140);

                     /* Want 1 PC port & 4 DigiBoard ports (on PC/4) */
                     SioPorts(5,COM2,0x140);

         See Also    SioUART, SioIRQ.




















        PCL4C Reference Manual                                 Page 26
                                 SioPutc


         Function    Transmit a character over a serial line.

           Syntax    int SioPutc(Port,c)
                     int Port;     /* Port selected (COM1 thru COM4) */
                     char c;       /* character to send */

          Remarks    The SioPutc function transmits one character over  the
                     selected serial line.

                     If  flow  control  has  been enabled, then SioPutc may
                     return a -1 (time out) if the number of tics specified
                     in the SioFlow function was exceeded waiting  for  the
                     modem  to raise CTS.

                     Refer  to  the  User's Manual for a discussion of flow
                     control.

                     If  transmitter  interrupts  are  enabled  (there  are
                     separate  versions  of  the  library  for  transmitter
                     interrupts  enabled),  then  the byte is placed in the
                     transmit buffer, awaiting transmission  by  the  PCL4C
                     interrupt service routine.

          Returns    -2 : Port not enabled. Call SioReset first.
                     -4 : No such port. Expect 0 to MaxPort.
                     -1 : Timed out waiting for CTS (flow control enabled)

          Example    char crc;
                     char buffer[128];
                     ...
                     /* transmit 128 byte buffer + CRC */
                     crc = 0;
                     for(i=0;i<128;i++)
                       {crc = crcupdate( buffer[i], crc);
                        SioPutc(Port, buffer[i]);
                       }
                     SioPutc(crc);

         See Also    SioGetc and SioFlow.

















        PCL4C Reference Manual                                 Page 27
                                  SioRead



         Function    Reads any UART register.

           Syntax    int SioRead(Port,Reg)
                     int Port;     /* Port selected (COM1 thru COM4) */
                     int Reg;      /* UART register (0 to 7) */

          Remarks    The  SioReset  function directly reads the contents of
                     any of the 7 UART registers. This function  is  useful
                     when  debugging  application programs, and as a method
                     for verifying UART contents. Refer to  the  PCL  Users
                     Manual for a discussion of the 7 UART registers.

                     The line status register (register 5) can also be read
                     with SioLine while the modem status register (register
                     6) can also be read with SioModem.

                     Refer  to  the PCL4C User's Manual for a discussion of
                     the UART registers.

         Returns      -3 : No buffer available. Call SioRxBuf first.
                      -4 : No such port. Expect 0 to MaxPort.

          Example    int Reg;  /* UART register */
                     int Contents; /* contents of UART */
                     /* print contents of 7 UART registers */
                     for(Reg=0;Reg<7;Reg++)
                        {Contents = SioRead(Port,Reg);
                         printf("COM%d:  UART Register %d = %d\n",
                           1+Port,Reg,Contents);
                        }

         See Also    SioLine and SioModem.























        PCL4C Reference Manual                                 Page 28
                                  SioReset



         Function    Initialize a serial port for processing.

           Syntax    int SioReset(Port,BaudCode)
                     int Port;     /* Port selected (COM1 thru COM4) */
                     int BaudCode; /* baud code or -1 */

          Remarks    The SioReset function initializes the selected  serial
                     port.  SioReset should be called after calling SioParm
                     and  SioRxBuf  but  before  making  any other calls to
                     PCL4C.  SioReset uses the parity, stop bits, and  word
                     length  value  previously  set  if SioParm was called,
                     otherwise the default values (see SioParm) are used.

                     Recall that COM1 and COM3  share  the  same  interrupt
                     vector  and  therefore  cannot operate simultaneously.
                     Similiarly,   COM2    and    COM4    cannot    operate
                     simultaneously. Any other combination of two ports can
                     be used.

                     By specifing NORESET (-1) for the baud rate code,  the
                     port will NOT be reset.  This is used to "take over" a
                     port  from a host communications program that allows a
                     "DOS gateway".  External protocols can be  implemented
                     this  way.   See  SioBaud  for a list of the baud rate
                     codes, or see "PCL4C.H".

         Returns      -3 : No buffer available. Call SioRxBuf first.
                      -4 : No such port. Expect 0 to MaxPort.
                     -11 : Bad baud rate code selected. Expecting  0 to 9.
                     -13 : UART  undefined.   SioUART(Port,0)  was  called
                           previously.
                     -14 : Bad or missing UART.  You may not have hardware
                           present.
                     -15 : Port already enabled.  SioReset has already been
                           called.
                     -16 : Interrupt already in use.

          Example    char Buffer[128];
                     int rc;
                     ...
                     SioRxBuf(COM1,Buffer,Size128);
                     rc = SioReset(Com1,Baud38400);
                     if(rc==0) puts("RESET ok");
                     else if(rc<0) SioError(rc);
                     else
                       {if(rc&OverrunError) puts("Overrun Error");
                        if(rc&ParityError) puts("Parity Error");
                        if(rc&FramingError) puts("Framing Error");
                        if(rc&BreakDetected) puts("Break Detected");
                       }

         See Also    SioBaud, SioParms, SioRxBuf, SioDone, and SioUART.



        PCL4C Reference Manual                                 Page 29
                                  SioRI



         Function    Reads the Ring Indicator (RI) modem status bit.

           Syntax    int SioRI(Port)
                     int Port;     /* Port selected (COM1 thru COM4) */

          Remarks    The SioRI function is used to read the Ring  Indicator
                     (RI) modem status bit. Also see SioModem.

          Returns    -2 : Port not enabled. Call SioReset first.
                     -4 : No such port.  Expect 0 to MaxPort.
                      0 : RI is clear.
                     >0 : RI is set (RING has occurred).

          Example    /* check for Ring */
                     if(SioRI(Port))
                       {puts("RING ");
                        /* process RING */
                        ...
                       }

         See Also    SioDSR, SioCTS, SioDCD, and SioModem.


































        PCL4C Reference Manual                                 Page 30
                                  SioRTS



         Function    Sets, clears, or reads the Request to Send (RTS) line.

           Syntax    int SioRTS(Port,Cmd)
                     int Port;     /* COM1 to COM4 */
                     char Cmd;     /* RTS command (SET, CLEAR, or READ) */

          Remarks    The SioRTS function controls the Request to Send  (RTS
                     bit  in  the  modem control register.

                     The  RTS  line is used by some error correcting modems
                     to implement hardware flow control.  RTS is dropped by
                     the computer to signal the modem not to send data, and
                     is raised to signal the modem to continue.

                     Refer to the User's Manual for a  discussion  of  flow
                     control.

                     Commands  (defined in PCL4C.H) are:

                     SET_LINE ('S')   -- set RTS (ON)
                     CLEAR_LINE ('C') -- clear RTS (OFF)
                     READ_LINE ('R')  -- read RTS

          Returns    -2 : Port not enabled. Call SioReset first.
                     -4 : No such port. Expect 0 to MaxPort.
                     -5 : Command is not one of 'S', 'C', or 'R'.
                      0 : RTS is OFF (READ_LINE Command).
                     >0 : RTS is ON  (READ_LINE Command).

          Example    /* turn off RTS for modem */
                     SioRTS(Port,CLEAR);

         See Also    SioFlow and SioDTR.






















        PCL4C Reference Manual                                 Page 31
                                  SioRxBuf



         Function    Sets up receive buffers.

           Syntax    int SioRxBuf(Port,Buffer,SizeCode)
                     int Port;     /* Port selected (COM1 thru COM4) */
                     char *Buffer  /* Receive buffer */
                     int SizeCode; /* Buffer size code */

          Remarks    The SioRxBuf function passes the address and  size  of
                     the  receive  buffer  to  PCL4C.   Recall  that  PCL4C
                     requires  a  receive   buffer   for   each   port   in
                     simultaneous  operation  since the receive function is
                     interrupt  driven.  It  must  be  called  before   any
                     incoming  characters can be received. SioRxBuf must be
                     called before SioReset.  Buffer size codes are  listed
                     in "PCL4C.H".

                     Size Code       Buffer Size    PCL4C.H Name
                        0              8 bytes        Size8
                        1             16 bytes        Size16
                        2             32 bytes        Size32
                        3             64 bytes        Size64
                        4            128 bytes        Size128
                        5            256 bytes        Size256
                        6            512 bytes        Size512

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成av人片一区二区| 亚洲日穴在线视频| 亚洲卡通动漫在线| 日本欧美久久久久免费播放网| 成人爱爱电影网址| 欧美草草影院在线视频| 亚洲国产视频一区二区| 看电影不卡的网站| 国产高清在线观看免费不卡| 国产精品88av| 成人app下载| 久久综合久色欧美综合狠狠| 亚洲电影第三页| 成人app网站| 久久精品免视看| 九一九一国产精品| 91精品国产综合久久精品| 一区二区三区日韩在线观看| 欧美精品一区男女天堂| 国内成人精品2018免费看| 91久久一区二区| 国产精品毛片大码女人| 国模无码大尺度一区二区三区| 欧美人妇做爰xxxⅹ性高电影| 亚洲欧洲一区二区三区| 福利一区二区在线| 久久影视一区二区| 精品亚洲免费视频| 亚洲精品日韩专区silk| 成人夜色视频网站在线观看| 久久综合色婷婷| 老司机精品视频在线| 日韩一区二区在线播放| 日韩在线a电影| 欧美剧在线免费观看网站 | 9i在线看片成人免费| 久久精品男人的天堂| 国产一区三区三区| 久久五月婷婷丁香社区| 国内精品伊人久久久久av一坑| 欧美一级电影网站| 麻豆国产精品777777在线| 欧美一级二级三级乱码| 久久精品国产99国产精品| 一区二区三区视频在线看| 国产一区二区三区综合| 日韩欧美激情在线| 精油按摩中文字幕久久| 久久综合精品国产一区二区三区| 精品一区二区三区蜜桃| 久久久精品一品道一区| 国v精品久久久网| 中文字幕一区二区三区不卡在线| www.综合网.com| 亚洲乱码中文字幕综合| 色综合久久久久久久久久久| 亚洲综合区在线| 7777精品久久久大香线蕉| 日本少妇一区二区| 久久毛片高清国产| av高清久久久| 一区二区三区在线播放| 欧美女孩性生活视频| 日本成人中文字幕在线视频| 精品国产欧美一区二区| 粉嫩欧美一区二区三区高清影视| 国产精品网曝门| 91福利国产精品| 日韩综合一区二区| 久久综合网色—综合色88| 国产成人99久久亚洲综合精品| 国产精品高清亚洲| 精品视频免费在线| 精品亚洲欧美一区| 中文字幕一区二区三| 欧美日韩综合色| 久久99久久99小草精品免视看| 国产亚洲制服色| 色八戒一区二区三区| 日韩二区三区四区| 欧美激情一区二区三区不卡| 色老头久久综合| 麻豆国产精品视频| 国产精品成人免费| 在线综合视频播放| 成人性生交大片免费看视频在线| 亚洲综合图片区| 久久亚洲春色中文字幕久久久| 色综合中文字幕国产 | 一本大道av一区二区在线播放| 性做久久久久久| 国产亚洲精品福利| 欧美三级视频在线| 国产精品18久久久久久久久| 亚洲色图欧洲色图| 欧美大胆人体bbbb| 91偷拍与自偷拍精品| 美女爽到高潮91| 中文字幕一区在线观看视频| 欧美视频一区在线观看| 国产乱人伦偷精品视频不卡| 亚洲综合成人网| 久久蜜臀中文字幕| 欧美日韩国产综合草草| 国产精品亚洲一区二区三区在线| 亚洲一区在线观看视频| 日韩精彩视频在线观看| 国产日韩精品一区二区三区在线| 欧美日韩一区成人| 成人高清在线视频| 狠狠色丁香久久婷婷综合丁香| 亚洲综合激情网| 国产精品三级视频| 欧美zozo另类异族| 欧美日韩午夜影院| av不卡一区二区三区| 狠狠色丁香久久婷婷综合丁香| 亚洲国产精品久久一线不卡| 中文字幕不卡一区| 精品国产一区二区亚洲人成毛片 | 成人激情小说网站| 麻豆极品一区二区三区| 香蕉久久一区二区不卡无毒影院| 国产精品污污网站在线观看| 精品久久久久av影院| 欧美精品aⅴ在线视频| 91美女在线视频| 成人午夜av电影| 国产精品一区免费在线观看| 秋霞午夜av一区二区三区| 亚洲国产乱码最新视频| 成人免费在线视频观看| 国产欧美日韩卡一| 日韩一级免费一区| 亚洲一区二区三区四区五区中文 | 人人狠狠综合久久亚洲| 亚洲一区二区三区免费视频| 亚洲欧美精品午睡沙发| 国产亚洲成aⅴ人片在线观看| 日韩欧美在线1卡| 欧美日韩国产综合久久 | 不卡视频在线观看| 国产精品一区二区在线看| 久久草av在线| 麻豆精品视频在线| 日韩电影免费在线看| 午夜国产精品一区| 亚洲国产精品尤物yw在线观看| 亚洲黄色免费电影| 亚洲欧美色综合| 亚洲男人电影天堂| 尤物视频一区二区| 亚洲免费av网站| 亚洲黄色性网站| 一区二区久久久久久| 亚洲综合色视频| 五月天欧美精品| 日韩在线一区二区三区| 日韩电影一区二区三区四区| 日韩黄色免费电影| 蜜桃久久精品一区二区| 久久精品999| 国产一区二区在线影院| 国产精品自拍一区| 成人午夜激情在线| 波多野结衣一区二区三区 | 美女视频黄频大全不卡视频在线播放| 日韩av电影一区| 久久精品国产精品亚洲综合| 激情久久五月天| 国产福利不卡视频| 9人人澡人人爽人人精品| 色综合激情五月| 欧美日本国产视频| 亚洲风情在线资源站| 首页综合国产亚洲丝袜| 蜜乳av一区二区| 国产一区二区久久| 成人动漫视频在线| 在线欧美日韩精品| 6080国产精品一区二区| 日韩精品一区二区三区三区免费| 久久综合九色综合97婷婷| 国产精品久久久久影院老司| 一区二区欧美国产| 日本免费在线视频不卡一不卡二| 精东粉嫩av免费一区二区三区| 高清beeg欧美| 欧美在线一二三四区| 日韩视频123| 国产精品区一区二区三| 一区二区三区四区五区视频在线观看| 午夜精品久久久| 国产福利91精品一区二区三区| 色狠狠一区二区| 精品少妇一区二区三区在线播放 | 久久久久久免费网| 亚洲私人黄色宅男| 日韩制服丝袜av| www.亚洲精品|