gPTP Documentation
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
windows_hal.hpp File Reference
#include <minwindef.h>
#include <IPCListener.hpp>
#include "avbts_osnet.hpp"
#include "avbts_oslock.hpp"
#include "avbts_oscondition.hpp"
#include "avbts_ostimerq.hpp"
#include "avbts_ostimer.hpp"
#include "avbts_osthread.hpp"
#include "packet.hpp"
#include "ieee1588.hpp"
#include "iphlpapi.h"
#include "ipcdef.hpp"
#include "tsc.hpp"
#include "avbts_osipc.hpp"
#include <ntddndis.h>
#include <map>
#include <list>
Include dependency graph for windows_hal.hpp:

Go to the source code of this file.

Classes

class  WindowsPCAPNetworkInterface
 
class  WindowsPCAPNetworkInterfaceFactory
 
class  WindowsLock
 
class  WindowsLockFactory
 
class  WindowsCondition
 
class  WindowsConditionFactory
 
struct  WindowsTimerQueueHandlerArg
 
struct  TimerQueue_t
 
class  WindowsTimerQueue
 
class  WindowsTimerQueueFactory
 
class  WindowsTimer
 
class  WindowsTimerFactory
 
struct  OSThreadArg
 
class  WindowsThread
 
class  WindowsThreadFactory
 
class  WindowsTimestamper
 
class  WindowsNamedPipeIPC
 

Macros

#define NETCLOCK_HZ_OTHER   1056000000
 
#define NETCLOCK_HZ_NANO   1000000000
 
#define ONE_WAY_PHY_DELAY   8000
 
#define NANOSECOND_CLOCK_PART_DESCRIPTION   "I217-LM"
 
#define NETWORK_CARD_ID_PREFIX   "\\\\.\\"
 
#define OID_INTEL_GET_RXSTAMP   0xFF020264
 
#define OID_INTEL_GET_TXSTAMP   0xFF020263
 
#define OID_INTEL_GET_SYSTIM   0xFF020262
 
#define OID_INTEL_SET_SYSTIM   0xFF020261
 

Typedefs

typedef std::list
< WindowsTimerQueueHandlerArg * > 
TimerArgList_t
 
typedef std::map< int,
TimerQueue_t
TimerQueueMap_t
 

Functions

VOID CALLBACK WindowsTimerQueueHandler (PVOID arg_in, BOOLEAN ignore)
 
DWORD WINAPI OSThreadCallback (LPVOID input)
 

Macro Definition Documentation

#define NANOSECOND_CLOCK_PART_DESCRIPTION   "I217-LM"

Network adapter description

#define NETCLOCK_HZ_NANO   1000000000

1 Hertz in nanoseconds

#define NETCLOCK_HZ_OTHER   1056000000
Todo:
Not sure about what that means
#define NETWORK_CARD_ID_PREFIX   "\\\\.\\"

Network adapter prefix

#define OID_INTEL_GET_RXSTAMP   0xFF020264

Get RX timestamp code

#define OID_INTEL_GET_SYSTIM   0xFF020262

Get system time code

#define OID_INTEL_GET_TXSTAMP   0xFF020263

Get TX timestamp code

#define OID_INTEL_SET_SYSTIM   0xFF020261

Set system time code

#define ONE_WAY_PHY_DELAY   8000

Phy delay TX/RX

Typedef Documentation

Creates a list of type WindowsTimerQueueHandlerArg

typedef std::map<int,TimerQueue_t> TimerQueueMap_t

Creates a map for the timerQueue

Function Documentation

DWORD WINAPI OSThreadCallback ( LPVOID  input)

Windows OSThread callback

VOID CALLBACK WindowsTimerQueueHandler ( PVOID  arg_in,
BOOLEAN  ignore 
)

Windows Timer queue handler callback definition

Windows callback for the timer queue handler