Changes between Version 17 and Version 18 of CSMAMAC
- Timestamp:
- Feb 8, 2008, 12:18:16 AM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CSMAMAC
v17 v18 152 152 === Accepted Packet from Source === 153 153 154 This state is entered if a higher layer has a packet it needs transmitted. For the reference design, this means a packet has arrived via Ethernet and needs processing. 155 154 156 ---- 155 157 156 158 === Medium State === 157 159 160 The purpose of this state is to check to see if the medium has been idle for a DIFS period. 161 162 {{{ 163 #!c 164 warpmac_carrierSense(-); 165 }}} 166 167 Is called and returns a 1 if the medium is idle (and hence the medium can be contented for) and a 0 if the medium is busy (and hence the node must wait). 168 158 169 ---- 159 170 160 171 === Transmit Packet via PHY === 161 172 173 To transmit a packet over-the-air via the OFDM physical layer, the MAC calls 174 175 {{{ 176 #!c 177 warpmac_sendOfdm(&txBuffer); 178 }}} 179 180 The argument of this function 181 182 183 184 162 185 ---- 163 186 … … 172 195 === Received Packet via PHY === 173 196 197 This state kick-starts the receive states. 174 198 ---- 175 199 176 200 === Checksum === 177 201 202 Either 203 204 {{{ 205 #!c 206 int receiveGoodPacket(-) 207 }}} 208 209 is called in the event of receiving a packet that passes checksum or 210 211 {{{ 212 #!c 213 int receiveGoodPacket(-) 214 }}} 215 216 in the event of receiving a packet that fails checksum. 217 218 219 220 178 221 ---- 179 222