資源簡介
在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?
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人臉數據集
- 下一篇:信號與系統 管致中 答案
評論
共有 條評論