EthercatDevice_QECRXXHU.uartSetFormat()

[EthercatDevice_QECRXXHU]

説明

Set the packet format.

Class Modules

class EthercatDevice_QECR11HU5S;
/* MPG + Keypad + LCM + RS232x2, RJ45 power [1, 1] */
class EthercatDevice_QECR00HU5S;
/* MPG + Keypad + LCM + RS232x2, RJ45 power [0, 0] */
class EthercatDevice_QECR11HU9S;
/* MPG + Keypad + LCM + RS232/485x2, RJ45 power [1, 1] */
class EthercatDevice_QECR00HU9S;
/* MPG + Keypad + LCM + RS232/485x2, RJ45 power [0, 0] */

Format

int uartSetFormat(int dev, uint8_t format);

Syntax

EthercatDevice_QECRXXHU slave;
slave.uartSetFormat(0, ECAT_UART_BYTESIZE8 + ECAT_UART_STOPBIT1 + ECAT_UART_NOPARITY);

Parameters

  • int dev: UART Number (0/1).
  • uint8_t format:
    • ECAT_UART_BYTESIZE5
    • ECAT_UART_BYTESIZE6
    • ECAT_UART_BYTESIZE7
    • ECAT_UART_BYTESIZE8
    • ECAT_UART_STOPBIT1
    • ECAT_UART_STOPBIT2
    • ECAT_UART_NOPARITY
    • ECAT_UART_ODDPARITY
    • ECAT_UART_EVENPARITY

Returns

Int: 0 for successful; if the return value is smaller than 0 means an error.


Libraries Reference Home

86Duino のリファレンスのテキストは Arduino レファレンス を編集したもので、 Creative Commons Attribution-ShareAlike 3.0 License下でライセンスされています。リファレンス内のコードサンプルはパブリックドメインとして公開されています。

コメントする

上部へスクロール