资源简介
在https://gitee.com/luutry/resource可以下载,是从官网下载的开发包,积分改为0试试看

代码片段和文件信息
#define WIN32_LEAN_AND_MEAN
#include
#include
#include // Sleep()
#include “RTC4ethimpl.h“
char cpIp[16]; // char pointer for an IP address in decimal dotted notation
char cpNm[16]; // char pointer for a netmask in decimal dotted notation
void handle_network_error(char* cp)
{
int eth_error = eth_status();
if (eth_error != 0)
{
printf(“network error occured while calling %s error = %d\r\n“ cp eth_error);
}
}
int main(int argc char **argv)
{
uint32_t error;
uint32_t eth_error;
uint32_t ip;
// The RTC4eth has a static IP address programmed or has a DHCP server address reservation
ip = convert_string_to_ip(“172.16.48.15“);
// Try to acquire card
// More than one try can be reasonable if it can‘t be ruled out that the RTC4eth is blocked by a previous (lost) connection
// In this case add a second try after a delay of 1000 ms.
// If the card optains its IP address via auto-IP a higher number of attempts might make sense (~ 15 s delay with IP assignment via DHCP)
int i = 0;
int maxTries = 2;
do
{
error = acquire_rtc(ip);
printf(“acquire result = %d\r\n“ error);
Sleep(1000);
} while ((error != 0) && (++i < maxTries));
error = load_correction_file(“cor_1to1.ctb“ 1 1.0 1.0 0.0 0.0 0.0);
printf(“load_correction_file result = %d\r\n“ error);
if (error == 14)
handle_network_error(“load_correction_file“);
error = load_program_file(“RTC4D2.hex“);
printf(“load_program_file result = %d\r\n“ error);
if (error == 14)
handle_network_error(“load_program_file“);
set_start_list(1);
timed_jump_abs(-(1<<15) -(1<<15) 1e6);
timed_jump_abs((1<<15)-1 (1<<15)-1 1e6);
timed_jump_abs(0 0 1e6);
set_end_of_list();
handle_network_error(“set_end_of_list“);
execute_list(1);
unsigned short int busy position;
do {
get_status(&busy &position);
handle_network_error(“get_status“);
} while(busy);
release_rtc(ip);
printf(“\r\n“);
system(“pause“);
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 3214 2017-01-19 22:31 changelog.txt
目录 0 2016-01-12 20:46 Demo Files\
文件 2069 2015-08-07 21:35 Demo Files\RTC4ethDemo.cpp
目录 0 2017-01-18 22:22 DLL\
文件 156672 2016-01-12 17:13 DLL\RTC4ethDLL.dll
文件 671232 2016-03-10 18:24 DLL\RTC4ethDLLx64.dll
文件 75264 2017-01-19 19:48 DLL\RTC4netDll.dll
文件 149504 2017-01-19 19:48 DLL\RTC4netDllx64.dll
目录 0 2016-02-12 23:38 HPGL Converter Program\
文件 16900 1996-12-09 20:04 HPGL Converter Program\Cor_1to1.ctb
文件 559 2002-03-19 18:59 HPGL Converter Program\HPGL Example.PLT
文件 539136 2015-02-06 01:00 HPGL Converter Program\HPGL.exe
文件 1085 2005-10-31 21:58 HPGL Converter Program\HPGL_Readme.txt
文件 653 2017-01-10 16:31 HPGL Converter Program\RTC4.ini
文件 38790 2012-06-11 22:52 HPGL Converter Program\RTC4D2.hex
文件 39900 2012-06-11 22:53 HPGL Converter Program\RTC4D3.hex
文件 156672 2015-02-06 00:39 HPGL Converter Program\RTC4DLL.dll
文件 156672 2016-01-12 17:13 HPGL Converter Program\RTC4ethDLL.dll
文件 92160 2015-12-18 17:52 HPGL Converter Program\RTC4netDll.dll
文件 10585 2000-02-04 19:37 HPGL Converter Program\SimplexOpt.plt
目录 0 2017-01-19 22:25 Import Declarations\
目录 0 2016-01-12 20:46 Import Declarations\Delphi\
文件 25511 2016-12-07 23:46 Import Declarations\Delphi\RTC4ethImport.pas
目录 0 2017-01-19 22:25 Import Declarations\Visual Basic\
目录 0 2017-01-19 22:25 Import Declarations\Visual Basic .NET\
文件 68953 2016-12-07 23:46 Import Declarations\Visual Basic .NET\RTC4ethImport.vb
文件 32721 2016-12-07 23:46 Import Declarations\Visual Basic\RTC4ethImport.bas
目录 0 2017-01-19 22:25 Import Declarations\Visual C#\
文件 123770 2016-12-07 23:46 Import Declarations\Visual C#\RTC4ethWrap.cs
目录 0 2017-01-19 00:21 Import Declarations\Visual C++\
文件 82010 2016-12-08 01:44 Import Declarations\Visual C++\RTC4ethDLL.lib
............此处省略12个文件信息
- 上一篇:sci人脸数据集
- 下一篇:信号与系统 管致中 答案
相关资源
-
AN_BLE-SDKDH-C1_Teli
nk BLE SDK DeveloperHan - LzmaLib
- OPC插件OPC Core Components 2.00 SDK 2.20
- 易语言-海康威视SDK-DEMO
- 美松打印机SDK MsPrintSDK-Demo-DLL-CShare-
- S32K144 和S32K SDK开发入门培训.pdf
- 虚拟摄像头VCam开发SDK
- 整理的ModbusProtocol SDK开发包
- WinCE_6.0_中文SDK(仿真器模拟器)
- silverlight4 SDK
- N76E003开发资料最新SDK参考代码
- rockchip rv1108和rk3288资料,淘宝28买的
- 海康摄像头+web3.0开发包SDK的demo
- 海康SDK delphi demo
- 海康sdk说明书 二次开发参考
- 企业微信JS-SDK调试工具
- 人脸识别开源SDK源码
- NVIDIAOpticalFlowSDK-79c6cee80a2df9a196f20afd6
- delphi百度人脸识别离线SDK demo
- 汉王人脸通sdk v3.0 delphi demo
- 汉王考勤机开发指南HANVON SDK 20141119
- 撸大师死灰复燃SDK,可常驻后台运行
- 精伦电子开发包最新开发包带网页插
- IDCardReader SDK.rar
- 精伦电子idr210 sdk
- 光阵通用高拍仪控件
- oaid_sdk_1.0.23.zip200578
- Nokia SDK 开发模拟器
- x86-sdk25-v89-x86-64 xp框架
- 基于FFMPEG SDK流媒体开发1---解码媒体文
评论
共有 条评论