Hi list.

My app has a BigQueue variable that I'd like to share between modules.
Basically, my app has one module which receives data over radio and
stores it in the queue, and another module which (at a later stage)
takes data from the queue and sends it over radio.

To do this, it looks like I need to:

1) Create an interface file (eg: MyBigQueue.nc) that lists the
functions I want to do on the BigQueue (empty, enqueue, dequeue, etc).

2) Create a new private & public module (eg: MyBigQueueC.nc and
MyBigQueueP.nc), that wrap a private BigQueue of my specified type and
size, and provide and implements the MyBigQueue interface.

3) Wire MyBigQueueC (through the MyBigQueue interface) to the modules
that want to use the shared BigQueue.

This seems like a awful lot of work.

Is this really necessary or is there a simpler way to do this?

David.
_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to