Nuclues Net Buffer



I have an wireless network driver for Nuclues. I need to know the
usage of MEM_Buffer_Dequeue & MEM_Buffer_Enqueue usage. The driver
works fine for few 40 iteration(ping). Then i get an Memory access
violation in the recieve function

When i say transmit i dequeue an net buffer from free list.[ pNetBuf=
MEM_Buffer_Dequeue(&MEM_Buffer_Freelist)]
After transmit is done in my transmit done call back i call
[ MEM_Buffer_Enqueue( &MEM_Buffer_Freelist, pNetBuf) ]

in the recieve i call MEM_Buffer_Enqueue (&MEM_Buffer_List, pNetBuf)
pNetBuf is the netbuffer recieved. & notify the OS using
NU_Set_Events(&Buffers_Available, (UNSIGNED)2,NU_OR) after recieve is
DONE!!!!

I have doubt in the flow. Is this a correct method of handling the
buffer and freelist. Is there any better way to do the transmit &
recieve.

Any suggestion is appreciated.
Thanks in advance

.



Relevant Pages

  • Re: OT AD: For the CB Radio Pipe Smokers :)
    ... gonz wrote: ... > That 19dx is a surprisingly good radio, both transmit and recieve. ...
    (alt.smokers.pipes)
  • Re: Ultrasonic transducer help
    ... wastewater (i.e sewage) if you really want to ... which should help a bit with the recieve. ... the transmit, so near zero velocity detection will be impossible. ... also trying to read up on transducer design to get a good recieve ...
    (sci.electronics.design)
  • Re: Sending data with a GP340.
    ... try the batlabs site ... > send and recieve data, eg picking up from the Disc so the audio shaping ... > to transmit? ...
    (uk.radio.amateur)
  • Re: OT AD: For the CB Radio Pipe Smokers :)
    ... That 19dx is a surprisingly good radio, both transmit and recieve. ... Prev by Date: ...
    (alt.smokers.pipes)