Functions | Variables
queues.c File Reference
#include "config/compiler.h"
#include "include/queues.h"
#include "include/flow_control.h"
#include "interface/wmp_interface.h"
#include "include/queue_core.h"
#include "include/frames.h"
#include "include/task_timing.h"
Include dependency graph for queues.c:

Go to the source code of this file.

Functions

void wmp_queue_free (void)
void wmp_queue_init (int rx_nelems, int tx_nelems, int max_msg_size, int num_ports)
int wmp_queue_rx_get_count (int port)
char * wmp_queue_rx_get_elem_data (int id)
int wmp_queue_rx_get_elem_priority (int id)
int wmp_queue_rx_get_elem_size (int id)
int wmp_queue_rx_get_elem_source (int id)
int wmp_queue_rx_get_len ()
int wmp_queue_rx_get_room (void)
int wmp_queue_rx_get_size ()
int wmp_queue_rx_push_part (longMsg_t *p)
void wmp_queue_rx_set_elem_done (int id)
int wmp_queue_tx_confirm ()
void wmp_queue_tx_drop_elem (int id)
void wmp_queue_tx_drop_next (void)
void wmp_queue_tx_force_sort (int blocking)
int wmp_queue_tx_get_count (void)
int wmp_queue_tx_get_elem_age (int id)
int wmp_queue_tx_get_elem_burst (int id)
int wmp_queue_tx_get_elem_dest (int id)
int wmp_queue_tx_get_elem_port (int id)
int wmp_queue_tx_get_elem_priority (int id)
int wmp_queue_tx_get_elem_rescheduled (int id)
int wmp_queue_tx_get_head_id ()
void wmp_queue_tx_get_last_popped_info (int *age, int *port, int *priority)
int wmp_queue_tx_get_len (void)
int wmp_queue_tx_get_mpm_age (void)
int wmp_queue_tx_get_mpm_dest (void)
int wmp_queue_tx_get_room (void)
int wmp_queue_tx_get_size (void)
int wmp_queue_tx_inspect (void)
int wmp_queue_tx_pop_part (longMsg_t **p)
void wmp_queue_tx_pop_part_done (int id)
int wmp_queue_tx_remove_head ()
int wmp_queue_tx_reschedule ()
void wmpAddDest (unsigned int dest, char id)
void wmpForceBurst (int port)
int wmpGetNumOfElementsInRXQueue (int port)
int wmpGetNumOfElementsInTXQueue (void)
int wmpNonBlockingPop (Msg *p)
unsigned int wmpPop (Msg *p)
int wmpPopData (unsigned int port, char **p, unsigned int *size, unsigned char *src, signed char *priority)
int wmpPopDataCopy (unsigned int port, char *p, unsigned int *size, unsigned char *src, signed char *priority)
void wmpPopDataDone (int id)
int wmpPopDataTimeout (unsigned int port, char **p, unsigned int *size, unsigned char *src, signed char *priority, int to)
int wmpPopDataTimeoutCopy (unsigned int port, char *p, unsigned int *size, unsigned char *src, signed char *priority, int to)
int wmpPush (Msg *p)
int wmpPushData (unsigned int port, char *p, unsigned int size, unsigned int dest, signed char priority)
int wmpTimedPop (Msg *p, int timeout_ms)
int wmpWaitData (unsigned int port, int to)

Variables

queue_t wmp_queue_rx
queue_t wmp_queue_tx

Function Documentation

void wmp_queue_free ( void  )

Definition at line 129 of file queues.c.

void wmp_queue_init ( int  rx_nelems,
int  tx_nelems,
int  max_msg_size,
int  num_ports 
)

Definition at line 200 of file queues.c.

int wmp_queue_rx_get_count ( int  port)

Definition at line 173 of file queues.c.

char* wmp_queue_rx_get_elem_data ( int  id)

Definition at line 112 of file queues.c.

Definition at line 104 of file queues.c.

int wmp_queue_rx_get_elem_size ( int  id)

Definition at line 100 of file queues.c.

Definition at line 108 of file queues.c.

int wmp_queue_rx_get_len ( void  )

Definition at line 50 of file queues.c.

int wmp_queue_rx_get_room ( void  )

Definition at line 158 of file queues.c.

int wmp_queue_rx_get_size ( void  )

Definition at line 47 of file queues.c.

Definition at line 134 of file queues.c.

void wmp_queue_rx_set_elem_done ( int  id)

Definition at line 120 of file queues.c.

int wmp_queue_tx_confirm ( void  )

Definition at line 169 of file queues.c.

void wmp_queue_tx_drop_elem ( int  id)

Definition at line 81 of file queues.c.

void wmp_queue_tx_drop_next ( void  )

Definition at line 150 of file queues.c.

void wmp_queue_tx_force_sort ( int  blocking)

Definition at line 54 of file queues.c.

