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_CC26x1 (void)
 Returns true if this chip is member of the CC26x1 family. More...
 
static bool ChipInfo_ChipFamilyIs_CC13x2_CC26x2 (void)
 Returns true if this chip is member of the CC13x2, CC26x2 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_CC13x2_CC26x2_HwRev20AndLater_HaltIfViolated (void)
 Verifies that current chip is CC13x2 or CC26x2 PG2.0 or later 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 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_unused = 10,
  CHIP_TYPE_CC2652 = 11, CHIP_TYPE_CC1312 = 12, CHIP_TYPE_CC1352 = 13, CHIP_TYPE_CC1352P = 14,
  CHIP_TYPE_CC2652P = 15
}
 Chip type enumeration. More...
 
enum  ChipFamily_t {
  FAMILY_Unknown = -1, FAMILY_CC26x0 = 0, FAMILY_CC13x0 = 1, FAMILY_CC26x1 = 2,
  FAMILY_CC26x0R2 = 3, FAMILY_CC13x2_CC26x2 = 4
}
 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
}
 HW revision enumeration. More...
 

Detailed Description

Function Documentation

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.
414 {
415  return ( ChipInfo_GetChipFamily() == FAMILY_CC13x0 );
416 }
1 means that the chip is a CC13x0 family member.
Definition: chipinfo.h:368
ChipFamily_t ChipInfo_GetChipFamily(void)
Returns chip family member.
Definition: chipinfo.c:101

Here is the call graph for this function:

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.

Referenced by ThisLibraryIsFor_CC13x2_CC26x2_HwRev20AndLater_HaltIfViolated().

470 {
472 }
4 means that the chip is a CC13x2, CC26x2 family member.
Definition: chipinfo.h:371
ChipFamily_t ChipInfo_GetChipFamily(void)
Returns chip family member.
Definition: chipinfo.c:101

Here is the call graph for this function:

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.
428 {
429  return ( ChipInfo_GetChipFamily() == FAMILY_CC26x0 );
430 }
0 means that the chip is a CC26x0 family member.
Definition: chipinfo.h:367
ChipFamily_t ChipInfo_GetChipFamily(void)
Returns chip family member.
Definition: chipinfo.c:101

Here is the call graph for this function:

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.
442 {
443  return ( ChipInfo_GetChipFamily() == FAMILY_CC26x0R2 );
444 }
3 means that the chip is a CC26x0R2 family (new ROM contents).
Definition: chipinfo.h:370
ChipFamily_t ChipInfo_GetChipFamily(void)
Returns chip family member.
Definition: chipinfo.c:101

Here is the call graph for this function:

static bool ChipInfo_ChipFamilyIs_CC26x1 ( void  )
inlinestatic

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

Returns
Returns true if this chip is member of the CC26x1 family, false otherwise.
456 {
457  return ( ChipInfo_GetChipFamily() == FAMILY_CC26x1 );
458 }
2 means that the chip is a CC26x1 family member.
Definition: chipinfo.h:369
ChipFamily_t ChipInfo_GetChipFamily(void)
Returns chip family member.
Definition: chipinfo.c:101

Here is the call graph for this function:

ChipFamily_t ChipInfo_GetChipFamily ( void  )

Returns chip family member.

Returns
Returns ChipFamily_t

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

