You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
90 lines
3.1 KiB
90 lines
3.1 KiB
3 months ago
|
using System;
|
||
|
using System.Collections.Generic;
|
||
|
using System.Text;
|
||
|
|
||
|
namespace ICommLayer
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// �����豸״̬�Ľӿ�
|
||
|
/// �����ߣ�Richard.Liu
|
||
|
/// </summary>
|
||
|
public interface IGetDeviceState
|
||
|
{
|
||
|
/// <summary>
|
||
|
///1����λ������λ�������豸��������״̬��Ϣ
|
||
|
///����أ� 0-��1-�л�
|
||
|
///ȷ�ϰ�ť��
|
||
|
///��1�ֽڣ�
|
||
|
///һ���仯��ֵ��ÿȷ��һ�Σ���ֵ�仯һ�Σ��Ա�־һ��
|
||
|
///�µ�ȷ����Ϣ������������0��1�����仯��Ҳ�����ǵ�
|
||
|
///���仯��
|
||
|
///��2�ֽڣ�
|
||
|
///1-��ȷ��
|
||
|
///2-�л�ȷ��
|
||
|
///�����豸��
|
||
|
///��1�� �ڣ��豸״̬
|
||
|
///�Ѷ�����0-����
|
||
|
///1-��������
|
||
|
///2-��������
|
||
|
///3-Ҫ�������ط�����
|
||
|
///4-֪ͨ����ȡ����ǰ����
|
||
|
///����ֵ��ʾ����
|
||
|
/// ����
|
||
|
/// 0-����
|
||
|
/// 1-��������
|
||
|
/// 2-����
|
||
|
/// 3-Ҫ�������ط�����
|
||
|
/// 4-֪ͨ����ȡ����ǰ����
|
||
|
/// ����ֵ��ʾ����
|
||
|
/// ���ͻ���
|
||
|
/// 0-����
|
||
|
/// 1-��������
|
||
|
/// 2-���ɣ�ֻ��PC�·���Ŀ���豸�������㱨���ɣ�
|
||
|
/// ���ϻ�����Ҫ��������״̬
|
||
|
/// ����ֵ��ʾ����
|
||
|
/// ��2��3�ֽڣ� �����ţ�����λ���´�����ʱ��������
|
||
|
/// ��4��5��6��7�ֽ�
|
||
|
/// �Ѷ���������
|
||
|
/// �յ�X���꣨�ع���������
|
||
|
/// ����8�ֽ��Ժ�ֻ�ԶѶ��������壩
|
||
|
/// ��8��9��10��11�ֽ�
|
||
|
/// �յ�Y���꣨�ظ߶ȷ�����
|
||
|
///
|
||
|
/// 2.��λ������λ������������Ϣ
|
||
|
/// �������룺
|
||
|
/// ��1-10�ֽڣ������������δ��������ϵ�10λ��������Ϣ
|
||
|
/// ����һ�Ź����룺
|
||
|
/// ��1-9�ֽڣ� �����������δ��������ϵĺ�9λһ�Ź�������Ϣ
|
||
|
/// һ�Ź�������32λ����ͬƷ��������һ�Ź�������ǰ23λ��ͬ��
|
||
|
/// ����ֻ���ź�9λ���롣ÿ������λ���̿�����������һ�Ź�������������
|
||
|
/// ��18���ֽڣ���λ��һ�ν���������һ�Ź���������Ϣͬʱ��ȡ��
|
||
|
/// ��λ���ɹ���ȡ18���ֽں���18���ֽ�ȫ��д���㣬
|
||
|
/// ��λ��ֻ�м��18���ֽ�ȫ������ʱ�ſ���д���µ�һ�Ź�������Ϣ��
|
||
|
///
|
||
|
/// 3.��λ������λ�������ֳ����ƴ����������ź�
|
||
|
/// ��1�ֽ� ����ָ��
|
||
|
/// 1- �ط���ǰ�豸ָ��
|
||
|
/// 2- �����ĵ�ǰ�豸��ִ��������Ŀ��λ��
|
||
|
/// ��2��3�ֽ� �豸��������ǰ�����豸��������
|
||
|
/// ��4��5�ֽ� �����ţ���Ҫ��Ŀ��λ�õ������ţ�
|
||
|
/// ��6��15�ֽ� �������루��ǰ�����豸�ϵ����̵����룩
|
||
|
/// ��λ���������������������������������䶪ʧ��
|
||
|
/// ��ʱ�����豸��ͣ�����̵���������������������������
|
||
|
/// ��λ���յ������������·��͵�ǰ�豸��ָ�
|
||
|
/// ���豸��������ʱ����λ������������������Ŀ��λ�á�
|
||
|
/// ��λ���յ��������������������ҵ��µ�·�������Ĵ������ŵ�Ŀ��λ�á�
|
||
|
/// ������ָ��Ϊ1ʱ�������ſ���������ֵ��������ָ��Ϊ2ʱ��������������������ֵ��
|
||
|
/// </summary>
|
||
|
/// <param name="DeviceIndex">�豸����</param>
|
||
|
/// <returns>����22���ֽڵ�״̬</returns>
|
||
|
int [] GetDeviceState(int DeviceIndex, int TaskIndex);
|
||
|
string GetStringData(int DeviceIndex, int TaskIndex);
|
||
|
string CommLayerError
|
||
|
{
|
||
|
get;
|
||
|
set;
|
||
|
}
|
||
|
|
||
|
}
|
||
|
}
|