CC26xx Driver Library
[chipinfo.h] Chip Info

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...
 
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_CC13x2x7_CC26x2x7_HaltIfViolated (void)
 Verifies that current chip is CC13x2x7 or CC26x2x7 and never returns if violated. 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_unused0 = 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_unused1 = 24, CHIP_TYPE_CC1352R7 = 25, CHIP_TYPE_CC1352P7 = 26,
  CHIP_TYPE_CC2652R7 = 27, CHIP_TYPE_CC2652P7 = 28, CHIP_TYPE_unused2 = 29, CHIP_TYPE_CC2672R3 = 37,
  CHIP_TYPE_CC2672P3 = 38
}
 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
}
 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...
 

Detailed Description

Function Documentation

§ ChipInfo_ChipFamilyIs_CC13x0()

static bool ChipInfo_ChipFamilyIs_CC13x0 ( void  )
inlinestatic

Returns true if this chip is member of the CC13x0 family.

Returns
Returns true if this chip is member of the CC13x0 family, false otherwise.
432 {
433  return ( ChipInfo_GetChipFamily() == FAMILY_CC13x0 );
434 }
1 means that the chip is a CC13x0 family member.
Definition: chipinfo.h:384
ChipFamily_t ChipInfo_GetChipFamily(void)
Returns chip family member.
Definition: chipinfo.c:100
Here is the call graph for this function:

§ ChipInfo_ChipFamilyIs_CC13x1_CC26x1()

static bool ChipInfo_ChipFamilyIs_CC13x1_CC26x1 ( void  )
inlinestatic

Returns true if this chip is member of the CC13x1, CC26x1 family.

Returns
Returns true if this chip is member of the CC13x1, CC26x1 family, false otherwise.
474 {
476 }
2 means that the chip is a CC13x1, CC26x1 family member.
Definition: chipinfo.h:385
ChipFamily_t ChipInfo_GetChipFamily(void)
Returns chip family member.
Definition: chipinfo.c:100
Here is the call graph for this function:

§ ChipInfo_ChipFamilyIs_CC13x2_CC26x2()

static bool ChipInfo_ChipFamilyIs_CC13x2_CC26x2 ( void  )
inlinestatic

Returns true if this chip is member of the CC13x2, CC26x2 family.

Returns
Returns true if this chip is member of the CC13x2, CC26x2 family, false otherwise.
488 {
490 }
4 means that the chip is a CC13x2, CC26x2 family member.
Definition: chipinfo.h:387
ChipFamily_t ChipInfo_GetChipFamily(void)
Returns chip family member.
Definition: chipinfo.c:100
Here is the call graph for this function:

§ ChipInfo_ChipFamilyIs_CC13x2x7_CC26x2x7()

static bool ChipInfo_ChipFamilyIs_CC13x2x7_CC26x2x7 ( void  )
inlinestatic

Returns true if this chip is member of the CC13x2x7, CC26x2x7 family.

Returns
Returns true if this chip is member of the CC13x2x7, CC26x2x7 family, false otherwise.

Referenced by ThisLibraryIsFor_CC13x2x7_CC26x2x7_HaltIfViolated().

502 {
504 }
5 means that the chip is a CC13x2x7, CC26x2x7 family member.
Definition: chipinfo.h:388
ChipFamily_t ChipInfo_GetChipFamily(void)
Returns chip family member.
Definition: chipinfo.c:100
Here is the call graph for this function:

§ ChipInfo_ChipFamilyIs_CC26x0()

static bool ChipInfo_ChipFamilyIs_CC26x0 ( void  )
inlinestatic

Returns true if this chip is member of the CC26x0 family.

Returns
Returns true if this chip is member of the CC26x0 family, false otherwise.
446 {
447  return ( ChipInfo_GetChipFamily() == FAMILY_CC26x0 );
448 }
0 means that the chip is a CC26x0 family member.
Definition: chipinfo.h:383
ChipFamily_t ChipInfo_GetChipFamily(void)
Returns chip family member.
Definition: chipinfo.c:100
Here is the call graph for this function:

§ ChipInfo_ChipFamilyIs_CC26x0R2()

static bool ChipInfo_ChipFamilyIs_CC26x0R2 ( void  )
inlinestatic

Returns true if this chip is member of the CC26x0R2 family.

Returns
Returns true if this chip is member of the CC26x0R2 family, false otherwise.
460 {
461  return ( ChipInfo_GetChipFamily() == FAMILY_CC26x0R2 );
462 }
3 means that the chip is a CC26x0R2 family (new ROM contents).
Definition: chipinfo.h:386
ChipFamily_t ChipInfo_GetChipFamily(void)
Returns chip family member.
Definition: chipinfo.c:100
Here is the call graph for this function:

§ ChipInfo_GetChipFamily()

ChipFamily_t ChipInfo_GetChipFamily ( void  )

Returns chip family member.

Returns
Returns ChipFamily_t

Referenced by ChipInfo_ChipFamilyIs_CC13x0(), ChipInfo_ChipFamilyIs_CC13x1_CC26x1(), ChipInfo_ChipFamilyIs_CC13x2_CC26x2(), ChipInfo_ChipFamilyIs_CC13x2x7_CC26x2x7(), ChipInfo_ChipFamilyIs_CC26x0(), ChipInfo_ChipFamilyIs_CC26x0R2(), ChipInfo_GetChipType(), and ChipInfo_GetHwRevision().

