UMX FLIP Installation Guide Page 43

  • Download
  • Add to my manuals
  • Print
  • Page
    / 142
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 42
42
Chapter 4.
MAC Programming
Sora provides a utility library to program a Finite State Machine (FSM). An FSM is commonly
used in the MAC and other protocol implementations. For example, Figure 19 shows a simplified
MAC state-machine of 802.11 that contains three states: carrier sense, transmission (TX) and
reception (RX).
Figure 19. A simplified MAC state machine of 802.11.
4.1 State Machine declaration and
initialization
The SDR driver declares an FSM through SORA_BEGIN_DECLARE_FSM_STATES,
SORA_END_DECLARE_FSM_STATES, and SORA_DECLARE_STATE. After that, the SDR driver
should further declare an FSM type using SORA_DECLARE_FSM_TYPE. An FSM instance can
then be declared for this FSM type. Each state of an FSM is associated with a state handler. At
initialization, the SDR driver should assign these handers to an FSM instance using
SORA_FSM_ADD_HANDLER.
Carrier Sense
Tx
Rx
Channel Free
Tx Pending and
Channel Free
Power
Detected
Tx Done
/
Failed
Rx Done
/
Failed
Page view 42
1 2 ... 38 39 40 41 42 43 44 45 46 47 48 ... 141 142

Comments to this Manuals

No comments