mirror of https://github.com/pvnis/srsRAN_4G.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.6 KiB
C
41 lines
1.6 KiB
C
/**
|
|
*
|
|
* \section COPYRIGHT
|
|
*
|
|
* Copyright 2013-2021 Software Radio Systems Limited
|
|
*
|
|
* By using this file, you agree to the terms and conditions set
|
|
* forth in the LICENSE file which can be found at the top level of
|
|
* the distribution.
|
|
*
|
|
*/
|
|
|
|
#ifndef SRSRAN_HARQ_ACK_H
|
|
#define SRSRAN_HARQ_ACK_H
|
|
|
|
#include "srsran/phy/phch/dci_nr.h"
|
|
#include "srsran/phy/phch/harq_ack_cfg.h"
|
|
#include "srsran/phy/phch/uci_cfg_nr.h"
|
|
|
|
SRSRAN_API int srsran_harq_ack_resource(const srsran_harq_ack_cfg_hl_t* cfg,
|
|
const srsran_dci_dl_nr_t* dci_dl,
|
|
srsran_harq_ack_resource_t* pdsch_ack_resource);
|
|
|
|
SRSRAN_API int srsran_harq_ack_gen_uci_cfg(const srsran_harq_ack_cfg_hl_t* cfg,
|
|
const srsran_pdsch_ack_nr_t* ack_info,
|
|
srsran_uci_cfg_nr_t* uci_cfg);
|
|
|
|
SRSRAN_API int srsran_harq_ack_pack(const srsran_harq_ack_cfg_hl_t* cfg,
|
|
const srsran_pdsch_ack_nr_t* ack_info,
|
|
srsran_uci_data_nr_t* uci_data);
|
|
|
|
SRSRAN_API int srsran_harq_ack_unpack(const srsran_harq_ack_cfg_hl_t* cfg,
|
|
const srsran_uci_data_nr_t* uci_data,
|
|
srsran_pdsch_ack_nr_t* ack_info);
|
|
|
|
SRSRAN_API int srsran_harq_ack_insert_m(srsran_pdsch_ack_nr_t* ack_info, const srsran_harq_ack_m_t* m);
|
|
|
|
SRSRAN_API uint32_t srsran_harq_ack_info(const srsran_pdsch_ack_nr_t* ack_info, char* str, uint32_t str_len);
|
|
|
|
#endif // SRSRAN_HARQ_ACK_H
|