Impulse 463E User Manual
Page 97

© Sealevel Systems, Inc.
- 94 -
SeaI/O User Manual
Finding All Devices
This simple code segment issues a find on all devices and then prints out each device
using the print_info function code segment from the previous page.
This code segment allocates space for ten devices and then performs a find for
devices. If the return code is greater than zero, then the function successfully found
the number of devices returned.
Notice that we have to explicitly Free() the allocated buffers, and then delete the class
for proper memory management.
int main(int argc, char* argv[])
{
CCEthernet
*a;
ceth_device_p
b;
ceth_device_p
d;
int
c;
int
i;
a = new CCEthernet();
b = a->Alloc(10);
c=a->find_devices(Sealevel_All_Devices,10,b);
if(c<0)
{
printf("Error
%d\n",c);
goto
end;
}
printf("Found
%d\n",c);
d=b;
for(i=0;i
dump_out(d);
d++;
}
end:
a->Free(b);
delete(a);
return
0;
}
- PCW-5181 (120 pages)
- PCM-4373 (2 pages)
- EPIC-5536 (2 pages)
- EPIC-CV07 (2 pages)
- EPIC-QM57 (2 pages)
- EPIC-QM77 (2 pages)
- VSX-6118-V2 (1 page)
- VSX-6116-V2 (1 page)
- VSX-6115-V2 (1 page)
- VSX-6114-V2 (1 page)
- VDX-6318RD (1 page)
- VDX-6316RD (1 page)
- VDX-6315RD (1 page)
- VDX-6314RD (1 page)
- PCM-5895 Rev. A (2 pages)
- PCM-8120 (2 pages)
- PCM-9562 (3 pages)
- VSX-6127-V2 (1 page)
- PCM-9375 (3 pages)
- GENE-5315W1 Rev. B (2 pages)
- GENE-5315 Rev. A (2 pages)
- VDX-6327RD (1 page)
- VDX-6328RD (1 page)
- VDX-6329RD (1 page)
- VDX-6326RD (1 page)
- PCM-9343 (3 pages)
- GENE-9655 (2 pages)
- PCM-9362 (2 pages)
- GENE-LN05W2 Rev. B (2 pages)
- PCM-9363 (3 pages)
- GENE-TC05W2 (2 pages)
- GENE-CV05W2 (2 pages)
- SBC-210 (1 page)
- GENE-QM57 (2 pages)
- GENE-QM67 (2 pages)
- GENE-QM77 Rev B (2 pages)
- GENE-QM77 Rev A (2 pages)
- GENE-QM87 (1 page)
- EL630-NR (2 pages)
- EL620-C (2 pages)
- SB601-C (2 pages)
- SB600-C (2 pages)
- SB630-CRM (2 pages)
- CL630-CRM (2 pages)
- DL631-C226 (2 pages)