提交 fa38078b 编写于 作者: W wujie

docs:Consistency between docs and dts documents

Signed-off-by: Nwujie <1255071198@qq.com>
上级 169ee0e7
......@@ -223,7 +223,7 @@ sendResponse(responseApdu: number[]): void;
### transmit<sup>9+</sup>
transmit(response: number[]): Promise<void>;
transmit(response: number[]): Promise\<void>;
发送APDU数据到对端读卡设备。暂不支持使用,仅做接口声明。
......@@ -241,7 +241,7 @@ transmit(response: number[]): Promise<void>;
| **类型** | **说明** |
| ------- | -------------------------------------- |
| Promise<void> | 表示异步回调完成。 |
| Promise\<void> | 表示异步回调完成。 |
**错误码:**
......@@ -253,7 +253,7 @@ transmit(response: number[]): Promise<void>;
### transmit<sup>9+</sup>
transmit(response: number[], callback: AsyncCallback<void>): void;
transmit(response: number[], callback: AsyncCallback\<void>): void;
发送APDU数据到对端读卡设备。暂不支持使用,仅做接口声明。
......@@ -266,7 +266,7 @@ transmit(response: number[], callback: AsyncCallback<void>): void;
| 参数名 | 类型 | 必填 | 说明 |
| ------- | -------- | ---- | ----------------------- |
| responseApdu | number[] | 是 | 发送到对端读卡设备的符合APDU协议的数据,每个number十六进制表示,范围是0x00~0xFF。 |
| callback | AsyncCallback<void> | 是 | 回调函数void |
| callback | AsyncCallback\<void> | 是 | 回调函数void |
**错误码:**
......
......@@ -570,7 +570,7 @@ openBasicChannel(aid: number[]): Promise\<Channel>
| 错误码ID | 错误信息 |
| -------- | -------------------------------- |
| 3300101 | IllegalStateError, service state exception. |
| 3300101 | IllegalStateError, an attempt is made to use an SE session that has been closed. |
| 3300102 | NoSuchElementError, the AID on the SE is not available or cannot be selected. |
| 3300103 | SecurityError, the calling application cannot be granted access to this AID or the default applet on this session. |
| 3300104 | IOError, there is a communication problem to the reader or the SE. |
......@@ -619,7 +619,7 @@ try {
| 错误码ID | 错误信息 |
| -------- | -------------------------------- |
| 3300101 | IllegalStateError, service state exception. |
| 3300101 | IllegalStateError, an attempt is made to use an SE session that has been closed. |
| 3300102 | NoSuchElementError, the AID on the SE is not available or cannot be selected. |
| 3300103 | SecurityError, the calling application cannot be granted access to this AID or the default applet on this session. |
| 3300104 | IOError, there is a communication problem to the reader or the SE. |
......@@ -675,7 +675,7 @@ openBasicChannel(aid: number[], p2: number): Promise\<Channel>
| 错误码ID | 错误信息 |
| -------- | -------------------------------- |
| 3300101 | IllegalStateError, service state exception. |
| 3300101 | IllegalStateError, an attempt is made to use an SE session that has been closed. |
| 3300102 | NoSuchElementError, the AID on the SE is not available or cannot be selected. |
| 3300103 | SecurityError, the calling application cannot be granted access to this AID or the default applet on this session. |
| 3300104 | IOError, there is a communication problem to the reader or the SE. |
......@@ -726,7 +726,7 @@ openBasicChannel(aid: number[], p2:number, callback: AsyncCallback\<Channel>): v
| 错误码ID | 错误信息 |
| -------- | -------------------------------- |
| 3300101 | IllegalStateError, service state exception. |
| 3300101 | IllegalStateError, an attempt is made to use an SE session that has been closed. |
| 3300102 | NoSuchElementError, the AID on the SE is not available or cannot be selected. |
| 3300103 | SecurityError, the calling application cannot be granted access to this AID or the default applet on this session. |
| 3300104 | IOError, there is a communication problem to the reader or the SE. |
......@@ -782,7 +782,7 @@ openLogicalChannel(aid: number[]): Promise\<Channel>
| 错误码ID | 错误信息 |
| -------- | -------------------------------- |
| 3300101 | IllegalStateError, service state exception. |
| 3300101 | IllegalStateError, an attempt is made to use an SE session that has been closed. |
| 3300102 | NoSuchElementError, the AID on the SE is not available or cannot be selected. |
| 3300103 | SecurityError, the calling application cannot be granted access to this AID or the default applet on this session. |
| 3300104 | IOError, there is a communication problem to the reader or the SE. |
......@@ -831,7 +831,7 @@ try {
| 错误码ID | 错误信息 |
| -------- | -------------------------------- |
| 3300101 | IllegalStateError, service state exception. |
| 3300101 | IllegalStateError, an attempt is made to use an SE session that has been closed. |
| 3300102 | NoSuchElementError, the AID on the SE is not available or cannot be selected. |
| 3300103 | SecurityError, the calling application cannot be granted access to this AID or the default applet on this session. |
| 3300104 | IOError, there is a communication problem to the reader or the SE. |
......@@ -887,7 +887,7 @@ P2通常为0x00。设备应允许P2的任何值,并且应允许以下值: 0x
| 错误码ID | 错误信息 |
| -------- | -------------------------------- |
| 3300101 | IllegalStateError, service state exception. |
| 3300101 | IllegalStateError, an attempt is made to use an SE session that has been closed. |
| 3300102 | NoSuchElementError, the AID on the SE is not available or cannot be selected. |
| 3300103 | SecurityError, the calling application cannot be granted access to this AID or the default applet on this session. |
| 3300104 | IOError, there is a communication problem to the reader or the SE. |
......@@ -947,7 +947,7 @@ P2通常为0x00。设备应允许P2的任何值,并且应允许以下值: 0x
| 错误码ID | 错误信息 |
| -------- | -------------------------------- |
| 3300101 | IllegalStateError, service state exception. |
| 3300101 | IllegalStateError, an attempt is made to use an SE session that has been closed. |
| 3300102 | NoSuchElementError, the AID on the SE is not available or cannot be selected. |
| 3300103 | SecurityError, the calling application cannot be granted access to this AID or the default applet on this session. |
| 3300104 | IOError, there is a communication problem to the reader or the SE. |
......@@ -1176,8 +1176,8 @@ transmit(command: number[]): Promise<number[]>
| 错误码ID | 错误信息 |
| -------- | -------------------------------- |
| 3300101 | IllegalStateError, service state exception. |
| 3300103 | SecurityError, the calling application cannot be granted access to this AID or the default applet on this session. |
| 3300101 | IllegalStateError, an attempt is made to use an SE session or channel that has been closed. |
| 3300103 | SecurityError, the command is filtered by the security policy. |
| 3300104 | IOError, there is a communication problem to the reader or the SE. |
**示例:**
......@@ -1228,8 +1228,8 @@ transmit(command: number[], callback: AsyncCallback<number[]>): void
| 错误码ID | 错误信息 |
| -------- | -------------------------------- |
| 3300101 | IllegalStateError, service state exception. |
| 3300103 | SecurityError, the calling application cannot be granted access to this AID or the default applet on this session. |
| 3300101 | IllegalStateError, an attempt is made to use an SE session or channel that has been closed. |
| 3300103 | SecurityError, the command is filtered by the security policy. |
| 3300104 | IOError, there is a communication problem to the reader or the SE. |
**示例:**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册