Dominik Honnef

CH340

Last modified:
by

* CH341相关的命令帧 * #define DEF_VEN_DEBUG_READ 0X95 * Read two sets of registers * #define DEF_VEN_DEBUG_WRITE 0X9A * Write two sets of registers * #define DEF_VEN_UART_INIT 0XA1 * Initialize serial port * #define DEF_VEN_UART_M_OUT 0XA4 * Set MODEM signal output * #define DEF_VEN_BUF_CLEAR 0XB2 * Clear unfinished data * #define DEF_VEN_I2C_CMD_X 0X54 * Issue the I2C interface command and execute it immediately * #define DEF_VEN_DELAY_MS 0X5E * Delay the specified time in units of milliseconds * #define DEF_VEN_GET_VER 0X5F * Get chip version *

* 类请求 * / 3.1 Requests—Abstract Control Model #define DEF_SEND_ENCAPSULATED_COMMAND 0x00 #define DEF_GET_ENCAPSULATED_RESPONSE 0x01 #define DEF_SET_COMM_FEATURE 0x02 #define DEF_GET_COMM_FEATURE 0x03 #define DEF_CLEAR_COMM_FEATURE 0x04 #define DEF_SET_LINE_CODING 0x20 / Configures DTE rate, stop-bits, parity, and number-of-character #define DEF_GET_LINE_CODING 0x21 / This request allows the host to find out the currently configured line coding. //#define DEF_SET_CTL_LINE_STE 0X22 / This request generates RS-232/V.24 style control signals. #define DEF_SET_CONTROL_LINE_STATE 0x22 #define DEF_SEND_BREAK 0x23

// 3.2 Notifications—Abstract Control Model #define DEF_NETWORK_CONNECTION 0x00 #define DEF_RESPONSE_AVAILABLE 0x01 #define DEF_SERIAL_STATE 0x20