1
2
3
4
5
6
7
8
9
10
11
12
13
14
| package ng.devices;
|
| public interface IoBlock {
| //´ÓÊý¾Ý¿éÖ¸¶¨µØÖ·¶ÁÈ¡count¸ö×Ö½ÚµÄÊý¾Ý
| public String read(int Address,int count,byte[] buffer,int offset,byte command);
| //ÏòÊý¾Ý¿éÖ¸¶¨µØÖ·ÐÒécount¸ö×Ö½ÚµÄÊý¾Ý
| public String write(int Address,int count,byte[] buffer,int offset);
| //Êý¾Ý¿éÊÇ·ñ¿ÉÓÃ(δÁ¬½Ó½«²»¿ÉÓÃ)
| public boolean IsEnable();
| //Á¬½ÓÊý¾Ý¿é
| public void connect();
| //¶Ï¿ªÊý¾Ý¿é
| public void close();
| }
|
|