Lines Matching +full:1 +full:p1
29 1 = Cmd / Status (Cmd if OUT, Status if IN)
46 Cmd/Status header: 1ccccPPP [ CCCCCCCC, Params ]...
68 (a) because OSR2.1 has a bug which causes data loss if the peripheral returns
103 // Cmd/Stat: 1ccccPPP CCCCCCCC
122 // These macros build the 1st and 2nd bytes for a data header
129 // These macros build the 1st and 2nd bytes for a command header
139 // 1ccccPPP P1P1P1P1 [ P2P2P2P2P2 ]...
142 // value in P1. See 16650.H for definitions of
145 // 08-0B 3-byte commands: ==== P1 ==== ==== P2 ====
147 // 09 1-param commands Command Code Param
151 // 0C-0D 4-byte commands. P1 = extended cmd and P2,P3 = params
154 // 0E-0F N-byte commands: P1 = num bytes after P1 (ie, TotalLen - 2)
159 #define IOSP_WRITE_UART_REG(n) ((n) & 0x07) // UartReg[ n ] := P1
165 #define IOSP_EXT_CMD 0x09 // P1 = Command code (defined below)
183 // the receive data stream (Parameter = 1 byte sequence number)
197 (*(ppBuf))[1] = (Val); \
206 (*(ppBuf))[1] = (ExtCmd); \
234 // P1 = IOSP_CMD_SET_RX_FLOW
255 // P1 = IOSP_CMD_SET_TX_FLOW
290 // P1 = IOSP_CMD_SET_XON_CHAR
303 // P1 = IOSP_CMD_SET_XOFF_CHAR
324 // P1 = IOSP_CMD_RX_CHECK_REQ
329 // P1 = IOSP_EXT_RX_CHECK_RSP
339 // 1ssssPPP P1P1P1P1 [ P2P2P2P2P2 ]...
342 // has changed value, and the new value is in P1.
348 // 08-0B 3-byte status: ==== P1 ==== ==== P2 ====
350 // 09 1-param responses Response Code Param
354 // 0C-0D 4-byte status. P1 = extended status code and P2,P3 = params
357 // 0E-0F N-byte status: P1 = num bytes after P1 (ie, TotalLen - 2)
366 #define IOSP_STATUS_LSR 0x00 // P1 is new value of LSR register.
377 #define IOSP_STATUS_MSR 0x01 // P1 is new value of MSR register.
397 #define IOSP_STATUS_LSR_DATA 0x08 // P1 is new value of LSR register (same as STATUS_LSR)
402 #define IOSP_EXT_STATUS 0x09 // P1 is status/response code, param in P2.
405 // Response Codes (P1 values) for 3-byte status messages
409 #define IOSP_EXT_STATUS_CHASE_FAIL 1 // P2 = 1: Timed out (stuck due to flow
413 #define IOSP_EXT_STATUS_RX_CHECK_RSP 1 // Reply to RX_CHECK cmd. P2 is sequence number
418 // P1 is Initial MSR value
420 // TxBufferSize = (P2 + 1) * 64
424 #define GET_TX_BUFFER_SIZE(P2) (((P2) + 1) * 64)
433 #define IOSP_EXT4_STATUS 0x0C // Extended status code in P1,