CC26xx Driver Library
chipinfo.h File Reference
#include <stdint.h>
#include <stdbool.h>
#include "../inc/hw_types.h"
#include "../inc/hw_memmap.h"
#include "../inc/hw_fcfg1.h"

Macros

#define DRIVERLIB_BUILD_CC26X0   0
 0 is the driverlib build ID for the cc26x0 driverlib. More...
 
#define DRIVERLIB_BUILD_CC13X0   1
 1 is the driverlib build ID for the cc13x0 driverlib. More...
 
#define DRIVERLIB_BUILD_CC13X1_CC26X1   2
 2 is the driverlib build ID for the cc13x1_cc26x1 driverlib. More...
 
#define DRIVERLIB_BUILD_CC26X0R2   3
 3 is the driverlib build ID for the cc26x0r2 driverlib. More...
 
#define DRIVERLIB_BUILD_CC13X2_CC26X2   4
 4 is the driverlib build ID for the cc13x2_cc26x2 driverlib. More...
 
#define DRIVERLIB_BUILD_CC13X2X7_CC26X2X7   5
 5 is the driverlib build ID for the cc13x2x7_cc26x2x7 driverlib. More...
 
#define DRIVERLIB_BUILD_CC13X4_CC26X4   6
 6 is the driverlib build ID for the cc13x4_cc26x4 driverlib. More...
 
#define THIS_DRIVERLIB_BUILD   DRIVERLIB_BUILD_CC13X4_CC26X4
 Define THIS_DRIVERLIB_BUILD, identifying current driverlib build ID. More...
 

Enumerations

enum  ProtocolBitVector_t { PROTOCOL_Unknown = 0, PROTOCOLBIT_BLE = 0x02, PROTOCOLBIT_IEEE_802_15_4 = 0x04, PROTOCOLBIT_Proprietary = 0x08 }
 Enumeration identifying the protocols supported. More...
 
enum  PackageType_t {
  PACKAGE_Unknown = -1, PACKAGE_4x4 = 0, PACKAGE_5x5 = 1, PACKAGE_7x7 = 2,
  PACKAGE_WAFER = 3, PACKAGE_WCSP = 4, PACKAGE_7x7_Q1 = 5, PACKAGE_7x7_SIP = 6
}
 Package type enumeration. More...
 
enum  ChipType_t {
  CHIP_TYPE_Unknown = -1, CHIP_TYPE_CC1310 = 0, CHIP_TYPE_CC1350 = 1, CHIP_TYPE_CC2620 = 2,
  CHIP_TYPE_CC2630 = 3, CHIP_TYPE_CC2640 = 4, CHIP_TYPE_CC2650 = 5, CHIP_TYPE_CUSTOM_0 = 6,
  CHIP_TYPE_CUSTOM_1 = 7, CHIP_TYPE_CC2640R2 = 8, CHIP_TYPE_CC2642 = 9, CHIP_TYPE_CC1312P = 10,
  CHIP_TYPE_CC2652 = 11, CHIP_TYPE_CC1312 = 12, CHIP_TYPE_CC1352 = 13, CHIP_TYPE_CC1352P = 14,
  CHIP_TYPE_CC2652P = 15, CHIP_TYPE_CC2652RB = 16, CHIP_TYPE_CC2652PB = 17, CHIP_TYPE_CC1311R3 = 18,
  CHIP_TYPE_CC1311P3 = 19, CHIP_TYPE_CC2651R3 = 20, CHIP_TYPE_CC2651P3 = 21, CHIP_TYPE_CC2641R3 = 22,
  CHIP_TYPE_CC1312R7 = 23, CHIP_TYPE_unused0 = 24, CHIP_TYPE_CC1352R7 = 25, CHIP_TYPE_CC1352P7 = 26,
  CHIP_TYPE_CC2652R7 = 27, CHIP_TYPE_CC2652P7 = 28, CHIP_TYPE_unused1 = 29, CHIP_TYPE_CC1314R10 = 30,
  CHIP_TYPE_CC1354P10 = 31, CHIP_TYPE_CC1354R10 = 32, CHIP_TYPE_CC2653P10 = 33, CHIP_TYPE_unused2 = 34,
  CHIP_TYPE_CC2674P10 = 35, CHIP_TYPE_CC2674R10 = 36
}
 Chip type enumeration. More...
 
enum  ChipFamily_t {
  FAMILY_Unknown = -1, FAMILY_CC26x0 = 0, FAMILY_CC13x0 = 1, FAMILY_CC13x1_CC26x1 = 2,
  FAMILY_CC26x0R2 = 3, FAMILY_CC13x2_CC26x2 = 4, FAMILY_CC13x2x7_CC26x2x7 = 5, FAMILY_CC13x4_CC26x4 = 6
}
 Chip family enumeration. More...
 
enum  HwRevision_t {
  HWREV_Unknown = -1, HWREV_1_0 = 10, HWREV_1_1 = 11, HWREV_2_0 = 20,
  HWREV_2_1 = 21, HWREV_2_2 = 22, HWREV_2_3 = 23, HWREV_2_4 = 24,
  HWREV_3_0 = 30
}
 HW revision enumeration. More...
 

Functions

ProtocolBitVector_t ChipInfo_GetSupportedProtocol_BV (void)
 Returns bit vector showing supported protocols. More...
 
static bool ChipInfo_SupportsBLE (void)
 Returns true if the chip supports the BLE protocol. More...
 
static bool ChipInfo_SupportsIEEE_802_15_4 (void)
 Returns true if the chip supports the IEEE 802.15.4 protocol. More...
 
static bool ChipInfo_SupportsPROPRIETARY (void)
 Returns true if the chip supports proprietary protocols. More...
 
PackageType_t ChipInfo_GetPackageType (void)
 Returns package type. More...
 
static bool ChipInfo_PackageTypeIs4x4 (void)
 Returns true if this is a 4x4mm chip. More...
 
static bool ChipInfo_PackageTypeIs5x5 (void)
 Returns true if this is a 5x5mm chip. More...
 
static bool ChipInfo_PackageTypeIs7x7 (void)
 Returns true if this is a 7x7mm chip. More...
 
static bool ChipInfo_PackageTypeIsWAFER (void)
 Returns true if this is a wafer sale chip (naked die). More...
 
static bool ChipInfo_PackageTypeIsWCSP (void)
 Returns true if this is a WCSP chip (flip chip). More...
 
static bool ChipInfo_PackageTypeIs7x7Q1 (void)
 Returns true if this is a 7x7 Q1 chip. More...
 
static uint32_t ChipInfo_GetDeviceIdHwRevCode (void)
 Returns the internal chip HW revision code. More...
 
static uint32_t ChipInfo_GetMinorHwRev (void)
 Returns minor hardware revision number. More...
 
static uint32_t ChipInfo_GetUserId (void)
 Returns the 32 bits USER_ID field. More...
 
ChipType_t ChipInfo_GetChipType (void)
 Returns chip type. More...
 
ChipFamily_t ChipInfo_GetChipFamily (void)
 Returns chip family member. More...
 
static bool ChipInfo_ChipFamilyIs_CC13x0 (void)
 Returns true if this chip is member of the CC13x0 family. More...
 
static bool ChipInfo_ChipFamilyIs_CC26x0 (void)
 Returns true if this chip is member of the CC26x0 family. More...
 
static bool ChipInfo_ChipFamilyIs_CC26x0R2 (void)
 Returns true if this chip is member of the CC26x0R2 family. More...
 
static bool ChipInfo_ChipFamilyIs_CC13x1_CC26x1 (void)
 Returns true if this chip is member of the CC13x1, CC26x1 family. More...
 
static bool ChipInfo_ChipFamilyIs_CC13x2_CC26x2 (void)
 Returns true if this chip is member of the CC13x2, CC26x2 family. More...
 
static bool ChipInfo_ChipFamilyIs_CC13x2x7_CC26x2x7 (void)
 Returns true if this chip is member of the CC13x2x7, CC26x2x7 family. More...
 
static bool ChipInfo_ChipFamilyIs_CC13x4_CC26x4 (void)
 Returns true if this chip is member of the CC13x4, CC26x4 family. More...
 
HwRevision_t ChipInfo_GetHwRevision (void)
 Returns chip HW revision. More...
 
static bool ChipInfo_HwRevisionIs_1_0 (void)
 Returns true if HW revision for this chip is 1.0. More...
 
static bool ChipInfo_HwRevisionIs_2_0 (void)
 Returns true if HW revision for this chip is 2.0. More...
 
static bool ChipInfo_HwRevisionIs_GTEQ_2_0 (void)
 Returns true if HW revision for this chip is 2.0 or greater. More...
 
static bool ChipInfo_HwRevisionIs_2_1 (void)
 Returns true if HW revision for this chip is 2.1. More...
 
static bool ChipInfo_HwRevisionIs_GTEQ_2_1 (void)
 Returns true if HW revision for this chip is 2.1 or greater. More...
 
static bool ChipInfo_HwRevisionIs_2_2 (void)
 Returns true if HW revision for this chip is 2.2. More...
 
static bool ChipInfo_HwRevisionIs_GTEQ_2_2 (void)
 Returns true if HW revision for this chip is 2.2 or greater. More...
 
static bool ChipInfo_HwRevisionIs_GTEQ_2_3 (void)
 Returns true if HW revision for this chip is 2.3 or greater. More...
 
static bool ChipInfo_HwRevisionIs_GTEQ_2_4 (void)
 Returns true if HW revision for this chip is 2.4 or greater. More...
 
void ThisLibraryIsFor_CC13x4_CC26x4_HaltIfViolated (void)
 Verifies that current chip is CC13x4 or CC26x4 and never returns if violated. More...