NetSim Source Code Help
Loading...
Searching...
No Matches
IEEE802_11_Mac.c File Reference
#include "main.h"
#include "IEEE802_11.h"
#include "IEEE802_11_MAC_Frame.h"
#include "IEEE802_11_Phy.h"
Include dependency graph for IEEE802_11_Mac.c:

Go to the source code of this file.

Functions

static void fn_NetSim_IEEE802_11_MacInit (bool *isInterfaceUsed)
 
static void forward_to_other_interface (NetSim_PACKET *packet)
 
static void add_to_mac_queue (NetSim_PACKET *packet)
 
void fn_NetSim_IEEE802_11_MacOut ()
 
int fn_NetSim_IEEE802_11_MacIn ()
 
void IEEE802_11_Change_Mac_State (PIEEE802_11_MAC_VAR mac, IEEE802_11_MAC_STATE state)
 
void set_mac_state_after_txend (PIEEE802_11_MAC_VAR mac)
 
void set_mac_state_for_tx (PIEEE802_11_MAC_VAR mac, NetSim_PACKET *p)
 
bool isMacTransmittingState (PIEEE802_11_MAC_VAR mac)
 
bool isMacReceivingState (PIEEE802_11_MAC_VAR mac)
 
bool isMacIdle (PIEEE802_11_MAC_VAR mac)
 
void fn_NetSim_IEEE802_11_SendToPhy ()
 
void fn_NetSim_IEE802_11_MacReInit (NETSIM_ID nDeviceId, NETSIM_ID nInterfaceId)
 
double calculate_nav (NETSIM_ID d, NETSIM_ID i, NetSim_PACKET *packet)
 

Function Documentation

◆ add_to_mac_queue()

static void add_to_mac_queue ( NetSim_PACKET packet)
static

Definition at line 433 of file IEEE802_11_Mac.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ calculate_nav()

double calculate_nav ( NETSIM_ID  d,
NETSIM_ID  i,
NetSim_PACKET packet 
)

Definition at line 479 of file IEEE802_11_Mac.c.

Here is the call graph for this function:

◆ fn_NetSim_IEE802_11_MacReInit()

void fn_NetSim_IEE802_11_MacReInit ( NETSIM_ID  nDeviceId,
NETSIM_ID  nInterfaceId 
)

Definition at line 458 of file IEEE802_11_Mac.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fn_NetSim_IEEE802_11_MacIn()

int fn_NetSim_IEEE802_11_MacIn ( )

Definition at line 98 of file IEEE802_11_Mac.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fn_NetSim_IEEE802_11_MacInit()

static void fn_NetSim_IEEE802_11_MacInit ( bool *  isInterfaceUsed)
static

Definition at line 179 of file IEEE802_11_Mac.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fn_NetSim_IEEE802_11_MacOut()

void fn_NetSim_IEEE802_11_MacOut ( )

Definition at line 34 of file IEEE802_11_Mac.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fn_NetSim_IEEE802_11_SendToPhy()

void fn_NetSim_IEEE802_11_SendToPhy ( )

Definition at line 332 of file IEEE802_11_Mac.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ forward_to_other_interface()

static void forward_to_other_interface ( NetSim_PACKET packet)
static

Definition at line 394 of file IEEE802_11_Mac.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ IEEE802_11_Change_Mac_State()

void IEEE802_11_Change_Mac_State ( PIEEE802_11_MAC_VAR  mac,
IEEE802_11_MAC_STATE  state 
)

Definition at line 240 of file IEEE802_11_Mac.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isMacIdle()

bool isMacIdle ( PIEEE802_11_MAC_VAR  mac)

Definition at line 321 of file IEEE802_11_Mac.c.

◆ isMacReceivingState()

bool isMacReceivingState ( PIEEE802_11_MAC_VAR  mac)

Definition at line 311 of file IEEE802_11_Mac.c.

◆ isMacTransmittingState()

bool isMacTransmittingState ( PIEEE802_11_MAC_VAR  mac)

Definition at line 300 of file IEEE802_11_Mac.c.

Here is the caller graph for this function:

◆ set_mac_state_after_txend()

void set_mac_state_after_txend ( PIEEE802_11_MAC_VAR  mac)

Definition at line 251 of file IEEE802_11_Mac.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_mac_state_for_tx()

void set_mac_state_for_tx ( PIEEE802_11_MAC_VAR  mac,
NetSim_PACKET p 
)

Definition at line 278 of file IEEE802_11_Mac.c.

Here is the call graph for this function:
Here is the caller graph for this function: