27 #define TXCTRL0_MODUL_ASK ((uint8_t) (0x03 << 4))
30 #define TXCTRL0_FRAC_EN ((uint8_t) (0x01 << 3))
31 #define TXCTRL0_NXTBURST ((uint8_t) (0x01 << 6))
32 #define TXCTRL0_STARTX ((uint8_t) (0x01 << 7))
33 #define TXCTRL1_PEDES_10 ((uint8_t) (0x00 << 6))
34 #define TXCTRL1_PEDES_12 ((uint8_t) (0x01 << 6))
35 #define TXCTRL1_PEDES_14 ((uint8_t) (0x02 << 6))
36 #define TXCTRL1_PEDES_16 ((uint8_t) (0x03 << 6))
38 #define TXTRIM0_VAL ((uint8_t) 0x44)
39 #define TXTRIM1_VAL ((uint8_t) 0x82)
114 __IO uint8_t BYTE[2];
164 __IO uint16_t HWORD[2];
194 __IO uint16_t HWORD[2];
207 #define TX_BASE (ASIC_7B_BASE + 0x32)
209 #define RFTX_CTRL ((RFTX_CTRLType *) (ASIC_7B_BASE + 0x32))
211 #define RFTX_DATA ((RFTX_DATAType *) (ASIC_7B_BASE + 0x36))
213 #define RFTX_MSGFMT ((RFTX_MSGFMTType *) (ASIC_7B_BASE + 0x38))
216 #define RFTX_TIMING ((RFTX_TIMINGType *) (ASIC_7B_BASE + 0x3A))
219 #define RFTX_PLL ((RFTX_PLLType *) (ASIC_16B_BASE + 0x8000))
224 #define TXTRIM0 ((__IO uint8_t *) (ASIC_16B_BASE + 0x03))
226 #define TXTRIM1 ((__IO uint8_t *) (ASIC_16B_BASE + 0x0C))
267 static __INLINE
void TX_TXconfig(uint8_t module, uint8_t frac_en, uint8_t peds)
290 RFTX_CTRL->TXCTRL1 |= ((uint8_t)(tpatch>>5) & 0x3F);
291 RFTX_TIMING->BYTE.TXCTRL3 |= ((uint8_t)(tpatch << 3));
301 RFTX_MSGFMT->HWORD = (nwait<<10 & 0xFC00)|(nburst & 0x03FF);
324 static void TX_SetTiming(uint16_t txcdiv, uint16_t nburst, uint8_t nwait_total)
326 uint8_t NWAIT = (uint8_t)(nwait_total - 340.0 / (4 * txcdiv));
327 uint16_t TPATCH = (uint16_t)(((nwait_total - NWAIT) * txcdiv *4/5 - 68 - 0.8 ) / 0.781);
__IO uint16_t HWORD
Definition: tx_sfrs.h:113
static __INLINE void TX_StartTransmission()
RF Transmitter Function.
Definition: tx_sfrs.h:234
__IO uint8_t PLLCTRL0
Definition: tx_sfrs.h:197
static void TX_SetTiming(uint16_t txcdiv, uint16_t nburst, uint8_t nwait_total)
: given the number of wait bit time and using default TED value to calculate the value of NWAIT[5:0] ...
Definition: tx_sfrs.h:324
#define TXCTRL0_STARTX
Definition: tx_sfrs.h:32
__IO uint8_t PLLCTRL3
Definition: tx_sfrs.h:200
#define RFTX_TIMING
Definition: tx_sfrs.h:216
static __INLINE void TX_SetMsgFormat(uint16_t nburst, uint8_t nwait)
RF TX set message format including burst bit and wait bit time.
Definition: tx_sfrs.h:299
#define RFTX_DATA
Definition: tx_sfrs.h:211
__IO uint32_t WORD
Definition: tx_sfrs.h:193
Definition: tx_sfrs.h:162
static __INLINE void TX_Dis_NextBurst()
Definition: tx_sfrs.h:250
static __INLINE void TX_LoadData(uint16_t data)
Definition: tx_sfrs.h:343
__IO uint8_t PLLCTRL2
Definition: tx_sfrs.h:199
Definition: tx_sfrs.h:191
__IO uint8_t PLLCTRL1
Definition: tx_sfrs.h:198
static __INLINE void TX_SetPowerLevel(uint8_t powlev, uint8_t powap)
RF TX amplifier power.
Definition: tx_sfrs.h:279
static __INLINE void TX_StopTransmission()
Definition: tx_sfrs.h:240
__IO uint8_t TXCTRL4
Definition: tx_sfrs.h:169
#define RFTX_PLL
Definition: tx_sfrs.h:219
#define RFTX_CTRL
Definition: tx_sfrs.h:209
RF Transmitter Structure.
Definition: tx_sfrs.h:93
__IO uint8_t NBURST
Definition: tx_sfrs.h:132
Definition: tx_sfrs.h:128
Definition: tx_sfrs.h:111
__IO uint8_t TXCLKDIV
Definition: tx_sfrs.h:167
static __INLINE void TX_SetChipRate(uint16_t txcdiv)
RF TX clock divider number chip rate = 1.25Mbps / TXCLKDIV for example, if chip rate is 3...
Definition: tx_sfrs.h:310
__IO uint8_t TXCTRL2
Definition: tx_sfrs.h:133
#define TXCTRL0_NXTBURST
Definition: tx_sfrs.h:31
__IO uint8_t TXCTRL3
Definition: tx_sfrs.h:168
static __INLINE void TX_TXconfig(uint8_t module, uint8_t frac_en, uint8_t peds)
RF TX Control.
Definition: tx_sfrs.h:267
__IO uint8_t TXCTRL1
Definition: tx_sfrs.h:96
__IO uint8_t POWLEV
Definition: tx_sfrs.h:97
__IO uint8_t TXCTRL0
Definition: tx_sfrs.h:95
static __INLINE void TX_SetFreq()
: Set TX frequency The default value is for RF Freq: 433.92Mhz at XTAL Freq 30MHz.
Definition: tx_sfrs.h:338
#define RFTX_MSGFMT
Definition: tx_sfrs.h:213
static __INLINE void TX_En_NextBurst()
Definition: tx_sfrs.h:245
__IO uint8_t TXCTRL5
Definition: tx_sfrs.h:170
__IO uint8_t POWAP
Definition: tx_sfrs.h:98
__IO uint16_t HWORD
Definition: tx_sfrs.h:130
static __INLINE void TX_SetTpatch(uint16_t tpatch)
RF TX set patch time.
Definition: tx_sfrs.h:288