101 {
102  uint32_t waferId;
103  ChipFamily_t chipFam = FAMILY_Unknown;
104 
105  waferId = (( HWREG( FCFG1_BASE + FCFG1_O_ICEPICK_DEVICE_ID ) &
106  FCFG1_ICEPICK_DEVICE_ID_WAFER_ID_M ) >>
107  FCFG1_ICEPICK_DEVICE_ID_WAFER_ID_S );
108  if ( waferId == 0xBB77 ) {
109  chipFam = FAMILY_CC13x2x7_CC26x2x7;
110  }
111 
112  return ( chipFam );
113 }
-1 means that the chip's family member is unknown.
Definition: chipinfo.h:382
5 means that the chip is a CC13x2x7, CC26x2x7 family member.
Definition: chipinfo.h:388
ChipFamily_t
Chip family enumeration.
Definition: chipinfo.h:381

§ ChipInfo_GetChipType()

ChipType_t ChipInfo_GetChipType ( void  )

Returns chip type.

Returns
Returns ChipType_t
122 {
123  ChipType_t chipType = CHIP_TYPE_Unknown;
125  uint32_t fcfg1UserId = ChipInfo_GetUserId();
126  uint32_t fcfg1Protocol = (( fcfg1UserId & FCFG1_USER_ID_PROTOCOL_M ) >> FCFG1_USER_ID_PROTOCOL_S );
127  uint32_t fcfg1Cc13 = (( fcfg1UserId & FCFG1_USER_ID_CC13_M ) >> FCFG1_USER_ID_CC13_S );
128  uint32_t fcfg1Pa = (( fcfg1UserId & FCFG1_USER_ID_PA_M ) >> FCFG1_USER_ID_PA_S );
129 
130  if ( chipFam == FAMILY_CC13x2x7_CC26x2x7 ) {
131  switch ( fcfg1Protocol ) {
132  case 0x8 :
133  if ( fcfg1Cc13 ) {
134  if ( ! fcfg1Pa ) {
135  chipType = CHIP_TYPE_CC1312R7;
136  }
137  }
138  break;
139  case 0xF :
140  if ( fcfg1Cc13 ) {
141  if ( fcfg1Pa ) {
142  chipType = CHIP_TYPE_CC1352P7;
143  }
144  else {
145  chipType = CHIP_TYPE_CC1352R7;
146  }
147  } else {
148  // ! fcfg1Cc13
149  if ( fcfg1Pa ) {
150  chipType = CHIP_TYPE_CC2652P7;
151  } else {
152  chipType = CHIP_TYPE_CC2652R7;
153  }
154  }
155  break;
156  }
157  }
158 
159  return ( chipType );
160 }
26 means that this is a CC1352P7 chip.
Definition: chipinfo.h:358
static uint32_t ChipInfo_GetUserId(void)
Returns the 32 bits USER_ID field.
Definition: chipinfo.h:320
5 means that the chip is a CC13x2x7, CC26x2x7 family member.
Definition: chipinfo.h:388
27 means that this is a CC2652R7 chip.
Definition: chipinfo.h:359
-1 means that the chip type is unknown.
Definition: chipinfo.h:331
28 means that this is a CC2652P7 chip.
Definition: chipinfo.h:360
ChipType_t
Chip type enumeration.
Definition: chipinfo.h:330
ChipFamily_t
Chip family enumeration.
Definition: chipinfo.h:381
25 means that this is a CC1352R7 chip.
Definition: chipinfo.h:357
ChipFamily_t ChipInfo_GetChipFamily(void)
Returns chip family member.
Definition: chipinfo.c:100
23 means that this is a CC1312R7 chip.
Definition: chipinfo.h:355
Here is the call graph for this function:

§ ChipInfo_GetDeviceIdHwRevCode()

static uint32_t ChipInfo_GetDeviceIdHwRevCode ( void  )
inlinestatic

Returns the internal chip HW revision code.

Returns
Returns the internal chip HW revision code (in range 0-15)

Referenced by ChipInfo_GetHwRevision().

279 {
280  // Returns HwRevCode = FCFG1_O_ICEPICK_DEVICE_ID[31:28]
281  return ( HWREG( FCFG1_BASE + FCFG1_O_ICEPICK_DEVICE_ID ) >> 28 );
282 }

§ ChipInfo_GetHwRevision()

HwRevision_t ChipInfo_GetHwRevision ( void  )

Returns chip HW revision.

Returns
Returns HwRevision_t

Referenced by ChipInfo_HwRevisionIs_1_0(), ChipInfo_HwRevisionIs_2_0(), ChipInfo_HwRevisionIs_2_1(), ChipInfo_HwRevisionIs_2_2(), ChipInfo_HwRevisionIs_GTEQ_2_0(), ChipInfo_HwRevisionIs_GTEQ_2_1(), ChipInfo_HwRevisionIs_GTEQ_2_2(), ChipInfo_HwRevisionIs_GTEQ_2_3(), and ChipInfo_HwRevisionIs_GTEQ_2_4().

169 {
170  HwRevision_t hwRev = HWREV_Unknown;
171  uint32_t fcfg1Rev = ChipInfo_GetDeviceIdHwRevCode();
172  uint32_t minorHwRev = ChipInfo_GetMinorHwRev();
174 
175  if ( chipFam == FAMILY_CC13x2x7_CC26x2x7 ) {
176  switch ( fcfg1Rev ) {
177  case 0 : // CC13x2x1x7, CC26x2x1x7 - PG1.0
178  hwRev = (HwRevision_t)(((uint32_t)HWREV_1_0 ) + minorHwRev );
179  break;
180  case 1 : // CC13x2x1x7, CC26x2x1x7 - PG1.1 (or later)
181  hwRev = (HwRevision_t)(((uint32_t)HWREV_1_1 ) + minorHwRev );
182  break;
183  }
184  }
185 
186  return ( hwRev );
187 }
HwRevision_t
HW revision enumeration.
Definition: chipinfo.h:511
11 means that the chip's HW revision is 1.1
Definition: chipinfo.h:514
5 means that the chip is a CC13x2x7, CC26x2x7 family member.
Definition: chipinfo.h:388
-1 means that the chip's HW revision is unknown.
Definition: chipinfo.h:512
ChipFamily_t
Chip family enumeration.
Definition: chipinfo.h:381
ChipFamily_t ChipInfo_GetChipFamily(void)
Returns chip family member.
Definition: chipinfo.c:100
static uint32_t ChipInfo_GetDeviceIdHwRevCode(void)
Returns the internal chip HW revision code.
Definition: chipinfo.h:278
10 means that the chip's HW revision is 1.0
Definition: chipinfo.h:513
static uint32_t ChipInfo_GetMinorHwRev(void)
Returns minor hardware revision number.
Definition: chipinfo.h:296
Here is the call graph for this function:

§ ChipInfo_GetMinorHwRev()

static uint32_t ChipInfo_GetMinorHwRev ( void  )
inlinestatic

Returns minor hardware revision number.

The minor revision number is set to 0 for the first market released chip and thereafter incremented by 1 for each minor hardware change.

Returns
Returns the minor hardware revision number (in range 0-127)

Referenced by ChipInfo_GetHwRevision().

297 {
298  uint32_t minorRev = (( HWREG( FCFG1_BASE + FCFG1_O_MISC_CONF_1 ) &
299  FCFG1_MISC_CONF_1_DEVICE_MINOR_REV_M ) >>
300  FCFG1_MISC_CONF_1_DEVICE_MINOR_REV_S ) ;
301 
302  if ( minorRev >= 0x80 ) {
303  minorRev = 0;
304  }
305 
306  return( minorRev );
307 }

§ ChipInfo_GetPackageType()

PackageType_t ChipInfo_GetPackageType ( void  )

Returns package type.

Returns
Returns PackageType_t

Referenced by ChipInfo_PackageTypeIs4x4(), ChipInfo_PackageTypeIs5x5(), ChipInfo_PackageTypeIs7x7(), ChipInfo_PackageTypeIs7x7Q1(), ChipInfo_PackageTypeIsWAFER(), and ChipInfo_PackageTypeIsWCSP().

79 {
80  PackageType_t packType = (PackageType_t)((
81  HWREG( FCFG1_BASE + FCFG1_O_USER_ID ) &
82  FCFG1_USER_ID_PKG_M ) >>
83  FCFG1_USER_ID_PKG_S );
84 
85  if (( packType < PACKAGE_4x4 ) ||
86  ( packType > PACKAGE_7x7_SIP ) )
87  {
88  packType = PACKAGE_Unknown;
89  }
90 
91  return ( packType );
92 }
6 means that this is a 7x7 mm SiP module (Sytem in Package).
Definition: chipinfo.h:173
PackageType_t
Package type enumeration.
Definition: chipinfo.h:165
-1 means that current package type is unknown.
Definition: chipinfo.h:166
0 means that this is a 4x4 mm QFN (RHB) package.
Definition: chipinfo.h:167

§ ChipInfo_GetSupportedProtocol_BV()

ProtocolBitVector_t ChipInfo_GetSupportedProtocol_BV ( void  )

Returns bit vector showing supported protocols.

Returns
Returns ProtocolBitVector_t which is a bit vector indicating supported protocols.

Referenced by ChipInfo_SupportsBLE(), ChipInfo_SupportsIEEE_802_15_4(), and ChipInfo_SupportsPROPRIETARY().

68 {
69  return ((ProtocolBitVector_t)( HWREG( PRCM_BASE + 0x1D4 ) & 0x0E ));
70 }
ProtocolBitVector_t
Enumeration identifying the protocols supported.
Definition: chipinfo.h:98

§ ChipInfo_GetUserId()

static uint32_t ChipInfo_GetUserId ( void  )
inlinestatic

Returns the 32 bits USER_ID field.

How to decode the USER_ID filed is described in the Technical Reference Manual (TRM)

Returns
Returns the 32 bits USER_ID field

Referenced by ChipInfo_GetChipType().

321 {
322  return ( HWREG( FCFG1_BASE + FCFG1_O_USER_ID ));
323 }

§ ChipInfo_HwRevisionIs_1_0()

static bool ChipInfo_HwRevisionIs_1_0 ( void  )
inlinestatic

Returns true if HW revision for this chip is 1.0.

Returns
Returns true if HW revision for this chip is 1.0, false otherwise.
543 {
544  return ( ChipInfo_GetHwRevision() == HWREV_1_0 );
545 }
HwRevision_t ChipInfo_GetHwRevision(void)
Returns chip HW revision.
Definition: chipinfo.c:168
10 means that the chip&#39;s HW revision is 1.0
Definition: chipinfo.h:513
Here is the call graph for this function:

§ ChipInfo_HwRevisionIs_2_0()

static bool ChipInfo_HwRevisionIs_2_0 ( void  )
inlinestatic

Returns true if HW revision for this chip is 2.0.

Returns
Returns true if HW revision for this chip is 2.0, false otherwise.
557 {
558  return ( ChipInfo_GetHwRevision() == HWREV_2_0 );
559 }
HwRevision_t ChipInfo_GetHwRevision(void)
Returns chip HW revision.
Definition: chipinfo.c:168
20 means that the chip&#39;s HW revision is 2.0
Definition: chipinfo.h:515
Here is the call graph for this function:

§ ChipInfo_HwRevisionIs_2_1()

static bool ChipInfo_HwRevisionIs_2_1 ( void  )
inlinestatic

Returns true if HW revision for this chip is 2.1.

Returns
Returns true if HW revision for this chip is 2.1, false otherwise.
585 {
586  return ( ChipInfo_GetHwRevision() == HWREV_2_1 );
587 }
21 means that the chip&#39;s HW revision is 2.1
Definition: chipinfo.h:516
HwRevision_t ChipInfo_GetHwRevision(void)
Returns chip HW revision.
Definition: chipinfo.c:168
Here is the call graph for this function:

§ ChipInfo_HwRevisionIs_2_2()

static bool ChipInfo_HwRevisionIs_2_2 ( void  )
inlinestatic

Returns true if HW revision for this chip is 2.2.

Returns
Returns true if HW revision for this chip is 2.2, false otherwise.
613 {
614  return ( ChipInfo_GetHwRevision() == HWREV_2_2 );
615 }
HwRevision_t ChipInfo_GetHwRevision(void)
Returns chip HW revision.
Definition: chipinfo.c:168
22 means that the chip&#39;s HW revision is 2.2
Definition: chipinfo.h:517
Here is the call graph for this function:

§ ChipInfo_HwRevisionIs_GTEQ_2_0()

static bool ChipInfo_HwRevisionIs_GTEQ_2_0 ( void  )
inlinestatic

Returns true if HW revision for this chip is 2.0 or greater.

Returns
Returns true if HW revision for this chip is 2.0 or greater, false otherwise.
571 {
572  return ( ChipInfo_GetHwRevision() >= HWREV_2_0 );
573 }
HwRevision_t ChipInfo_GetHwRevision(void)
Returns chip HW revision.
Definition: chipinfo.c:168
20 means that the chip&#39;s HW revision is 2.0
Definition: chipinfo.h:515
Here is the call graph for this function:

§ ChipInfo_HwRevisionIs_GTEQ_2_1()

static bool ChipInfo_HwRevisionIs_GTEQ_2_1 ( void  )
inlinestatic

Returns true if HW revision for this chip is 2.1 or greater.

Returns
Returns true if HW revision for this chip is 2.1 or greater, false otherwise.
599 {
600  return ( ChipInfo_GetHwRevision() >= HWREV_2_1 );
601 }
21 means that the chip&#39;s HW revision is 2.1
Definition: chipinfo.h:516
HwRevision_t ChipInfo_GetHwRevision(void)
Returns chip HW revision.
Definition: chipinfo.c:168
Here is the call graph for this function:

§ ChipInfo_HwRevisionIs_GTEQ_2_2()

static bool ChipInfo_HwRevisionIs_GTEQ_2_2 ( void  )
inlinestatic

Returns true if HW revision for this chip is 2.2 or greater.

Returns
Returns true if HW revision for this chip is 2.2 or greater, false otherwise.
627 {
628  return ( ChipInfo_GetHwRevision() >= HWREV_2_2 );
629 }
HwRevision_t ChipInfo_GetHwRevision(void)
Returns chip HW revision.
Definition: chipinfo.c:168
22 means that the chip&#39;s HW revision is 2.2
Definition: chipinfo.h:517
Here is the call graph for this function:

§ ChipInfo_HwRevisionIs_GTEQ_2_3()

static bool ChipInfo_HwRevisionIs_GTEQ_2_3 ( void  )
inlinestatic

Returns true if HW revision for this chip is 2.3 or greater.

Returns
Returns true if HW revision for this chip is 2.3 or greater, false otherwise.
641 {
642  return ( ChipInfo_GetHwRevision() >= HWREV_2_3 );
643 }
23 means that the chip&#39;s HW revision is 2.3
Definition: chipinfo.h:518
HwRevision_t ChipInfo_GetHwRevision(void)
Returns chip HW revision.
Definition: chipinfo.c:168
Here is the call graph for this function:

§ ChipInfo_HwRevisionIs_GTEQ_2_4()

static bool ChipInfo_HwRevisionIs_GTEQ_2_4 ( void  )
inlinestatic

Returns true if HW revision for this chip is 2.4 or greater.

Returns
Returns true if HW revision for this chip is 2.4 or greater, false otherwise.
655 {
656  return ( ChipInfo_GetHwRevision() >= HWREV_2_4 );
657 }
HwRevision_t ChipInfo_GetHwRevision(void)
Returns chip HW revision.
Definition: chipinfo.c:168
24 means that the chip&#39;s HW revision is 2.4
Definition: chipinfo.h:519
Here is the call graph for this function:

§ ChipInfo_PackageTypeIs4x4()

static bool ChipInfo_PackageTypeIs4x4 ( void  )
inlinestatic

Returns true if this is a 4x4mm chip.

Returns
Returns true if this is a 4x4mm chip, false otherwise.
196 {
197  return ( ChipInfo_GetPackageType() == PACKAGE_4x4 );
198 }
PackageType_t ChipInfo_GetPackageType(void)
Returns package type.
Definition: chipinfo.c:78
0 means that this is a 4x4 mm QFN (RHB) package.
Definition: chipinfo.h:167
Here is the call graph for this function:

§ ChipInfo_PackageTypeIs5x5()

static bool ChipInfo_PackageTypeIs5x5 ( void  )
inlinestatic

Returns true if this is a 5x5mm chip.

Returns
Returns true if this is a 5x5mm chip, false otherwise.
210 {
211  return ( ChipInfo_GetPackageType() == PACKAGE_5x5 );
212 }
PackageType_t ChipInfo_GetPackageType(void)
Returns package type.
Definition: chipinfo.c:78
1 means that this is a 5x5 mm package.
Definition: chipinfo.h:168
Here is the call graph for this function:

§ ChipInfo_PackageTypeIs7x7()

static bool ChipInfo_PackageTypeIs7x7 ( void  )
inlinestatic

Returns true if this is a 7x7mm chip.

Returns
Returns true if this is a 7x7mm chip, false otherwise.
224 {
225  return ( ChipInfo_GetPackageType() == PACKAGE_7x7 );
226 }
PackageType_t ChipInfo_GetPackageType(void)
Returns package type.
Definition: chipinfo.c:78
2 means that this is a 7x7 mm QFN (RGZ) package.
Definition: chipinfo.h:169
Here is the call graph for this function:

§ ChipInfo_PackageTypeIs7x7Q1()

static bool ChipInfo_PackageTypeIs7x7Q1 ( void  )
inlinestatic

Returns true if this is a 7x7 Q1 chip.

Returns
Returns true if this is a 7x7 Q1 chip, false otherwise.
266 {
267  return ( ChipInfo_GetPackageType() == PACKAGE_7x7_Q1 );
268 }
5 means that this is a 7x7 mm QFN package with Wettable Flanks.
Definition: chipinfo.h:172
PackageType_t ChipInfo_GetPackageType(void)
Returns package type.
Definition: chipinfo.c:78
Here is the call graph for this function:

§ ChipInfo_PackageTypeIsWAFER()

static bool ChipInfo_PackageTypeIsWAFER ( void  )
inlinestatic

Returns true if this is a wafer sale chip (naked die).

Returns
Returns true if this is a wafer sale chip, false otherwise.
238 {
239  return ( ChipInfo_GetPackageType() == PACKAGE_WAFER );
240 }
PackageType_t ChipInfo_GetPackageType(void)
Returns package type.
Definition: chipinfo.c:78
3 means that this is a wafer sale package (naked die).
Definition: chipinfo.h:170
Here is the call graph for this function:

§ ChipInfo_PackageTypeIsWCSP()

static bool ChipInfo_PackageTypeIsWCSP ( void  )
inlinestatic

Returns true if this is a WCSP chip (flip chip).

Returns
Returns true if this is a WCSP chip, false otherwise.
252 {
253  return ( ChipInfo_GetPackageType() == PACKAGE_WCSP );
254 }
PackageType_t ChipInfo_GetPackageType(void)
Returns package type.
Definition: chipinfo.c:78
4 means that this is a 2.7x2.7 mm WCSP (YFV).
Definition: chipinfo.h:171
Here is the call graph for this function:

§ ChipInfo_SupportsBLE()

static bool ChipInfo_SupportsBLE ( void  )
inlinestatic

Returns true if the chip supports the BLE protocol.

Returns
Returns true if supporting the BLE protocol, false otherwise.
125 {
126  return (( ChipInfo_GetSupportedProtocol_BV() & PROTOCOLBIT_BLE ) != 0 );
127 }
ProtocolBitVector_t ChipInfo_GetSupportedProtocol_BV(void)
Returns bit vector showing supported protocols.
Definition: chipinfo.c:67
Bit[1] set, indicates that Bluetooth Low Energy is supported.
Definition: chipinfo.h:100
Here is the call graph for this function:

§ ChipInfo_SupportsIEEE_802_15_4()

static bool ChipInfo_SupportsIEEE_802_15_4 ( void  )
inlinestatic

Returns true if the chip supports the IEEE 802.15.4 protocol.

Returns
Returns true if supporting the IEEE 802.15.4 protocol, false otherwise.
139 {
141 }
ProtocolBitVector_t ChipInfo_GetSupportedProtocol_BV(void)
Returns bit vector showing supported protocols.
Definition: chipinfo.c:67
Bit[2] set, indicates that IEEE 802.15.4 is supported.
Definition: chipinfo.h:101
Here is the call graph for this function:

§ ChipInfo_SupportsPROPRIETARY()

static bool ChipInfo_SupportsPROPRIETARY ( void  )
inlinestatic

Returns true if the chip supports proprietary protocols.

Returns
Returns true if supporting proprietary protocols, false otherwise.
153 {
155 }
Bit[3] set, indicates that proprietary protocols are supported.
Definition: chipinfo.h:102
ProtocolBitVector_t ChipInfo_GetSupportedProtocol_BV(void)
Returns bit vector showing supported protocols.
Definition: chipinfo.c:67
Here is the call graph for this function:

§ ThisLibraryIsFor_CC13x2x7_CC26x2x7_HaltIfViolated()

void ThisLibraryIsFor_CC13x2x7_CC26x2x7_HaltIfViolated ( void  )

Verifies that current chip is CC13x2x7 or CC26x2x7 and never returns if violated.

Returns
None

Referenced by ChipInfo_HwRevisionIs_GTEQ_2_4(), and SetupTrimDevice().

194 {
196  {
197  while(1)
198  {
199  // This driverlib version is for the CC13x2x7/CC26x2x7 chips.
200  // Do nothing - stay here forever
201  }
202  }
203 }
static bool ChipInfo_ChipFamilyIs_CC13x2x7_CC26x2x7(void)
Returns true if this chip is member of the CC13x2x7, CC26x2x7 family.
Definition: chipinfo.h:501
Here is the call graph for this function:

Macro Definition Documentation

§ DRIVERLIB_BUILD_CC13X0

#define DRIVERLIB_BUILD_CC13X0   1

1 is the driverlib build ID for the cc13x0 driverlib.

§ DRIVERLIB_BUILD_CC13X1_CC26X1

#define DRIVERLIB_BUILD_CC13X1_CC26X1   2

2 is the driverlib build ID for the cc13x1_cc26x1 driverlib.

§ DRIVERLIB_BUILD_CC13X2_CC26X2

#define DRIVERLIB_BUILD_CC13X2_CC26X2   4

4 is the driverlib build ID for the cc13x2_cc26x2 driverlib.

§ DRIVERLIB_BUILD_CC13X2X7_CC26X2X7

#define DRIVERLIB_BUILD_CC13X2X7_CC26X2X7   5

5 is the driverlib build ID for the cc13x2x7_cc26x2x7 driverlib.

§ DRIVERLIB_BUILD_CC26X0

#define DRIVERLIB_BUILD_CC26X0   0

0 is the driverlib build ID for the cc26x0 driverlib.

§ DRIVERLIB_BUILD_CC26X0R2

#define DRIVERLIB_BUILD_CC26X0R2   3

3 is the driverlib build ID for the cc26x0r2 driverlib.

§ THIS_DRIVERLIB_BUILD

#define THIS_DRIVERLIB_BUILD   DRIVERLIB_BUILD_CC13X2X7_CC26X2X7

Define THIS_DRIVERLIB_BUILD, identifying current driverlib build ID.

This driverlib build identifier can be useful for compile time checking/optimization (supporting C preprocessor expressions).

Enumeration Type Documentation

§ ChipFamily_t

Chip family enumeration.

Enumerator
FAMILY_Unknown 

-1 means that the chip's family member is unknown.

FAMILY_CC26x0 

0 means that the chip is a CC26x0 family member.

FAMILY_CC13x0 

1 means that the chip is a CC13x0 family member.

FAMILY_CC13x1_CC26x1 

2 means that the chip is a CC13x1, CC26x1 family member.

FAMILY_CC26x0R2 

3 means that the chip is a CC26x0R2 family (new ROM contents).

FAMILY_CC13x2_CC26x2 

4 means that the chip is a CC13x2, CC26x2 family member.

FAMILY_CC13x2x7_CC26x2x7 

5 means that the chip is a CC13x2x7, CC26x2x7 family member.

381  {
382  FAMILY_Unknown = -1,
383  FAMILY_CC26x0 = 0,
384  FAMILY_CC13x0 = 1,
386  FAMILY_CC26x0R2 = 3,
389 } ChipFamily_t;
0 means that the chip is a CC26x0 family member.
Definition: chipinfo.h:383
4 means that the chip is a CC13x2, CC26x2 family member.
Definition: chipinfo.h:387
2 means that the chip is a CC13x1, CC26x1 family member.
Definition: chipinfo.h:385
-1 means that the chip&#39;s family member is unknown.
Definition: chipinfo.h:382
3 means that the chip is a CC26x0R2 family (new ROM contents).
Definition: chipinfo.h:386
5 means that the chip is a CC13x2x7, CC26x2x7 family member.
Definition: chipinfo.h:388
1 means that the chip is a CC13x0 family member.
Definition: chipinfo.h:384
ChipFamily_t
Chip family enumeration.
Definition: chipinfo.h:381

§ ChipType_t

enum ChipType_t

Chip type enumeration.

Enumerator
CHIP_TYPE_Unknown 

-1 means that the chip type is unknown.

CHIP_TYPE_CC1310 

0 means that this is a CC1310 chip.

CHIP_TYPE_CC1350 

1 means that this is a CC1350 chip.

CHIP_TYPE_CC2620 

2 means that this is a CC2620 chip.

CHIP_TYPE_CC2630 

3 means that this is a CC2630 chip.

CHIP_TYPE_CC2640 

4 means that this is a CC2640 chip.

CHIP_TYPE_CC2650 

5 means that this is a CC2650 chip.

CHIP_TYPE_CUSTOM_0 

6 means that this is a CUSTOM_0 chip.

CHIP_TYPE_CUSTOM_1 

7 means that this is a CUSTOM_1 chip.

CHIP_TYPE_CC2640R2 

8 means that this is a CC2640R2 chip.

CHIP_TYPE_CC2642 

9 means that this is a CC2642 chip.

CHIP_TYPE_unused0 

10 unused value

CHIP_TYPE_CC2652 

11 means that this is a CC2652 chip.

CHIP_TYPE_CC1312 

12 means that this is a CC1312 chip.

CHIP_TYPE_CC1352 

13 means that this is a CC1352 chip.

CHIP_TYPE_CC1352P 

14 means that this is a CC1352P chip.

CHIP_TYPE_CC2652P 

15 means that this is a CC2652P chip.

CHIP_TYPE_CC2652RB 

16 means that this is a CC2652RB chip.

CHIP_TYPE_CC2652PB 

17 means that this is a CC2652PB chip.

CHIP_TYPE_CC1311R3 

18 means that this is a CC1311R3 chip.

CHIP_TYPE_CC1311P3 

19 means that this is a CC1311P3 chip.

CHIP_TYPE_CC2651R3 

20 means that this is a CC2651R3 chip.

CHIP_TYPE_CC2651P3 

21 means that this is a CC2651P3 chip.

CHIP_TYPE_CC2641R3 

22 means that this is a CC2641R3 chip.

CHIP_TYPE_CC1312R7 

23 means that this is a CC1312R7 chip.

CHIP_TYPE_unused1 

24 unused value

CHIP_TYPE_CC1352R7 

25 means that this is a CC1352R7 chip.

CHIP_TYPE_CC1352P7 

26 means that this is a CC1352P7 chip.

CHIP_TYPE_CC2652R7 

27 means that this is a CC2652R7 chip.

CHIP_TYPE_CC2652P7 

28 means that this is a CC2652P7 chip.

CHIP_TYPE_unused2 

29 unused value

CHIP_TYPE_CC2672R3 

37 means that this is a CC2672R3 chip.

CHIP_TYPE_CC2672P3 

38 means that this is a CC2672P3 chip.

330  {
331  CHIP_TYPE_Unknown = -1,
332  CHIP_TYPE_CC1310 = 0,
333  CHIP_TYPE_CC1350 = 1,
334  CHIP_TYPE_CC2620 = 2,
335  CHIP_TYPE_CC2630 = 3,
336  CHIP_TYPE_CC2640 = 4,
337  CHIP_TYPE_CC2650 = 5,
338  CHIP_TYPE_CUSTOM_0 = 6,
339  CHIP_TYPE_CUSTOM_1 = 7,
340  CHIP_TYPE_CC2640R2 = 8,
341  CHIP_TYPE_CC2642 = 9,
342  CHIP_TYPE_unused0 = 10,
343  CHIP_TYPE_CC2652 = 11,
344  CHIP_TYPE_CC1312 = 12,
345  CHIP_TYPE_CC1352 = 13,
346  CHIP_TYPE_CC1352P = 14,
347  CHIP_TYPE_CC2652P = 15,
348  CHIP_TYPE_CC2652RB = 16,
349  CHIP_TYPE_CC2652PB = 17,
350  CHIP_TYPE_CC1311R3 = 18,
351  CHIP_TYPE_CC1311P3 = 19,
352  CHIP_TYPE_CC2651R3 = 20,
353  CHIP_TYPE_CC2651P3 = 21,
354  CHIP_TYPE_CC2641R3 = 22,
355  CHIP_TYPE_CC1312R7 = 23,
356  CHIP_TYPE_unused1 = 24,
357  CHIP_TYPE_CC1352R7 = 25,
358  CHIP_TYPE_CC1352P7 = 26,
359  CHIP_TYPE_CC2652R7 = 27,
360  CHIP_TYPE_CC2652P7 = 28,
361  CHIP_TYPE_unused2 = 29,
362  CHIP_TYPE_CC2672R3 = 37,
363  CHIP_TYPE_CC2672P3 = 38,
364 } ChipType_t;
24 unused value
Definition: chipinfo.h:356
13 means that this is a CC1352 chip.
Definition: chipinfo.h:345
9 means that this is a CC2642 chip.
Definition: chipinfo.h:341
0 means that this is a CC1310 chip.
Definition: chipinfo.h:332
15 means that this is a CC2652P chip.
Definition: chipinfo.h:347
37 means that this is a CC2672R3 chip.
Definition: chipinfo.h:362
17 means that this is a CC2652PB chip.
Definition: chipinfo.h:349
16 means that this is a CC2652RB chip.
Definition: chipinfo.h:348
26 means that this is a CC1352P7 chip.
Definition: chipinfo.h:358
38 means that this is a CC2672P3 chip.
Definition: chipinfo.h:363
10 unused value
Definition: chipinfo.h:342
5 means that this is a CC2650 chip.
Definition: chipinfo.h:337
27 means that this is a CC2652R7 chip.
Definition: chipinfo.h:359
-1 means that the chip type is unknown.
Definition: chipinfo.h:331
14 means that this is a CC1352P chip.
Definition: chipinfo.h:346
11 means that this is a CC2652 chip.
Definition: chipinfo.h:343
7 means that this is a CUSTOM_1 chip.
Definition: chipinfo.h:339
3 means that this is a CC2630 chip.
Definition: chipinfo.h:335
1 means that this is a CC1350 chip.
Definition: chipinfo.h:333
6 means that this is a CUSTOM_0 chip.
Definition: chipinfo.h:338
28 means that this is a CC2652P7 chip.
Definition: chipinfo.h:360
29 unused value
Definition: chipinfo.h:361
4 means that this is a CC2640 chip.
Definition: chipinfo.h:336
ChipType_t
Chip type enumeration.
Definition: chipinfo.h:330
20 means that this is a CC2651R3 chip.
Definition: chipinfo.h:352
18 means that this is a CC1311R3 chip.
Definition: chipinfo.h:350
25 means that this is a CC1352R7 chip.
Definition: chipinfo.h:357
12 means that this is a CC1312 chip.
Definition: chipinfo.h:344
8 means that this is a CC2640R2 chip.
Definition: chipinfo.h:340
23 means that this is a CC1312R7 chip.
Definition: chipinfo.h:355
19 means that this is a CC1311P3 chip.
Definition: chipinfo.h:351
21 means that this is a CC2651P3 chip.
Definition: chipinfo.h:353
2 means that this is a CC2620 chip.
Definition: chipinfo.h:334
22 means that this is a CC2641R3 chip.
Definition: chipinfo.h:354

