Apps     Components     Interfaces     All Files     Source Tree     source: tos.lib.TinyDB.RadioQueue.nc

Interface: RadioQueue

A RadioQueue sends packets out over the radio.

Implemented by TupleRouterM.td
Author: Sam Madden (madden@cs.berkeley.edu)

Components providing this interface:
tos.lib.TinyDB.TupleRouterM

Components requiring this interface:
tos.lib.TinyDB.DBBufferC

Commands

Commands - Details

enqueue

TinyDBError enqueue(const char *msg, uint16_t size)

Copy the specified bytes into the message queue. Messages are always data (tuple) messages. Messages of more than DATA_LENGTH - sizeof(DbMsgHdr) bytes will be truncated.

Parameters:

msg - The data payload of the message to enqueue

len - The length (in bytes) of the data

Returns: err_MessageSendFailed if the queue is full