Files
kunlun/bb_cpu/inc/bb_init.h

94 lines
2.7 KiB
C
Raw Normal View History

2024-09-28 14:24:04 +08:00
/****************************************************************************
Copyright(c) 2019 by Aerospace C.Power (Chongqing) Microelectronics. ALL RIGHTS RESERVED.
This Information is proprietary to Aerospace C.Power (Chongqing) Microelectronics and MAY NOT
be copied by any method or incorporated into another program without
the express written consent of Aerospace C.Power. This Information or any portion
thereof remains the property of Aerospace C.Power. The Information contained herein
is believed to be accurate and Aerospace C.Power assumes no responsibility or
liability for its use in any way and conveys no license or title under
any patent or copyright and makes no representation or warranty that this
Information is free from patent or copyright infringement.
****************************************************************************/
#ifndef __BB_INIT_H__
#define __BB_INIT_H__
/* os shim includes */
#include "os_types.h"
#ifdef __cplusplus
extern "C" {
#endif
/* bb_rf_tx_reset - bb tx reset.
* return void
*/
void bb_rf_tx_reset();
/* bb_rf_rx_reset - bb rx reset.
* return void
*/
void bb_rf_rx_reset();
/* bb_rf_reset - bb rf_reset.
* return void
*/
void bb_rf_reset();
/* bb_rf_init - phy rf init.
* @option - optino, PHY_RF_OPTION_xx.
* @pa_init_only - init pa or pa and rf bb.
* return void
*/
void bb_rf_init(uint32_t option, uint32_t pa_init_only);
/* bb_rf_jesd_reset - jesd reset.
* @void - void.
* return void
*/
void bb_rf_jesd_reset();
/* bb_rf_set_threshold - set rx threshold.
* @threshold - rx threshold.
* return void
*/
void bb_rf_set_rx_threshold(uint32_t threshold);
/* bb_wphy_read_fld_reg - read reg.
* @addr - reg addr.
* @bit_start - start bit.
* @bit_end - end bit.
* return uint32_t - reg value.
*/
uint32_t bb_wphy_read_fld_reg(uint32_t addr, uint32_t bit_start,
uint32_t bit_end);
/* bb_wphy_write_fld_reg - write reg.
* @addr - reg addr.
* @bit_start - start bit.
* @bit_end - end bit.
* @value - value to write.
* return void - void.
*/
void bb_wphy_write_fld_reg(uint32_t addr, uint32_t bit_start,
uint32_t bit_end, uint32_t value);
/* bb_wphy_stop_rx - wphy stop rx.
* @void - void.
* return void
*/
void bb_wphy_stop_rx(void);
/* bb_wphy_stop_tx - wphy stop tx.
* @void - void.
* return void
*/
void bb_wphy_stop_tx(void);
#ifdef __cplusplus
}
#endif
#endif // !__BB_INIT_H__