hpw421初始版本

This commit is contained in:
xushaoxiang
2026-06-06 16:49:48 +08:00
commit 2339bbfd1f
3283 changed files with 860261 additions and 0 deletions
+69
View File
@@ -0,0 +1,69 @@
/**
****************************************************************************************
*
* @file rf.h
*
* @brief Common header file for all radios.
*
* Copyright (C) RivieraWaves 2009-2015
*
*
****************************************************************************************
*/
#ifndef RF_H_
#define RF_H_
#define TRANS_POWER_NEGTIVE_8_9_DBM 0x6065 //-9.90,line loss 1DBM
#define TRANS_POWER_NEGTIVE_2_7_DBM 0x6125 //-3.70,line loss 1DBM
#define TRANS_POWER_0_5DBM 0x6165 //-0.50,line loss 1DBM
#define TRANS_POWER_0_6DBM 0x61a5 //-0.4,line loss 1DBM
#define TRANS_POWER_2_85DBM 0x61e5 //1.85,line loss 1DBM
#define TRANS_POWER_2_9DBM 0x6225 //1.90,line loss 1DBM
#define TRANS_POWER_4_68DBM 0x6265 //3.68,line loss 1DBM
#define TRANS_POWER_4_6DBM 0x62a5 //3.60,line loss 1DBM
#define TRANS_POWER_6_1DBM 0x62e5 //5.10,line loss 1DBM
#define TRANS_POWER_7_3DBM 0x6365 //6.30,line loss 1DBM
#define TRANS_POWER_8_3DBM 0x6425 //7.30,line loss 1DBM
#define TRANS_POWER_9_2DBM 0x6465 //8.20,line loss 1DBM
#define TRANS_POWER_13_06DBM 0x67e5 //12.06,line loss 1DBM
#define TRANS_POWER_13_05DBM 0x6825 //12.05,line loss 1DBM
#define TRANS_POWER_13_35DBM 0x6865 //12.35,line loss 1DBM
/**
****************************************************************************************
* @addtogroup RF
* @ingroup DRIVERS
* @brief Common definitions for radio modules.
*
* This module declares the functions and constants that have to be defined for all RF.
*
* @{
****************************************************************************************
*/
/*
* FUNCTION DECLARATIONS
****************************************************************************************
*/
struct rwip_rf_api; // forward declaration to avoid including rw.h
/**
*****************************************************************************************
* @brief Initialization of RF.
*
* This function initializes the RF and fills the structure containing the function
* pointers and parameters required by the RW BT stack.
*
* @param[out] api Pointer to the BT RF API structure
*
*****************************************************************************************
*/
void rf_init(struct rwip_rf_api *api);
//modem init
void modem_init(void);
/// @} RF
#endif // RF_H_