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

Go to the source code of this file.

Functions

static PIEEE1609_BUFFER get_ieee1609_buffer (NETSIM_ID nDeviceId, NETSIM_ID nInterfaceId, IEEE1609_CHANNEL_TYPE type)
 
PIEEE802_11_MAC_VAR IEEE802_11_MAC (NETSIM_ID ndeviceId, NETSIM_ID nInterfaceId)
 
static IEEE1609_CHANNEL_TYPE get_curr_channel_type (NETSIM_ID nDeviceId, NETSIM_ID nInterfaceId)
 
static IEEE1609_CHANNEL_TYPE get_channel_type_of_packet (NetSim_PACKET *packet)
 
PIEEE802_11_PHY_VAR IEEE802_11_PHY (NETSIM_ID ndeviceId, NETSIM_ID nInterfaceId)
 
void SET_IEEE802_11_MAC (NETSIM_ID ndeviceId, NETSIM_ID nInterfaceId, PIEEE802_11_MAC_VAR mac)
 
void SET_IEEE802_11_PHY (NETSIM_ID ndeviceId, NETSIM_ID nInterfaceId, PIEEE802_11_PHY_VAR phy)
 
bool isIEEE802_11_Configure (NETSIM_ID ndeviceId, NETSIM_ID nInterfaceId)
 
static NETSIM_ID add_to_IEEE1609_queue (NETSIM_ID nDeviceId, NETSIM_ID nInterfaceId, NetSim_PACKET *packet)
 
NETSIM_ID add_to_queue (NETSIM_ID nDeviceId, NETSIM_ID nInterfaceId, NetSim_PACKET *packet)
 
static bool isPacketinIEEE1609Queue (NETSIM_ID nDeviceId, NETSIM_ID nInterfaceId, IEEE1609_CHANNEL_TYPE type)
 
bool isPacketInQueue (NETSIM_ID nDeviceId, NETSIM_ID nInterfaceId)
 
static NetSim_PACKETget_from_IEEE1609_queue (NETSIM_ID nDeviceId, NETSIM_ID nInterfaceId, UINT nPacketRequire, UINT *nPacketCount, IEEE1609_CHANNEL_TYPE type)
 
NetSim_PACKETget_from_queue (NETSIM_ID nDeviceId, NETSIM_ID nInterfaceId, UINT nPacketRequire, UINT *nPacketCount)
 
static void readd_to_IEEE1609_queue (NETSIM_ID nDeviceId, NETSIM_ID nInterfaceId, NetSim_PACKET *packet)
 
void readd_to_queue (NETSIM_ID nDeviceId, NETSIM_ID nInterfaceId, NetSim_PACKET *packet)
 
static bool is_time_in_same_channel (double time, NETSIM_ID nDeviceId, NETSIM_ID nInterfaceId)
 
static void revert_packet (NETSIM_ID nDeviceId, NETSIM_ID nInterfaceId)
 
static void make_idle (NETSIM_ID nDeviceId, NETSIM_ID nInterfaceId)
 
bool validate_processing_time (double time, NETSIM_ID nDeviceId, NETSIM_ID nInterfaceId)
 

Function Documentation

◆ add_to_IEEE1609_queue()

static NETSIM_ID add_to_IEEE1609_queue ( NETSIM_ID  nDeviceId,
NETSIM_ID  nInterfaceId,
NetSim_PACKET packet 
)
static

Definition at line 173 of file IEEE1609_interface.c.

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

◆ add_to_queue()

NETSIM_ID add_to_queue ( NETSIM_ID  nDeviceId,
NETSIM_ID  nInterfaceId,
NetSim_PACKET packet 
)

Definition at line 190 of file IEEE1609_interface.c.

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

◆ get_channel_type_of_packet()

static IEEE1609_CHANNEL_TYPE get_channel_type_of_packet ( NetSim_PACKET packet)
static

Definition at line 84 of file IEEE1609_interface.c.

Here is the caller graph for this function:

◆ get_curr_channel_type()

static IEEE1609_CHANNEL_TYPE get_curr_channel_type ( NETSIM_ID  nDeviceId,
NETSIM_ID  nInterfaceId 
)
static

Definition at line 79 of file IEEE1609_interface.c.

Here is the caller graph for this function:

◆ get_from_IEEE1609_queue()