102 {
103  uint32_t waferId ;
104  ChipFamily_t chipFam = FAMILY_Unknown ;
105 
106  waferId = (( HWREG( FCFG1_BASE + FCFG1_O_ICEPICK_DEVICE_ID ) &
109 
110  if ( waferId == 0xBB41 ) {
111  chipFam = FAMILY_CC13x2_CC26x2 ;
112  }
113 
114  return ( chipFam );
115 }
4 means that the chip is a CC13x2, CC26x2 family member.
Definition: chipinfo.h:371
-1 means that the chip's family member is unknown.
Definition: chipinfo.h:366
ChipFamily_t
Chip family enumeration.
Definition: chipinfo.h:365
ChipType_t ChipInfo_GetChipType ( void  )

Returns chip type.

Returns
Returns ChipType_t
124 {
125  ChipType_t chipType = CHIP_TYPE_Unknown ;
127  uint32_t fcfg1UserId = ChipInfo_GetUserId() ;
128  uint32_t fcfg1Protocol = (( fcfg1UserId & FCFG1_USER_ID_PROTOCOL_M ) >>
130  uint32_t fcfg1Cc13 = (( fcfg1UserId & FCFG1_USER_ID_CC13_M ) >>
132  uint32_t fcfg1Pa = (( fcfg1UserId & FCFG1_USER_ID_PA_M ) >>
134 
135  if ( chipFam == FAMILY_CC13x2_CC26x2 ) {
136  switch ( fcfg1Protocol ) {
137  case 0xF :
138  if( fcfg1Cc13 ) {
139  if ( fcfg1Pa ) {
140  chipType = CHIP_TYPE_CC1352P ;
141  } else {
142  chipType = CHIP_TYPE_CC1352 ;
143  }
144  } else {
145  if ( fcfg1Pa ) {
146  chipType = CHIP_TYPE_CC2652P ;
147  } else {
148  chipType = CHIP_TYPE_CC2652 ;
149  }
150  }
151  break;
152  case 0x9 :
153  if( fcfg1Pa ) {
154  chipType = CHIP_TYPE_unused ;
155  } else {
156  chipType = CHIP_TYPE_CC2642 ;
157  }
158  break;
159  case 0x8 :
160  chipType = CHIP_TYPE_CC1312 ;
161  break;
162  }
163  }
164 
165  return ( chipType );
166 }
13 means that this is a CC1352 chip.
Definition: chipinfo.h:345
9 means that this is a CC2642 chip.
Definition: chipinfo.h:341
4 means that the chip is a CC13x2, CC26x2 family member.
Definition: chipinfo.h:371
15 means that this is a CC2652P chip.
Definition: chipinfo.h:347
static uint32_t ChipInfo_GetUserId(void)
Returns the 32 bits USER_ID field.
Definition: chipinfo.h:320
-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
ChipType_t
Chip type enumeration.
Definition: chipinfo.h:330
ChipFamily_t
Chip family enumeration.
Definition: chipinfo.h:365
ChipFamily_t ChipInfo_GetChipFamily(void)
Returns chip family member.
Definition: chipinfo.c:101
12 means that this is a CC1312 chip.
Definition: chipinfo.h:344
10 unused value
Definition: chipinfo.h:342

Here is the call graph for this function:

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 }
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().

175 {
176  HwRevision_t hwRev = HWREV_Unknown ;
177  uint32_t fcfg1Rev = ChipInfo_GetDeviceIdHwRevCode() ;
178  uint32_t minorHwRev = ChipInfo_GetMinorHwRev() ;
180 
181  if ( chipFam == FAMILY_CC13x2_CC26x2 ) {
182  switch ( fcfg1Rev ) {
183  case 0 : // CC13x2, CC26x2 - PG1.0
184  case 1 : // CC13x2, CC26x2 - PG1.01 (will also show up as PG1.0)
185  hwRev = (HwRevision_t)((uint32_t)HWREV_1_0 );
186  break;
187  case 2 : // CC13x2, CC26x2 - PG1.1 (or later)
188  hwRev = (HwRevision_t)(((uint32_t)HWREV_1_1 ) + minorHwRev );
189  break;
190  case 3 : // CC13x2, CC26x2 - PG2.1 (or later)
191  hwRev = (HwRevision_t)(((uint32_t)HWREV_2_1 ) + minorHwRev );
192  break;
193  }
194  }
195 
196  return ( hwRev );
197 }
4 means that the chip is a CC13x2, CC26x2 family member.
Definition: chipinfo.h:371
HwRevision_t
HW revision enumeration.
Definition: chipinfo.h:479
11 means that the chip's HW revision is 1.1
Definition: chipinfo.h:482
21 means that the chip's HW revision is 2.1
Definition: chipinfo.h:484
-1 means that the chip's HW revision is unknown.
Definition: chipinfo.h:480
ChipFamily_t
Chip family enumeration.
Definition: chipinfo.h:365
ChipFamily_t ChipInfo_GetChipFamily(void)
Returns chip family member.
Definition: chipinfo.c:101
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:481
static uint32_t ChipInfo_GetMinorHwRev(void)
Returns minor hardware revision number.
Definition: chipinfo.h:296

Here is the call graph for this function:

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 ) &
301 
302  if ( minorRev >= 0x80 ) {
303  minorRev = 0;
304  }
305 
306  return( minorRev );
307 }
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().

80 {
81  PackageType_t packType = (PackageType_t)((
82  HWREG( FCFG1_BASE + FCFG1_O_USER_ID ) &
85 
86  if (( packType < PACKAGE_4x4 ) ||
87  ( packType > PACKAGE_7x7_Q1 ) )
88  {
89  packType = PACKAGE_Unknown;
90  }
91 
92  return ( packType );
93 }
5 means that this is a 7x7 mm QFN package with Wettable Flanks.
Definition: chipinfo.h:173
PackageType_t
Package type enumeration.
Definition: chipinfo.h:166
-1 means that current package type is unknown.
Definition: chipinfo.h:167
0 means that this is a 4x4 mm QFN (RHB) package.
Definition: chipinfo.h:168
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().

69 {
70  return ((ProtocolBitVector_t)( HWREG( PRCM_BASE + 0x1D4 ) & 0x0E ));
71 }
ProtocolBitVector_t
Enumeration identifying the protocols supported.
Definition: chipinfo.h:99
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 }
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.
510 {
511  return ( ChipInfo_GetHwRevision() == HWREV_1_0 );
512 }
HwRevision_t ChipInfo_GetHwRevision(void)
Returns chip HW revision.
Definition: chipinfo.c:174
10 means that the chip's HW revision is 1.0
Definition: chipinfo.h:481

Here is the call graph for this function:

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.
524 {
525  return ( ChipInfo_GetHwRevision() == HWREV_2_0 );
526 }
HwRevision_t ChipInfo_GetHwRevision(void)
Returns chip HW revision.
Definition: chipinfo.c:174
20 means that the chip's HW revision is 2.0
Definition: chipinfo.h:483

Here is the call graph for this function:

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.
552 {
553  return ( ChipInfo_GetHwRevision() == HWREV_2_1 );
554 }
21 means that the chip's HW revision is 2.1
Definition: chipinfo.h:484
HwRevision_t ChipInfo_GetHwRevision(void)
Returns chip HW revision.
Definition: chipinfo.c:174

Here is the call graph for this function:

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.
580 {
581  return ( ChipInfo_GetHwRevision() == HWREV_2_2 );
582 }
HwRevision_t ChipInfo_GetHwRevision(void)
Returns chip HW revision.
Definition: chipinfo.c:174
22 means that the chip's HW revision is 2.2
Definition: chipinfo.h:485

Here is the call graph for this function:

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.

Referenced by ThisLibraryIsFor_CC13x2_CC26x2_HwRev20AndLater_HaltIfViolated().

538 {
539  return ( ChipInfo_GetHwRevision() >= HWREV_2_0 );
540 }
HwRevision_t ChipInfo_GetHwRevision(void)
Returns chip HW revision.
Definition: chipinfo.c:174
20 means that the chip's HW revision is 2.0
Definition: chipinfo.h:483

Here is the call graph for this function:

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.
566 {
567  return ( ChipInfo_GetHwRevision() >= HWREV_2_1 );
568 }
21 means that the chip's HW revision is 2.1
Definition: chipinfo.h:484
HwRevision_t ChipInfo_GetHwRevision(void)
Returns chip HW revision.
Definition: chipinfo.c:174

Here is the call graph for this function:

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.
594 {
595  return ( ChipInfo_GetHwRevision() >= HWREV_2_2 );
596 }
HwRevision_t ChipInfo_GetHwRevision(void)
Returns chip HW revision.
Definition: chipinfo.c:174
22 means that the chip's HW revision is 2.2
Definition: chipinfo.h:485

Here is the call graph for this function:

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.
608 {
609  return ( ChipInfo_GetHwRevision() >= HWREV_2_3 );
610 }
23 means that the chip's HW revision is 2.3
Definition: chipinfo.h:486
HwRevision_t ChipInfo_GetHwRevision(void)
Returns chip HW revision.
Definition: chipinfo.c:174

Here is the call graph for this function:

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.
622 {
623  return ( ChipInfo_GetHwRevision() >= HWREV_2_4 );
624 }
HwRevision_t ChipInfo_GetHwRevision(void)
Returns chip HW revision.
Definition: chipinfo.c:174
24 means that the chip's HW revision is 2.4
Definition: chipinfo.h:487

Here is the call graph for this function:

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:79
0 means that this is a 4x4 mm QFN (RHB) package.
Definition: chipinfo.h:168

Here is the call graph for this function:

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:79
1 means that this is a 5x5 mm QFN (RSM) package.
Definition: chipinfo.h:169

Here is the call graph for this function:

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:79
2 means that this is a 7x7 mm QFN (RGZ) package.
Definition: chipinfo.h:170

Here is the call graph for this function:

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:173
PackageType_t ChipInfo_GetPackageType(void)
Returns package type.
Definition: chipinfo.c:79

Here is the call graph for this function:

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:79
3 means that this is a wafer sale package (naked die).
Definition: chipinfo.h:171

Here is the call graph for this function:

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:79
4 means that this is a 2.7x2.7 mm WCSP (YFV).
Definition: chipinfo.h:172

Here is the call graph for this function:

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.
126 {
127  return (( ChipInfo_GetSupportedProtocol_BV() & PROTOCOLBIT_BLE ) != 0 );
128 }
ProtocolBitVector_t ChipInfo_GetSupportedProtocol_BV(void)
Returns bit vector showing supported protocols.
Definition: chipinfo.c:68
Bit[1] set, indicates that Bluetooth Low Energy is supported.
Definition: chipinfo.h:101

Here is the call graph for this function:

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.
140 {
142 }
ProtocolBitVector_t ChipInfo_GetSupportedProtocol_BV(void)
Returns bit vector showing supported protocols.
Definition: chipinfo.c:68
Bit[2] set, indicates that IEEE 802.15.4 is supported.
Definition: chipinfo.h:102

Here is the call graph for this function:

static bool ChipInfo_SupportsPROPRIETARY ( void  )
inlinestatic

Returns true if the chip supports proprietary protocols.

Returns
Returns true if supporting proprietary protocols, false otherwise.
154 {
156 }
Bit[3] set, indicates that proprietary protocols are supported.
Definition: chipinfo.h:103
ProtocolBitVector_t ChipInfo_GetSupportedProtocol_BV(void)
Returns bit vector showing supported protocols.
Definition: chipinfo.c:68

Here is the call graph for this function:

void ThisLibraryIsFor_CC13x2_CC26x2_HwRev20AndLater_HaltIfViolated ( void  )

Verifies that current chip is CC13x2 or CC26x2 PG2.0 or later and never returns if violated.

Returns
None

Referenced by SetupTrimDevice().

204 {
207  {
208  while(1)
209  {
210  // This driverlib version is for the CC13x2/CC26x2 PG2.0 and later chips.
211  // Do nothing - stay here forever
212  }
213  }
214 }
static bool ChipInfo_ChipFamilyIs_CC13x2_CC26x2(void)
Returns true if this chip is member of the CC13x2, CC26x2 family.
Definition: chipinfo.h:469
static bool ChipInfo_HwRevisionIs_GTEQ_2_0(void)
Returns true if HW revision for this chip is 2.0 or greater.
Definition: chipinfo.h:537

Here is the call graph for this function:

Macro Definition Documentation

#define DRIVERLIB_BUILD_CC13X0   1

1 is the driverlib build ID for the cc13x0 driverlib.

#define DRIVERLIB_BUILD_CC13X2_CC26X2   4

4 is the driverlib build ID for the cc13x2_cc26x2 driverlib.

#define DRIVERLIB_BUILD_CC26X0   0

0 is the driverlib build ID for the cc26x0 driverlib.

#define DRIVERLIB_BUILD_CC26X0R2   3

3 is the driverlib build ID for the cc26x0r2 driverlib.

#define DRIVERLIB_BUILD_CC26X1   2

2 is the driverlib build ID for the cc26x1 driverlib.

#define THIS_DRIVERLIB_BUILD   DRIVERLIB_BUILD_CC13X2_CC26X2

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

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_CC26x1 

2 means that the chip is a 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.

365  {
366  FAMILY_Unknown = -1,
367  FAMILY_CC26x0 = 0,
368  FAMILY_CC13x0 = 1,
369  FAMILY_CC26x1 = 2,
370  FAMILY_CC26x0R2 = 3,
372 } ChipFamily_t;
0 means that the chip is a CC26x0 family member.
Definition: chipinfo.h:367
4 means that the chip is a CC13x2, CC26x2 family member.
Definition: chipinfo.h:371
-1 means that the chip's family member is unknown.
Definition: chipinfo.h:366
3 means that the chip is a CC26x0R2 family (new ROM contents).
Definition: chipinfo.h:370
2 means that the chip is a CC26x1 family member.
Definition: chipinfo.h:369
1 means that the chip is a CC13x0 family member.
Definition: chipinfo.h:368
ChipFamily_t
Chip family enumeration.
Definition: chipinfo.h:365
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_unused 

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.

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_unused = 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 } ChipType_t;
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
5 means that this is a CC2650 chip.
Definition: chipinfo.h:337
-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
4 means that this is a CC2640 chip.
Definition: chipinfo.h:336
ChipType_t
Chip type enumeration.
Definition: chipinfo.h:330
12 means that this is a CC1312 chip.
Definition: chipinfo.h:344
8 means that this is a CC2640R2 chip.
Definition: chipinfo.h:340
10 unused value
Definition: chipinfo.h:342
2 means that this is a CC2620 chip.
Definition: chipinfo.h:334

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

479  {
480  HWREV_Unknown = -1,
481  HWREV_1_0 = 10,
482  HWREV_1_1 = 11,
483  HWREV_2_0 = 20,
484  HWREV_2_1 = 21,
485  HWREV_2_2 = 22,
486  HWREV_2_3 = 23,
487  HWREV_2_4 = 24
488 } HwRevision_t;
HwRevision_t
HW revision enumeration.
Definition: chipinfo.h:479
23 means that the chip's HW revision is 2.3
Definition: chipinfo.h:486
11 means that the chip's HW revision is 1.1
Definition: chipinfo.h:482
21 means that the chip's HW revision is 2.1
Definition: chipinfo.h:484
-1 means that the chip's HW revision is unknown.
Definition: chipinfo.h:480
20 means that the chip's HW revision is 2.0
Definition: chipinfo.h:483
22 means that the chip's HW revision is 2.2
Definition: chipinfo.h:485
24 means that the chip's HW revision is 2.4
Definition: chipinfo.h:487
10 means that the chip's HW revision is 1.0
Definition: chipinfo.h:481

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 QFN (RSM) 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.

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

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.

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