EtherSpaceLink-RG408
EtherSpaceLink family User Manual
E
xa
mple
EtherSpaceLink ESL_unit;
char buffer[1024];
int n;
int EOP;
ESL_unit = EtherSpaceLink_open( "192.168.3.40" );
EtherSpaceLink_set_mode ( ESL_unit, EtherSpaceLink_LINK_mode_normal );
n = EtherSpaceLink_read_packet( ESL_unit, buffer, 1024, &EOP );
switch ( EOP )
{
case EtherSpaceLink_PART_EOP_EEP:
// more of the packet is available
break;
case EtherSpaceLink_EOP:
// complete, good packet
break;
case EtherSpaceLink_EEP:
// packet with error
break;
}
4Links Limited
www.4Links.co.uk
[email protected]
page 65 of 110
T +44 1908 642001; F +44 1908 363463
Milton Keynes MK3 6EB, UK
Suite EU2, Bletchley Park