资源简介
在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人脸数据集
- 下一篇:信号与系统 管致中 答案
相关资源
- 基于FPGA的俄罗斯方块游戏.pdf
- DA1458x SDK 5.0.4 及PDF资料
- 基于NONOS_SDK动手做个8266毕设小案例,
- CA51F003_SDK_.rar
- RTSP流媒体客户端播放器demo
- 天视通SDK使用
- STM32 PMSM FOC SDK 4.3 Getting Started
- 联发科SDK资料.pdf
- CubismSdkForUnity-4-beta.1.unitypackage
- 2048游戏的WINDOWS SDK实现 面向对象
- 海康威视linux下二次开发
- NIKON D800 SDK 开发包 尼康
- kinect2_SDK_深度图到RGB的映射
- Broadcom SDK
- Windows下 QT 5 调用 大华 SDK 实现摄像头
- visio 2007 SDK
- broadcom的sdk(bcm)
- 百度地图SDK
-
ESP8266_NONOS_SDK-2.2.1_ba
sed_USARTrevised. - dotnet-支付宝Alipay服务端SDK采用NETSta
- 大华摄像头网络sdk开发手册
- ITE6263 schematic-demo program-datasheet-progr
- KEA_LIB.zip
- GenericSDK 5.6.6 Introduction.pdf
- PDF阅读器源码
- Beginning Kinect Programming with Microsoft Ki
- Windows SDK 环境下 OpenGL实现
- Directx9 SDK
- 基于TI官方SDK创建全新CC2640R2F工程并实
- 百度定位demo,能显示经纬度和具体地
评论
共有 条评论