source: ResearchApps/MAC/DOCMAC/docMac.h

Last change on this file was 1490, checked in by chunter, 14 years ago

potentially fixed relay

  • Property svn:executable set to *
File size: 1.1 KB
Line 
1/*! \file csmaMac.h
2\brief Carrier-sensing random access MAC.
3
4@version 11
5@author Chris Hunter
6
7The csmaMac is a modified ALOHA MAC that
8serves as an example for novel MAC
9development. Nodes transmit whenever
10they have information to transmit, and only
11move on to the next packet once the original
12transmit is acknowledged (ACKed). If no ACK
13is received, a collision is inferred and the
14packet is re-transmitted.
15
16By default, the MAC also implements carrier-
17sensing multiple-access with collision-
18avoidance (CSMA-CA). This functionality is
19built into hardware peripherals in the project
20so very little software state is affected.
21
22In its current state, the project acts as
23a true ethernet MAC-level wireless bridge.
24Any ethernet activity that appears on one
25WARP will be sent to another via the custom
26wireless link.
27*/
28
29void up();
30void middle();
31void right();
32void left();
33int phyRx_goodHeader_callback(Macframe* packet);
34void phyRx_badHeader_callback();
35void emacRx_callback(Xuint32 length, char* payload);
36
37void timer_callback(unsigned char timerType);
38void uartRecv_callback(unsigned char uartByte);
39void wirelessRxDone_callback();
40int main();
41
Note: See TracBrowser for help on using the repository browser.