A bus is a way to connect devices. More...
#include <bus.h>
Classes | |
struct | Entry |
Public Member Functions | |
void | add (Device *dev, ReceiveFunction func) |
bool | send (M &msg, bool earlyout=false) |
Send message LIFO. | |
bool | send_fifo (M &msg) |
Send message in FIFO order. | |
bool | send_rr (M &msg, unsigned &start) |
Send message first hit round robin and return the number of the next one that accepted the message. | |
unsigned | count () |
Return the number of entries in the list. | |
void | debug_dump () |
Debugging output. | |
DBus () | |
Default constructor. |
A bus is a way to connect devices.
unsigned DBus< M >::count | ( | ) | [inline] |
Return the number of entries in the list.
void DBus< M >::debug_dump | ( | ) | [inline] |
Debugging output.
bool DBus< M >::send | ( | M & | msg, | |
bool | earlyout = false | |||
) | [inline] |
Send message LIFO.
bool DBus< M >::send_fifo | ( | M & | msg | ) | [inline] |
Send message in FIFO order.
bool DBus< M >::send_rr | ( | M & | msg, | |
unsigned & | start | |||
) | [inline] |
Send message first hit round robin and return the number of the next one that accepted the message.