static NetSim_PACKET * get_from_IEEE1609_queue ( NETSIM_ID  nDeviceId,
NETSIM_ID  nInterfaceId,
UINT  nPacketRequire,
UINT nPacketCount,
IEEE1609_CHANNEL_TYPE  type 
)
static

Definition at line 234 of file IEEE1609_interface.c.

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

◆ get_from_queue()

NetSim_PACKET * get_from_queue ( NETSIM_ID  nDeviceId,
NETSIM_ID  nInterfaceId,
UINT  nPacketRequire,
UINT nPacketCount 
)

Definition at line 271 of file IEEE1609_interface.c.

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

◆ get_ieee1609_buffer()

static PIEEE1609_BUFFER get_ieee1609_buffer ( NETSIM_ID  nDeviceId,
NETSIM_ID  nInterfaceId,
IEEE1609_CHANNEL_TYPE  type 
)
static

Definition at line 29 of file IEEE1609_interface.c.

Here is the caller graph for this function:

◆ IEEE802_11_MAC()

PIEEE802_11_MAC_VAR IEEE802_11_MAC ( NETSIM_ID  ndeviceId,
NETSIM_ID  nInterfaceId 
)

Definition at line 52 of file IEEE1609_interface.c.

Here is the caller graph for this function:

◆ IEEE802_11_PHY()

PIEEE802_11_PHY_VAR IEEE802_11_PHY ( NETSIM_ID  ndeviceId,
NETSIM_ID  nInterfaceId 
)

Definition at line 95 of file IEEE1609_interface.c.

Here is the caller graph for this function:

◆ is_time_in_same_channel()

static bool is_time_in_same_channel ( double  time,
NETSIM_ID  nDeviceId,
NETSIM_ID  nInterfaceId 
)
static

Definition at line 336 of file IEEE1609_interface.c.

Here is the caller graph for this function:

◆ isIEEE802_11_Configure()

bool isIEEE802_11_Configure ( NETSIM_ID  ndeviceId,
NETSIM_ID  nInterfaceId 
)

Definition at line 154 of file IEEE1609_interface.c.

Here is the caller graph for this function:

◆ isPacketinIEEE1609Queue()

static bool isPacketinIEEE1609Queue ( NETSIM_ID  nDeviceId,
NETSIM_ID  nInterfaceId,
IEEE1609_CHANNEL_TYPE  type 
)
static

Definition at line 208 of file IEEE1609_interface.c.

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

◆ isPacketInQueue()

bool isPacketInQueue ( NETSIM_ID  nDeviceId,
NETSIM_ID  nInterfaceId 
)

Definition at line 216 of file IEEE1609_interface.c.

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

◆ make_idle()

static void make_idle ( NETSIM_ID  nDeviceId,
NETSIM_ID  nInterfaceId 
)
static

Definition at line 367 of file IEEE1609_interface.c.

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

◆ readd_to_IEEE1609_queue()

static void readd_to_IEEE1609_queue ( NETSIM_ID  nDeviceId,
NETSIM_ID  nInterfaceId,
NetSim_PACKET packet 
)
static

Definition at line 301 of file IEEE1609_interface.c.

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

◆ readd_to_queue()

void readd_to_queue ( NETSIM_ID  nDeviceId,
NETSIM_ID  nInterfaceId,
NetSim_PACKET packet 
)

Definition at line 317 of file IEEE1609_interface.c.

Here is the call graph for this function:

◆ revert_packet()

static void revert_packet ( NETSIM_ID  nDeviceId,
NETSIM_ID  nInterfaceId 
)
static

Definition at line 345 of file IEEE1609_interface.c.

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

◆ SET_IEEE802_11_MAC()

void SET_IEEE802_11_MAC ( NETSIM_ID  ndeviceId,
NETSIM_ID  nInterfaceId,
PIEEE802_11_MAC_VAR  mac 
)

Definition at line 122 of file IEEE1609_interface.c.

Here is the caller graph for this function:

◆ SET_IEEE802_11_PHY()

void SET_IEEE802_11_PHY ( NETSIM_ID  ndeviceId,
NETSIM_ID  nInterfaceId,
PIEEE802_11_PHY_VAR  phy 
)

Definition at line 138 of file IEEE1609_interface.c.

◆ validate_processing_time()

bool validate_processing_time ( double  time,
NETSIM_ID  nDeviceId,
NETSIM_ID  nInterfaceId 
)

Definition at line 377 of file IEEE1609_interface.c.

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