83 lines
3.3 KiB
C
83 lines
3.3 KiB
C
/**
|
|
****************************************************************************************
|
|
*
|
|
* @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
|
|
|
|
|
|
#define TRANS_DCDC_POWER_NEGTIVE_11_0_DBM 0x6125 //-12,line loss 1DBM
|
|
#define TRANS_DCDC_POWER_NEGTIVE_5_1_DBM 0x6225 //-6.1,line loss 1DBM
|
|
#define TRANS_DCDC_POWER_NEGTIVE_2_8_DBM 0x6325 //-3.8,line loss 1DBM
|
|
#define TRANS_DCDC_POWER_0_0DBM 0x6425 // -1.0,line loss 1DBM
|
|
#define TRANS_DCDC_POWER_1_2DBM 0x6465 //0.20,line loss 1DBM
|
|
#define TRANS_DCDC_POWER_1_7DBM 0x66e5 //0.70,line loss 1DBM
|
|
#define TRANS_DCDC_POWER_3_2DBM 0x6825 //2.20,line loss 1DBM
|
|
#define TRANS_DCDC_POWER_4_2DBM 0x6865 //3.20,line loss 1DBM
|
|
#define TRANS_DCDC_POWER_4_8DBM 0x6925 //3.80,line loss 1DBM#define TRANS_DCDC_POWER_13_35DBM 0x6965 //3.80,line loss 1DBM
|
|
#define TRANS_DCDC_POWER_5_0DBM 0x6b25 //4.00 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_
|