X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=docs%2FAPI%2Fxran__sync__api_8c.html;fp=docs%2FAPI%2Fxran__sync__api_8c.html;h=1fab39ebf467f6105613a73704d32820374695aa;hb=870e1b86b0c74169b215c166dee787c7c1a20d06;hp=0000000000000000000000000000000000000000;hpb=298022ce50fa8133cc880507170c4b7120d227b5;p=o-du%2Fphy.git diff --git a/docs/API/xran__sync__api_8c.html b/docs/API/xran__sync__api_8c.html new file mode 100644 index 0000000..1fab39e --- /dev/null +++ b/docs/API/xran__sync__api_8c.html @@ -0,0 +1,258 @@ + + + + + + + +o-du/phy: xran_sync_api.c File Reference + + + + + + + + + +
+
+ + + + + + +
+
o-du/phy +
+
Intel O-RAN/X-RAN Generated Doxygen Documentation
+
+
+ + + + + + + + +
+
+ + +
+ +
+ + +
+
+
+Macros | +Functions
+
+
xran_sync_api.c File Reference
+
+
+ +

This file provides implementation of synchronization related APIs (PTP/1588) for XRAN. +More...

+
#include <assert.h>
+#include <dirent.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include "xran_sync_api.h"
+#include "xran_printf.h"
+
+Include dependency graph for xran_sync_api.c:
+
+
+ + + + +
+
+

Go to the source code of this file.

+ + + + + + + + + + + + + + +

+Macros

#define BUF_LEN   256
 
#define PROC_DIR   "/proc"
 
#define COMM_FILE   "comm"
 
#define PMC_CMD   "pmc -u -b 0 'GET PORT_DATA_SET'"
 
#define PTP4L_PROC_NAME   "ptp4l"
 
#define PHC2SYS_PROC_NAME   "phc2sys"
 
+ + + + +

+Functions

int xran_is_synchronized ()
 Function checks if machine is synchronized using PTP for Linux software. More...
 
+

Detailed Description

+

This file provides implementation of synchronization related APIs (PTP/1588) for XRAN.

+
Author
Intel Corporation
+ +

Definition in file xran_sync_api.c.

+

Macro Definition Documentation

+ +

◆ BUF_LEN

+ +
+
+ + + + +
#define BUF_LEN   256
+
+ +

Definition at line 37 of file xran_sync_api.c.

+ +
+
+ +

◆ COMM_FILE

+ +
+
+ + + + +
#define COMM_FILE   "comm"
+
+ +

Definition at line 39 of file xran_sync_api.c.

+ +
+
+ +

◆ PHC2SYS_PROC_NAME

+ +
+
+ + + + +
#define PHC2SYS_PROC_NAME   "phc2sys"
+
+ +

Definition at line 42 of file xran_sync_api.c.

+ +
+
+ +

◆ PMC_CMD

+ +
+
+ + + + +
#define PMC_CMD   "pmc -u -b 0 'GET PORT_DATA_SET'"
+
+ +

Definition at line 40 of file xran_sync_api.c.

+ +
+
+ +

◆ PROC_DIR

+ +
+
+ + + + +
#define PROC_DIR   "/proc"
+
+ +

Definition at line 38 of file xran_sync_api.c.

+ +
+
+ +

◆ PTP4L_PROC_NAME

+ +
+
+ + + + +
#define PTP4L_PROC_NAME   "ptp4l"
+
+ +

Definition at line 41 of file xran_sync_api.c.

+ +
+
+

Function Documentation

+ +

◆ xran_is_synchronized()

+ +
+
+ + + + + + + + +
int xran_is_synchronized (void )
+
+ +

Function checks if machine is synchronized using PTP for Linux software.

+
Returns
int Returns 0 if synchronized, otherwise positive.
+ +

Definition at line 113 of file xran_sync_api.c.

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