| EPONImplementationforOMNet++
    0.8Beta
    | 
#include <omnetpp.h>#include <string.h>#include "EtherFrame_m.h"#include "MPCP_codes.h"#include "EPON_messages_m.h"#include "MACAddress.h"#include "MPCPTools.h"#include "IPassiveQueue.h"#include "EPON_mac.h"| Classes | |
| class | ONUMacCtlBase | 
| Defines | |
| #define | GETFRAMEMSG 200 | 
| #define | WAKEUPMSG 201 | 
| #define | STARTTXMSG 100 | 
| #define | TX_ON 1 | 
| Laser is ON and transmitting. | |
| #define | TX_OFF 2 | 
| Laser is OFF - Not our timeslot. | |
| #define | TX_INIT 3 | 
| Pre-MPCP state - Only during initialization. | |
| #define | TX_IDLE 4 | 
| It IS our timeslot but there are not frames to Tx. | |
| #define | TX_SLEEP 5 | 
| It may or may not be our turn BUT ALL Qs ARE EMPTY (no need to schedule startTx) | |
| #define GETFRAMEMSG 200 | 
| #define STARTTXMSG 100 | 
| #define TX_IDLE 4 | 
It IS our timeslot but there are not frames to Tx.
| #define TX_INIT 3 | 
Pre-MPCP state - Only during initialization.
| #define TX_OFF 2 | 
Laser is OFF - Not our timeslot.
| #define TX_ON 1 | 
Laser is ON and transmitting.
| #define TX_SLEEP 5 | 
It may or may not be our turn BUT ALL Qs ARE EMPTY (no need to schedule startTx)
| #define WAKEUPMSG 201 |