The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

Dependents:   hello SerialTestv11 SerialTestv12 Sierpinski ... more

mbed 2

This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.

Committer:
AnnaBridge
Date:
Wed Feb 20 20:53:29 2019 +0000
Revision:
172:65be27845400
Parent:
171:3a7713b1edbc
mbed library release version 165

Who changed what in which revision?

UserRevisionLine numberNew contents of line
AnnaBridge 171:3a7713b1edbc 1 /**
AnnaBridge 171:3a7713b1edbc 2 ******************************************************************************
AnnaBridge 171:3a7713b1edbc 3 * @file rfAna_map.h
AnnaBridge 171:3a7713b1edbc 4 * @brief rfAna hw module register map
AnnaBridge 171:3a7713b1edbc 5 * @internal
AnnaBridge 171:3a7713b1edbc 6 * @author ON Semiconductor
AnnaBridge 171:3a7713b1edbc 7 * $Rev: 2953 $
AnnaBridge 171:3a7713b1edbc 8 * $Date: 2014-09-15 18:13:01 +0530 (Mon, 15 Sep 2014) $
AnnaBridge 171:3a7713b1edbc 9 ******************************************************************************
AnnaBridge 171:3a7713b1edbc 10 * Copyright 2016 Semiconductor Components Industries LLC (d/b/a “ON Semiconductor”).
AnnaBridge 171:3a7713b1edbc 11 * All rights reserved. This software and/or documentation is licensed by ON Semiconductor
AnnaBridge 171:3a7713b1edbc 12 * under limited terms and conditions. The terms and conditions pertaining to the software
AnnaBridge 171:3a7713b1edbc 13 * and/or documentation are available at http://www.onsemi.com/site/pdf/ONSEMI_T&C.pdf
AnnaBridge 171:3a7713b1edbc 14 * (“ON Semiconductor Standard Terms and Conditions of Sale, Section 8 Software”) and
AnnaBridge 171:3a7713b1edbc 15 * if applicable the software license agreement. Do not use this software and/or
AnnaBridge 171:3a7713b1edbc 16 * documentation unless you have carefully read and you agree to the limited terms and
AnnaBridge 171:3a7713b1edbc 17 * conditions. By using this software and/or documentation, you agree to the limited
AnnaBridge 171:3a7713b1edbc 18 * terms and conditions.
AnnaBridge 171:3a7713b1edbc 19 *
AnnaBridge 171:3a7713b1edbc 20 * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
AnnaBridge 171:3a7713b1edbc 21 * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
AnnaBridge 171:3a7713b1edbc 22 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
AnnaBridge 171:3a7713b1edbc 23 * ON SEMICONDUCTOR SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL,
AnnaBridge 171:3a7713b1edbc 24 * INCIDENTAL, OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
AnnaBridge 171:3a7713b1edbc 25 * @endinternal
AnnaBridge 171:3a7713b1edbc 26 *
AnnaBridge 171:3a7713b1edbc 27 * @ingroup rfAna
AnnaBridge 171:3a7713b1edbc 28 *
AnnaBridge 171:3a7713b1edbc 29 * @details
AnnaBridge 171:3a7713b1edbc 30 * <p>
AnnaBridge 171:3a7713b1edbc 31 * Rf and Analog control and trimming hw module register map
AnnaBridge 171:3a7713b1edbc 32 * </p>
AnnaBridge 171:3a7713b1edbc 33 */
AnnaBridge 171:3a7713b1edbc 34
AnnaBridge 171:3a7713b1edbc 35 #ifndef RFANA_MAP_H_
AnnaBridge 171:3a7713b1edbc 36 #define RFANA_MAP_H_
AnnaBridge 171:3a7713b1edbc 37
AnnaBridge 171:3a7713b1edbc 38 /*************************************************************************************************
AnnaBridge 171:3a7713b1edbc 39 * *
AnnaBridge 171:3a7713b1edbc 40 * Header files *
AnnaBridge 171:3a7713b1edbc 41 * *
AnnaBridge 171:3a7713b1edbc 42 *************************************************************************************************/
AnnaBridge 171:3a7713b1edbc 43
AnnaBridge 171:3a7713b1edbc 44 #include "architecture.h"
AnnaBridge 171:3a7713b1edbc 45
AnnaBridge 171:3a7713b1edbc 46 /**************************************************************************************************
AnnaBridge 171:3a7713b1edbc 47 * *
AnnaBridge 171:3a7713b1edbc 48 * Type definitions *
AnnaBridge 171:3a7713b1edbc 49 * *
AnnaBridge 171:3a7713b1edbc 50 **************************************************************************************************/
AnnaBridge 171:3a7713b1edbc 51
AnnaBridge 171:3a7713b1edbc 52 /** rfAna register map (control part) */
AnnaBridge 171:3a7713b1edbc 53 typedef struct {
AnnaBridge 171:3a7713b1edbc 54 union {
AnnaBridge 171:3a7713b1edbc 55 struct {
AnnaBridge 171:3a7713b1edbc 56 __IO uint32_t FRACT_WORD:24;
AnnaBridge 171:3a7713b1edbc 57 __IO uint32_t INT_WORD:8;
AnnaBridge 171:3a7713b1edbc 58 } BITS;
AnnaBridge 171:3a7713b1edbc 59 __IO uint32_t WORD;
AnnaBridge 171:3a7713b1edbc 60 } TX_LO_CONTROL;
AnnaBridge 171:3a7713b1edbc 61 union {
AnnaBridge 171:3a7713b1edbc 62 struct {
AnnaBridge 171:3a7713b1edbc 63 __IO uint32_t FRACT_WORD:24;
AnnaBridge 171:3a7713b1edbc 64 __IO uint32_t INT_WORD:8;
AnnaBridge 171:3a7713b1edbc 65 } BITS;
AnnaBridge 171:3a7713b1edbc 66 __IO uint32_t WORD;
AnnaBridge 171:3a7713b1edbc 67 } RX_LO_CONTROL;
AnnaBridge 171:3a7713b1edbc 68 union {
AnnaBridge 171:3a7713b1edbc 69 struct {
AnnaBridge 171:3a7713b1edbc 70 __IO uint32_t PLL_RESET_TIME:10;
AnnaBridge 171:3a7713b1edbc 71 __I uint32_t RESERVED:6;
AnnaBridge 171:3a7713b1edbc 72 __IO uint32_t PLL_LOCK_TIME:10;
AnnaBridge 171:3a7713b1edbc 73 } BITS;
AnnaBridge 171:3a7713b1edbc 74 __IO uint32_t WORD;
AnnaBridge 171:3a7713b1edbc 75 } PLL_TIMING;
AnnaBridge 171:3a7713b1edbc 76 union {
AnnaBridge 171:3a7713b1edbc 77 struct {
AnnaBridge 171:3a7713b1edbc 78 __IO uint32_t LNA_GAIN_MODE:1;
AnnaBridge 171:3a7713b1edbc 79 __IO uint32_t ADC_DITHER_MODE:1;
AnnaBridge 171:3a7713b1edbc 80 } BITS;
AnnaBridge 171:3a7713b1edbc 81 __IO uint32_t WORD;
AnnaBridge 171:3a7713b1edbc 82 } RX_CONTROL;
AnnaBridge 171:3a7713b1edbc 83 __IO uint32_t TX_POWER;
AnnaBridge 171:3a7713b1edbc 84 __I uint32_t RECEIVER_GAIN;
AnnaBridge 171:3a7713b1edbc 85 } RfAnaReg_t, *RfAnaReg_pt;
AnnaBridge 171:3a7713b1edbc 86
AnnaBridge 171:3a7713b1edbc 87 /** rfAna register map (trimming part) */
AnnaBridge 171:3a7713b1edbc 88 typedef struct {
AnnaBridge 171:3a7713b1edbc 89 __IO uint32_t PMU_TRIM;
AnnaBridge 171:3a7713b1edbc 90 __IO uint32_t RESERVED;
AnnaBridge 171:3a7713b1edbc 91 __IO uint32_t RX_CHAIN_TRIM;
AnnaBridge 171:3a7713b1edbc 92 union {
AnnaBridge 171:3a7713b1edbc 93 struct {
AnnaBridge 171:3a7713b1edbc 94 __I uint32_t BIAS_VCO_TRIM:4;
AnnaBridge 171:3a7713b1edbc 95 __I uint32_t MODULATION_TRIM:4;
AnnaBridge 171:3a7713b1edbc 96 __IO uint32_t TX_VCO_TRIM:4;
AnnaBridge 171:3a7713b1edbc 97 __IO uint32_t RX_VCO_TRIM:4;
AnnaBridge 171:3a7713b1edbc 98 __I uint32_t DIV_TRIM:3;
AnnaBridge 171:3a7713b1edbc 99 __I uint32_t REG_TRIM:2;
AnnaBridge 171:3a7713b1edbc 100 __I uint32_t LFR_TRIM:3;
AnnaBridge 171:3a7713b1edbc 101 __I uint32_t PAD0:4;
AnnaBridge 171:3a7713b1edbc 102 __I uint32_t CHARGE_PUMP_RANGE:4;
AnnaBridge 171:3a7713b1edbc 103 } BITS;
AnnaBridge 171:3a7713b1edbc 104 __IO uint32_t WORD;
AnnaBridge 171:3a7713b1edbc 105 } PLL_TRIM;
AnnaBridge 171:3a7713b1edbc 106 __IO uint32_t PLL_VCO_TAP_LOCATION;
AnnaBridge 171:3a7713b1edbc 107 union {
AnnaBridge 171:3a7713b1edbc 108 struct {
AnnaBridge 171:3a7713b1edbc 109 __IO uint32_t TX_TUNE:4;
AnnaBridge 171:3a7713b1edbc 110 __IO uint32_t PA_REGULATOR_TRIM:4;
AnnaBridge 171:3a7713b1edbc 111 __IO uint32_t REGULATOR_TRIM:2;
AnnaBridge 171:3a7713b1edbc 112 __IO uint32_t RESERVED:2;
AnnaBridge 171:3a7713b1edbc 113 } BITS;
AnnaBridge 171:3a7713b1edbc 114 __IO uint32_t WORD;
AnnaBridge 171:3a7713b1edbc 115 } TX_TRIM;
AnnaBridge 171:3a7713b1edbc 116
AnnaBridge 171:3a7713b1edbc 117 __IO uint32_t RX_VCO_TRIM_LUT2; /** 0x40019098 */
AnnaBridge 171:3a7713b1edbc 118 __IO uint32_t RX_VCO_TRIM_LUT1; /** 0x4001909C */
AnnaBridge 171:3a7713b1edbc 119 __IO uint32_t TX_VCO_TRIM_LUT2; /** 0x400190A0 */
AnnaBridge 171:3a7713b1edbc 120 __IO uint32_t TX_VCO_TRIM_LUT1; /** 0x400190A4 */
AnnaBridge 171:3a7713b1edbc 121 __IO uint32_t ADC_OFFSET_BUF; /** 0x400190A8 */
AnnaBridge 171:3a7713b1edbc 122 } RfAnaTrimReg_t, *RfAnaTrimReg_pt;
AnnaBridge 171:3a7713b1edbc 123
AnnaBridge 171:3a7713b1edbc 124 #endif /* RFANA_MAP_H_ */