int wmp_queue_tx_get_count ( void  )

Definition at line 146 of file queues.c.

int wmp_queue_tx_get_elem_age ( int  id)

Definition at line 77 of file queues.c.

int wmp_queue_tx_get_elem_burst ( int  id)

Definition at line 125 of file queues.c.

int wmp_queue_tx_get_elem_dest ( int  id)

Definition at line 93 of file queues.c.

int wmp_queue_tx_get_elem_port ( int  id)

Definition at line 85 of file queues.c.

Definition at line 96 of file queues.c.

Definition at line 116 of file queues.c.

int wmp_queue_tx_get_head_id ( void  )

Definition at line 89 of file queues.c.

void wmp_queue_tx_get_last_popped_info ( int *  age,
int *  port,
int *  priority 
)

Definition at line 176 of file queues.c.

int wmp_queue_tx_get_len ( void  )

Definition at line 62 of file queues.c.

int wmp_queue_tx_get_mpm_age ( void  )

Definition at line 69 of file queues.c.

int wmp_queue_tx_get_mpm_dest ( void  )

Definition at line 73 of file queues.c.

int wmp_queue_tx_get_room ( void  )

Returns the number of free posiitons in the TX queue

Returns:
number of free positions in the TX queue

Definition at line 154 of file queues.c.

int wmp_queue_tx_get_size ( void  )

Definition at line 66 of file queues.c.

int wmp_queue_tx_inspect ( void  )

Definition at line 58 of file queues.c.

Definition at line 138 of file queues.c.

void wmp_queue_tx_pop_part_done ( int  id)

Definition at line 142 of file queues.c.

int wmp_queue_tx_remove_head ( void  )

Remove the less priority message from the TX queue

Parameters:
pthe removed message

Definition at line 162 of file queues.c.

int wmp_queue_tx_reschedule ( void  )

Definition at line 165 of file queues.c.

void wmpAddDest ( unsigned int  dest,
char  id 
)

Definition at line 233 of file queues.c.

void wmpForceBurst ( int  port)

Definition at line 287 of file queues.c.

int wmpGetNumOfElementsInRXQueue ( int  port)

Returns the number of elements in the RX queue

Returns:
number of elements in the RX queue

Definition at line 185 of file queues.c.

Returns the number of elements in the TX queue

Returns:
number of elements in the TX queue

Definition at line 181 of file queues.c.

int wmpNonBlockingPop ( Msg p)

Dequeue a message from the RX Queue if present. If there are not message to dequeue, returns a negative value

Parameters:
pthe message to pop
Returns:
time spent in the queue (age) if dequeued -1 if no message to pop

Definition at line 229 of file queues.c.

unsigned int wmpPop ( Msg p)

Dequeue a message from the RX Queue

Parameters:
pthe message to pop
Returns:
time spent in the queue (age)

Definition at line 207 of file queues.c.

int wmpPopData ( unsigned int  port,
char **  p,
unsigned int *  size,
unsigned char *  src,
signed char *  priority 
)

Definition at line 255 of file queues.c.

int wmpPopDataCopy ( unsigned int  port,
char *  p,
unsigned int *  size,
unsigned char *  src,
signed char *  priority 
)

Definition at line 271 of file queues.c.

void wmpPopDataDone ( int  id)

Definition at line 267 of file queues.c.

int wmpPopDataTimeout ( unsigned int  port,
char **  p,
unsigned int *  size,
unsigned char *  src,
signed char *  priority,
int  to 
)

Definition at line 259 of file queues.c.

int wmpPopDataTimeoutCopy ( unsigned int  port,
char *  p,
unsigned int *  size,
unsigned char *  src,
signed char *  priority,
int  to 
)

Definition at line 279 of file queues.c.

int wmpPush ( Msg p)

Enqueue a message in the TX Queue

Parameters:
pthe message to push
Returns:
1 if success 0 if not (queue full)

Definition at line 189 of file queues.c.

int wmpPushData ( unsigned int  port,
char *  p,
unsigned int  size,
unsigned int  dest,
signed char  priority 
)

Definition at line 237 of file queues.c.

int wmpTimedPop ( Msg p,
int  timeout_ms 
)

Dequeue a message from the RX Queue if already in the queue or enqueued within timeous_ms milliseconds. If there are not message to dequeue, returns a negative value

Parameters:
pthe message to pop
timeout_mspop timeout in milliseconds
Returns:
time spent in the queue (age) if dequeued -1 if timeout expired

Definition at line 217 of file queues.c.

int wmpWaitData ( unsigned int  port,
int  to 
)

Definition at line 263 of file queues.c.


Variable Documentation

Definition at line 44 of file queues.c.

Definition at line 45 of file queues.c.



ros_rt_wmp
Author(s): Danilo Tardioli, dantard@unizar.es
autogenerated on Mon Oct 6 2014 08:27:13