schreef in berichtnieuws
1193390099.892815.42420.DeleteThis@y42g2000hsy.googlegroups.com...
<snip>
> Does anyone know of some source code for easy, direct access
> to the ethernet card? Without interrupts? Polling.
There is none I know of. Packet-driver software is tailored to specific
hardware. If you would want to "poll" that card you would need software
again tailored to that specific hardware. And as your request is quite
un-common probably noone has taken the time to write and publish such code.
But maybe you could simply use such packet-driver software and make sure
that the time spend in the interrupt (when receiving a packet) is as short
as you can get it. For example, by simply letting the driver-software store
the packet-data into a buffer, and than set a flag that the buffer is full.
Than you can poll that flag any way you like.
> Do you think it's impossible to achieve?
The "no interrupt" part ? Not impossible perhaps, just not feasible (you
would (probably) need to disassemble the cards packet-driver to know how to
address the hardware, and than write your own driver).
> We do not have very much RAM left either.
I don't know what "not very much" means, but a file-transfer program that
relies on a packet-driver can be smaller than 5 KByte (inclusive the used
packet-buffer). It won't be fast, but will definitily work.
Regards,
Rudy Wieser