Return value: Returned value is zero when port is successfully closed. Serial_close(port) - Closes serial COM port channel Returned value is 1 when port has not been configured. Return value: Returned value is zero when port is successfully configured. Serial_config(port ,baudrate,bits,parity,stopbits,flowcontrol ) - Configures serial COM port channel communication parameters Returned value is 1 when port has not been opened. Return value: Returned value is zero when port is successfully opened. Stopbits - stop bit value, 0 - no stop bit 1 - one stop bit 2 - two stop bitsįlowcontrol - flow control value 0 - no flow control 1 - flow control enabled Parity - parity value, 0 - no parity 1 - odd parity 2 - even parity Serial_open(port,baudrate,bits,parity,stopbits,flowcontrol) - Opens serial COM port channel and sets serial communication parametersīaudrate - baudrate value, e.g. Serial_info(port) - Displays additional info of COM port of computer serial_list() - Displays all available COM ports of computer. Now we will describe serial expression functions that are responsible for actually sending the data. In first part we described buffer expression functions, which are used to prepare the data for serial communication. We will continue with expression functions used for serial communication.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |