Code Review
/
o-du
/
phy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Front Haul Interface Library update to first seed code contribution
[o-du/phy.git]
/
fhi_lib
/
lib
/
api
/
xran_up_api.h
diff --git
a/fhi_lib/lib/api/xran_up_api.h
b/fhi_lib/lib/api/xran_up_api.h
index
4665762
..
bedcce0
100644
(file)
--- a/
fhi_lib/lib/api/xran_up_api.h
+++ b/
fhi_lib/lib/api/xran_up_api.h
@@
-16,7
+16,6
@@
*
*******************************************************************************/
*
*******************************************************************************/
-
/**
* @brief This file provides the definitions for User Plane Messages APIs.
*
/**
* @brief This file provides the definitions for User Plane Messages APIs.
*
@@
-29,14
+28,16
@@
#ifndef _XRAN_UP_API_H_
#define _XRAN_UP_API_H_
#ifndef _XRAN_UP_API_H_
#define _XRAN_UP_API_H_
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include <rte_common.h>
#include <rte_mbuf.h>
#include "xran_pkt.h"
#include "xran_pkt_up.h"
#include <rte_common.h>
#include <rte_mbuf.h>
#include "xran_pkt.h"
#include "xran_pkt_up.h"
-#define XRAN_BYTE_ORDER_SWAP
-
/*
* structure used for storing packet parameters needed for generating
* a data packet
/*
* structure used for storing packet parameters needed for generating
* a data packet
@@
-102,15
+103,26
@@
int xran_extract_iq_samples(struct rte_mbuf *mbuf,
uint8_t *subframe_id,
uint8_t *slot_id,
uint8_t *symb_id,
uint8_t *subframe_id,
uint8_t *slot_id,
uint8_t *symb_id,
- struct ecpri_seq_id *seq_id);
+ struct ecpri_seq_id *seq_id,
+ uint16_t *num_prbu,
+ uint16_t *start_prbu,
+ uint16_t *sym_inc,
+ uint16_t *rb,
+ uint16_t *sect_id);
int xran_prepare_iq_symbol_portion_no_comp(
struct rte_mbuf *mbuf,
const void *iq_data_start,
int xran_prepare_iq_symbol_portion_no_comp(
struct rte_mbuf *mbuf,
const void *iq_data_start,
+ const enum xran_input_byte_order iq_buf_byte_order,
const uint32_t iq_data_num_bytes,
struct xran_up_pkt_gen_no_compression_params *params,
uint8_t CC_ID,
uint8_t Ant_ID,
const uint32_t iq_data_num_bytes,
struct xran_up_pkt_gen_no_compression_params *params,
uint8_t CC_ID,
uint8_t Ant_ID,
- uint8_t seq_id);
+ uint8_t seq_id,
+ uint32_t do_copy);
+
+#ifdef __cplusplus
+}
+#endif
#endif /* _XRAN_UP_API_H_ */
#endif /* _XRAN_UP_API_H_ */