文件名称:ebus.tar
- 所属分类:
- Linux/Unix编程
- 资源属性:
- [Linux] [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 2kb
- 下载次数:
- 0次
- 提 供 者:
- zh***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
程序主要功能:linux 下通过串口控制智能系统,zo-b8l5a 5a八通道双值输出模块。一、 对应文件:ebus_module.tar.gz(包含三个文件ebus.cc、ebus.h、ebus_test.cc)
其中ebus.h是包含class E_bus的定义和声明的头文件;ebus.cc主要是类里面的函数;ebus_test.cc主要是类的使用,完成了循环依次关闭8路输出,打开8路输出的功能。二、 E_bus类的接口说明:打开或者关闭输出口,只需要函数int E_bus::ebus_control(string on_off,int out_n) 其中参数on_off代表打开还是关闭,对应值“on”、“off”。参数out_n代表的操作第几路,对应值 1、2、3、4、5、6、7、8;ebus_control的返回值:如果操作成功返回0,如果失败,返回负值。举例说明,E_bus abc; int c=abc.ebus_control(“off”,1) 如果c=0,说明第一路关闭成功。 -The main function of the program: linux serial control intelligent systems, the the zo-b8l5a 5a eight-channel double the value of output module. The a corresponding files: ebus_module.tar.gz (contains three files ebus.cc the ebus.h ebus_test.cc) which ebus.h header files contain the class E_bus definition statement ebus.cc class inside the a function ebus_test.cc mainly is the use of the class to complete the looping off the 8-channel output, open 8-channel output. Two, E_bus class interface descr iption: Open or close the output port, only need to function int E_bus :: ebus_control (string on_off the int out_n) which parameters on_off represents the open or closed, the corresponding value " on" and " off" . On behalf of the operating parameters out_n few road, the corresponding value of 1, 2, 3, 4, 5, 6, 7, 8 ebus_control return value: If the operation is successful returns 0 if it fails to return a negative. For example, E_bus abc int c = abc.ebus_control (“off”,
其中ebus.h是包含class E_bus的定义和声明的头文件;ebus.cc主要是类里面的函数;ebus_test.cc主要是类的使用,完成了循环依次关闭8路输出,打开8路输出的功能。二、 E_bus类的接口说明:打开或者关闭输出口,只需要函数int E_bus::ebus_control(string on_off,int out_n) 其中参数on_off代表打开还是关闭,对应值“on”、“off”。参数out_n代表的操作第几路,对应值 1、2、3、4、5、6、7、8;ebus_control的返回值:如果操作成功返回0,如果失败,返回负值。举例说明,E_bus abc; int c=abc.ebus_control(“off”,1) 如果c=0,说明第一路关闭成功。 -The main function of the program: linux serial control intelligent systems, the the zo-b8l5a 5a eight-channel double the value of output module. The a corresponding files: ebus_module.tar.gz (contains three files ebus.cc the ebus.h ebus_test.cc) which ebus.h header files contain the class E_bus definition statement ebus.cc class inside the a function ebus_test.cc mainly is the use of the class to complete the looping off the 8-channel output, open 8-channel output. Two, E_bus class interface descr iption: Open or close the output port, only need to function int E_bus :: ebus_control (string on_off the int out_n) which parameters on_off represents the open or closed, the corresponding value " on" and " off" . On behalf of the operating parameters out_n few road, the corresponding value of 1, 2, 3, 4, 5, 6, 7, 8 ebus_control return value: If the operation is successful returns 0 if it fails to return a negative. For example, E_bus abc int c = abc.ebus_control (“off”,
(系统自动生成,下载前可以参看下载内容)
下载文件列表
41695033ebus.tar