§ HwRevision_t

HW revision enumeration.

Enumerator
HWREV_Unknown 

-1 means that the chip's HW revision is unknown.

HWREV_1_0 

10 means that the chip's HW revision is 1.0

HWREV_1_1 

11 means that the chip's HW revision is 1.1

HWREV_2_0 

20 means that the chip's HW revision is 2.0

HWREV_2_1 

21 means that the chip's HW revision is 2.1

HWREV_2_2 

22 means that the chip's HW revision is 2.2

HWREV_2_3 

23 means that the chip's HW revision is 2.3

HWREV_2_4 

24 means that the chip's HW revision is 2.4

HWREV_3_0 

30 means that the chip's HW revision is 3.0

511  {
512  HWREV_Unknown = -1,
513  HWREV_1_0 = 10,
514  HWREV_1_1 = 11,
515  HWREV_2_0 = 20,
516  HWREV_2_1 = 21,
517  HWREV_2_2 = 22,
518  HWREV_2_3 = 23,
519  HWREV_2_4 = 24,
520  HWREV_3_0 = 30
521 } HwRevision_t;
HwRevision_t
HW revision enumeration.
Definition: chipinfo.h:511
23 means that the chip&#39;s HW revision is 2.3
Definition: chipinfo.h:518
11 means that the chip&#39;s HW revision is 1.1
Definition: chipinfo.h:514
30 means that the chip&#39;s HW revision is 3.0
Definition: chipinfo.h:520
21 means that the chip&#39;s HW revision is 2.1
Definition: chipinfo.h:516
-1 means that the chip&#39;s HW revision is unknown.
Definition: chipinfo.h:512
20 means that the chip&#39;s HW revision is 2.0
Definition: chipinfo.h:515
22 means that the chip&#39;s HW revision is 2.2
Definition: chipinfo.h:517
24 means that the chip&#39;s HW revision is 2.4
Definition: chipinfo.h:519
10 means that the chip&#39;s HW revision is 1.0
Definition: chipinfo.h:513

§ PackageType_t

Package type enumeration.

Note
Packages available for a specific device are shown in the device datasheet.
Enumerator
PACKAGE_Unknown 

-1 means that current package type is unknown.

PACKAGE_4x4 

0 means that this is a 4x4 mm QFN (RHB) package.

PACKAGE_5x5 

1 means that this is a 5x5 mm package.

PACKAGE_7x7 

2 means that this is a 7x7 mm QFN (RGZ) package.

PACKAGE_WAFER 

3 means that this is a wafer sale package (naked die).

PACKAGE_WCSP 

4 means that this is a 2.7x2.7 mm WCSP (YFV).

PACKAGE_7x7_Q1 

5 means that this is a 7x7 mm QFN package with Wettable Flanks.

PACKAGE_7x7_SIP 

6 means that this is a 7x7 mm SiP module (Sytem in Package).

165  {
166  PACKAGE_Unknown = -1,
167  PACKAGE_4x4 = 0,
168  PACKAGE_5x5 = 1,
169  PACKAGE_7x7 = 2,
170  PACKAGE_WAFER = 3,
171  PACKAGE_WCSP = 4,
172  PACKAGE_7x7_Q1 = 5,
173  PACKAGE_7x7_SIP = 6
174 } PackageType_t;
5 means that this is a 7x7 mm QFN package with Wettable Flanks.
Definition: chipinfo.h:172
6 means that this is a 7x7 mm SiP module (Sytem in Package).
Definition: chipinfo.h:173
PackageType_t
Package type enumeration.
Definition: chipinfo.h:165
-1 means that current package type is unknown.
Definition: chipinfo.h:166
4 means that this is a 2.7x2.7 mm WCSP (YFV).
Definition: chipinfo.h:171
3 means that this is a wafer sale package (naked die).
Definition: chipinfo.h:170
1 means that this is a 5x5 mm package.
Definition: chipinfo.h:168
0 means that this is a 4x4 mm QFN (RHB) package.
Definition: chipinfo.h:167
2 means that this is a 7x7 mm QFN (RGZ) package.
Definition: chipinfo.h:169

§ ProtocolBitVector_t

Enumeration identifying the protocols supported.

Note
This is a bit vector enumeration that indicates supported protocols. E.g: 0x06 means that the chip supports both BLE and IEEE 802.15.4
Enumerator
PROTOCOL_Unknown 

None of the known protocols are supported.

PROTOCOLBIT_BLE 

Bit[1] set, indicates that Bluetooth Low Energy is supported.

PROTOCOLBIT_IEEE_802_15_4 

Bit[2] set, indicates that IEEE 802.15.4 is supported.

PROTOCOLBIT_Proprietary 

Bit[3] set, indicates that proprietary protocols are supported.

98  {
99  PROTOCOL_Unknown = 0 ,
100  PROTOCOLBIT_BLE = 0x02,
None of the known protocols are supported.
Definition: chipinfo.h:99
Bit[3] set, indicates that proprietary protocols are supported.
Definition: chipinfo.h:102
Bit[1] set, indicates that Bluetooth Low Energy is supported.
Definition: chipinfo.h:100
ProtocolBitVector_t
Enumeration identifying the protocols supported.
Definition: chipinfo.h:98
Bit[2] set, indicates that IEEE 802.15.4 is supported.
Definition: chipinfo.h:101