First library, its tested and working
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
#define _DEFAULT_SOURCE
|
||||
#include "../src/atom_bridge.h"
|
||||
#include "CmpStd.h"
|
||||
#include "CmpErrors.h"
|
||||
#include "CmpItf.h"
|
||||
#include "CmpAtomModbusDep.h"
|
||||
|
||||
void CDECL CDECL_EXT atmbcall_cext(atmbcall_cext_struct *p)
|
||||
{
|
||||
p->atMbCall_cext = ab_call(
|
||||
p->command,
|
||||
p->handle,
|
||||
p->ipAddress,
|
||||
p->port,
|
||||
p->unitId,
|
||||
p->functionCode,
|
||||
p->startAddress,
|
||||
p->quantity,
|
||||
p->pData,
|
||||
p->dataCapacity,
|
||||
p->pStatus,
|
||||
p->statusCapacity,
|
||||
p->nowMs,
|
||||
p->connectTimeoutMs,
|
||||
p->responseTimeoutMs,
|
||||
p->retryDelayMs);
|
||||
}
|
||||
|
||||
|
||||
#include "../src/atom_mb.c"
|
||||
#include "../src/atom_rtu.c"
|
||||
#include "../src/atom_server.c"
|
||||
#include "../src/atom_bridge.c"
|
||||
Reference in New Issue
Block a user