Resource Manager - SETIOV() problem

bridged with qdn.public.neutrino
Post Reply
Polczer Eszter

Resource Manager - SETIOV() problem

Post by Polczer Eszter » Tue Nov 18, 2003 7:27 am

Hi!

I'm writing a very simple resource manager for a digital I/O card. I have to
handle only open, close, read and write messages. I wrote an io_read and an
io_write handler and for other messages I used the default handlers. The
io_write handler works fine, but I have problem with the io_read handler. It
doesn't return with the right value.

What did I do in a wrong way?

.....

_Uint32t buffer;
....
buffer = in32( baseport );
....
SETIOV( ctp->iov, &buffer, sizeof(buffer) );
IO_SET_READ( ctp, sizeof(buffer) );
return(_RESMGR_NPARTS(1) );
.....

Post Reply

Return to “qdn.public.neutrino”