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_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_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_unused = 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_CC1312R7 = 23,
  CHIP_TYPE_unused1 = 24, CHIP_TYPE_CC1352R7 = 25, CHIP_TYPE_CC1352P7 = 26, CHIP_TYPE_CC2652R7 = 27,
  CHIP_TYPE_CC2652P7 = 28
}
 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

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.
425 {
426  return ( ChipInfo_GetChipFamily() == FAMILY_CC13x0 );
427 }
1 means that the chip is a CC13x0 family member.
Definition: chipinfo.h:377
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_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.
467 {
469 }
2 means that the chip is a CC13x1, CC26x1 family member.
Definition: chipinfo.h:378
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().

481 {
483 }
4 means that the chip is a CC13x2, CC26x2 family member.
Definition: chipinfo.h:380
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_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.
495 {
497 }
5 means that the chip is a CC13x2x7, CC26x2x7 family member.
Definition: chipinfo.h:381
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.
439 {
440  return ( ChipInfo_GetChipFamily() == FAMILY_CC26x0 );
441 }
0 means that the chip is a CC26x0 family member.
Definition: chipinfo.h:376
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.
453 {
454  return ( ChipInfo_GetChipFamily() == FAMILY_CC26x0R2 );
455 }
3 means that the chip is a CC26x0R2 family (new ROM contents).
Definition: chipinfo.h:379
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_CC13x1_CC26x1(), ChipInfo_ChipFamilyIs_CC13x2_CC26x2(), ChipInfo_ChipFamilyIs_CC13x2x7_CC26x2x7(), ChipInfo_ChipFamilyIs_CC26x0(), ChipInfo_ChipFamilyIs_CC26x0R2(), 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:380
-1 means that the chip's family member is unknown.
Definition: chipinfo.h:375
ChipFamily_t
Chip family enumeration.
Definition: chipinfo.h:374
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  uint32_t fcfg1Hposc = (( fcfg1UserId & 0x01000000 ) >> 24 ) ;
135 
136  if ( chipFam == FAMILY_CC13x2_CC26x2 ) {
137  switch ( fcfg1Protocol ) {
138  case 0xF :
139  if ( fcfg1Cc13 ) {
140  if ( fcfg1Pa ) {
141  chipType = CHIP_TYPE_CC1352P ;
142  } else {
143  chipType = CHIP_TYPE_CC1352 ;
144  }
145  } else {
146  // ! fcfg1Cc13
147  if ( fcfg1Pa && fcfg1Hposc ) {
148  chipType = CHIP_TYPE_CC2652PB ;
149  }
150  // ! fcfg1Hposc
151  else if ( fcfg1Pa ) {
152  chipType = CHIP_TYPE_CC2652P ;
153  }
154  // ! fcfg1Pa
155  else if ( fcfg1Hposc ) {
156  chipType = CHIP_TYPE_CC2652RB;
157  }
158  else {
159  chipType = CHIP_TYPE_CC2652 ;
160  }
161  }
162  break;
163  case 0x9 :
164  if ( fcfg1Pa ) {
165  chipType = CHIP_TYPE_unused ;
166  } else {
167  chipType = CHIP_TYPE_CC2642 ;
168  }
169  break;
170  case 0x8 :
171  chipType = CHIP_TYPE_CC1312 ;
172  break;
173  }
174  }
175 
176  return ( chipType );
177 }
13 means that this is a CC1352 chip.
Definition: chipinfo.h:346
9 means that this is a CC2642 chip.
Definition: chipinfo.h:342
4 means that the chip is a CC13x2, CC26x2 family member.
Definition: chipinfo.h:380
15 means that this is a CC2652P chip.
Definition: chipinfo.h:348
17 means that this is a CC2652PB chip.
Definition: chipinfo.h:350
16 means that this is a CC2652RB chip.
Definition: chipinfo.h:349
static uint32_t ChipInfo_GetUserId(void)
Returns the 32 bits USER_ID field.
Definition: chipinfo.h:321
-1 means that the chip type is unknown.
Definition: chipinfo.h:332
14 means that this is a CC1352P chip.
Definition: chipinfo.h:347
11 means that this is a CC2652 chip.
Definition: chipinfo.h:344
ChipType_t
Chip type enumeration.
Definition: chipinfo.h:331
ChipFamily_t
Chip family enumeration.
Definition: chipinfo.h:374
ChipFamily_t ChipInfo_GetChipFamily(void)
Returns chip family member.
Definition: chipinfo.c:101
12 means that this is a CC1312 chip.
Definition: chipinfo.h:345
10 unused value
Definition: chipinfo.h:343

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

280 {
281  // Returns HwRevCode = FCFG1_O_ICEPICK_DEVICE_ID[31:28]
282  return ( HWREG( FCFG1_BASE + FCFG1_O_ICEPICK_DEVICE_ID ) >> 28 );
283 }
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().

186 {
187  HwRevision_t hwRev = HWREV_Unknown ;
188  uint32_t fcfg1Rev = ChipInfo_GetDeviceIdHwRevCode() ;
189  uint32_t minorHwRev = ChipInfo_GetMinorHwRev() ;
191 
192  if ( chipFam == FAMILY_CC13x2_CC26x2 ) {
193  switch ( fcfg1Rev ) {
194  case 0 : // CC13x2, CC26x2 - PG1.0
195  case 1 : // CC13x2, CC26x2 - PG1.01 (will also show up as PG1.0)
196  hwRev = (HwRevision_t)((uint32_t)HWREV_1_0 );
197  break;
198  case 2 : // CC13x2, CC26x2 - PG1.1 (or later)
199  hwRev = (HwRevision_t)(((uint32_t)HWREV_1_1 ) + minorHwRev );
200  break;
201  case 3 : // CC13x2, CC26x2 - PG2.1 (or later)
202  hwRev = (HwRevision_t)(((uint32_t)HWREV_2_1 ) + minorHwRev );
203  break;
204  }
205  }
206 
207  return ( hwRev );
208 }
4 means that the chip is a CC13x2, CC26x2 family member.
Definition: chipinfo.h:380
HwRevision_t
HW revision enumeration.
Definition: chipinfo.h:504
11 means that the chip's HW revision is 1.1
Definition: chipinfo.h:507
21 means that the chip's HW revision is 2.1
Definition: chipinfo.h:509
-1 means that the chip's HW revision is unknown.
Definition: chipinfo.h:505
ChipFamily_t
Chip family enumeration.
Definition: chipinfo.h:374
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:279
10 means that the chip's HW revision is 1.0
Definition: chipinfo.h:506
static uint32_t ChipInfo_GetMinorHwRev(void)
Returns minor hardware revision number.
Definition: chipinfo.h:297

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

298 {
299  uint32_t minorRev = (( HWREG( FCFG1_BASE + FCFG1_O_MISC_CONF_1 ) &
302 
303  if ( minorRev >= 0x80 ) {
304  minorRev = 0;
305  }
306 
307  return( minorRev );
308 }
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_SIP ) )
88  {
89  packType = PACKAGE_Unknown;
90  }
91 
92  return ( packType );
93 }
6 means that this is a 7x7 mm SiP module (Sytem in Package).
Definition: chipinfo.h:174
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().

322 {
323  return ( HWREG( FCFG1_BASE + FCFG1_O_USER_ID ));
324 }
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.
536 {
537  return ( ChipInfo_GetHwRevision() == HWREV_1_0 );
538 }
HwRevision_t ChipInfo_GetHwRevision(void)
Returns chip HW revision.
Definition: chipinfo.c:185
10 means that the chip's HW revision is 1.0
Definition: chipinfo.h:506

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.
550 {
551  return ( ChipInfo_GetHwRevision() == HWREV_2_0 );
552 }
HwRevision_t ChipInfo_GetHwRevision(void)
Returns chip HW revision.
Definition: chipinfo.c:185
20 means that the chip's HW revision is 2.0
Definition: chipinfo.h:508

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.
578 {
579  return ( ChipInfo_GetHwRevision() == HWREV_2_1 );
580 }
21 means that the chip's HW revision is 2.1
Definition: chipinfo.h:509
HwRevision_t ChipInfo_GetHwRevision(void)
Returns chip HW revision.
Definition: chipinfo.c:185

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.
606 {
607  return ( ChipInfo_GetHwRevision() == HWREV_2_2 );
608 }
HwRevision_t ChipInfo_GetHwRevision(void)
Returns chip HW revision.
Definition: chipinfo.c:185
22 means that the chip's HW revision is 2.2
Definition: chipinfo.h:510

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

564 {
565  return ( ChipInfo_GetHwRevision() >= HWREV_2_0 );
566 }
HwRevision_t ChipInfo_GetHwRevision(void)
Returns chip HW revision.
Definition: chipinfo.c:185
20 means that the chip's HW revision is 2.0
Definition: chipinfo.h:508

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.
592 {
593  return ( ChipInfo_GetHwRevision() >= HWREV_2_1 );
594 }
21 means that the chip's HW revision is 2.1
Definition: chipinfo.h:509
HwRevision_t ChipInfo_GetHwRevision(void)
Returns chip HW revision.
Definition: chipinfo.c:185

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.
620 {
621  return ( ChipInfo_GetHwRevision() >= HWREV_2_2 );
622 }
HwRevision_t ChipInfo_GetHwRevision(void)
Returns chip HW revision.
Definition: chipinfo.c:185
22 means that the chip's HW revision is 2.2
Definition: chipinfo.h:510

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.
634 {
635  return ( ChipInfo_GetHwRevision() >= HWREV_2_3 );
636 }
23 means that the chip's HW revision is 2.3
Definition: chipinfo.h:511
HwRevision_t ChipInfo_GetHwRevision(void)
Returns chip HW revision.
Definition: chipinfo.c:185

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.
648 {
649  return ( ChipInfo_GetHwRevision() >= HWREV_2_4 );
650 }
HwRevision_t ChipInfo_GetHwRevision(void)
Returns chip HW revision.
Definition: chipinfo.c:185
24 means that the chip's HW revision is 2.4
Definition: chipinfo.h:512

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.
197 {
198  return ( ChipInfo_GetPackageType() == PACKAGE_4x4 );
199 }
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.
211 {
212  return ( ChipInfo_GetPackageType() == PACKAGE_5x5 );
213 }
PackageType_t ChipInfo_GetPackageType(void)
Returns package type.
Definition: chipinfo.c:79
1 means that this is a 5x5 mm 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.
225 {
226  return ( ChipInfo_GetPackageType() == PACKAGE_7x7 );
227 }
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.
267 {
268  return ( ChipInfo_GetPackageType() == PACKAGE_7x7_Q1 );
269 }
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.
239 {
240  return ( ChipInfo_GetPackageType() == PACKAGE_WAFER );
241 }
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.
253 {
254  return ( ChipInfo_GetPackageType() == PACKAGE_WCSP );
255 }
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().

215 {
218  {
219  while(1)
220  {
221  // This driverlib version is for the CC13x2/CC26x2 PG2.0 and later chips.
222  // Do nothing - stay here forever
223  }
224  }
225 }
static bool ChipInfo_ChipFamilyIs_CC13x2_CC26x2(void)
Returns true if this chip is member of the CC13x2, CC26x2 family.
Definition: chipinfo.h:480
static bool ChipInfo_HwRevisionIs_GTEQ_2_0(void)
Returns true if HW revision for this chip is 2.0 or greater.
Definition: chipinfo.h:563

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_CC13X1_CC26X1   2

2 is the driverlib build ID for the cc13x1_cc26x1 driverlib.

#define DRIVERLIB_BUILD_CC13X2_CC26X2   4

4 is the driverlib build ID for the cc13x2_cc26x2 driverlib.

#define DRIVERLIB_BUILD_CC13X2X7_CC26X2X7   5

5 is the driverlib build ID for the cc13x2x7_cc26x2x7 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 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_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.

374  {
375  FAMILY_Unknown = -1,
376  FAMILY_CC26x0 = 0,
377  FAMILY_CC13x0 = 1,
379  FAMILY_CC26x0R2 = 3,
382 } ChipFamily_t;
0 means that the chip is a CC26x0 family member.
Definition: chipinfo.h:376
4 means that the chip is a CC13x2, CC26x2 family member.
Definition: chipinfo.h:380
2 means that the chip is a CC13x1, CC26x1 family member.
Definition: chipinfo.h:378
-1 means that the chip's family member is unknown.
Definition: chipinfo.h:375
3 means that the chip is a CC26x0R2 family (new ROM contents).
Definition: chipinfo.h:379
5 means that the chip is a CC13x2x7, CC26x2x7 family member.
Definition: chipinfo.h:381
1 means that the chip is a CC13x0 family member.
Definition: chipinfo.h:377
ChipFamily_t
Chip family enumeration.
Definition: chipinfo.h:374
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.

CHIP_TYPE_CC2652RB 

16 means that this is a CC2652RB chip.

CHIP_TYPE_CC2652PB 

17 means that this is a CC2652PB 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.

331  {
332  CHIP_TYPE_Unknown = -1,
333  CHIP_TYPE_CC1310 = 0,
334  CHIP_TYPE_CC1350 = 1,
335  CHIP_TYPE_CC2620 = 2,
336  CHIP_TYPE_CC2630 = 3,
337  CHIP_TYPE_CC2640 = 4,
338  CHIP_TYPE_CC2650 = 5,
339  CHIP_TYPE_CUSTOM_0 = 6,
340  CHIP_TYPE_CUSTOM_1 = 7,
341  CHIP_TYPE_CC2640R2 = 8,
342  CHIP_TYPE_CC2642 = 9,
343  CHIP_TYPE_unused = 10,
344  CHIP_TYPE_CC2652 = 11,
345  CHIP_TYPE_CC1312 = 12,
346  CHIP_TYPE_CC1352 = 13,
347  CHIP_TYPE_CC1352P = 14,
348  CHIP_TYPE_CC2652P = 15,
349  CHIP_TYPE_CC2652RB = 16,
350  CHIP_TYPE_CC2652PB = 17,
351  CHIP_TYPE_CC1312R7 = 23,
352  CHIP_TYPE_unused1 = 24,
353  CHIP_TYPE_CC1352R7 = 25,
354  CHIP_TYPE_CC1352P7 = 26,
355  CHIP_TYPE_CC2652R7 = 27,
356  CHIP_TYPE_CC2652P7 = 28,
357 } ChipType_t;
24 unused value
Definition: chipinfo.h:352
13 means that this is a CC1352 chip.
Definition: chipinfo.h:346
9 means that this is a CC2642 chip.
Definition: chipinfo.h:342
0 means that this is a CC1310 chip.
Definition: chipinfo.h:333
15 means that this is a CC2652P chip.
Definition: chipinfo.h:348
17 means that this is a CC2652PB chip.
Definition: chipinfo.h:350
16 means that this is a CC2652RB chip.
Definition: chipinfo.h:349
26 means that this is a CC1352P7 chip.
Definition: chipinfo.h:354
5 means that this is a CC2650 chip.
Definition: chipinfo.h:338
27 means that this is a CC2652R7 chip.
Definition: chipinfo.h:355
-1 means that the chip type is unknown.
Definition: chipinfo.h:332
14 means that this is a CC1352P chip.
Definition: chipinfo.h:347
11 means that this is a CC2652 chip.
Definition: chipinfo.h:344
7 means that this is a CUSTOM_1 chip.
Definition: chipinfo.h:340
3 means that this is a CC2630 chip.
Definition: chipinfo.h:336
1 means that this is a CC1350 chip.
Definition: chipinfo.h:334
6 means that this is a CUSTOM_0 chip.
Definition: chipinfo.h:339
28 means that this is a CC2652P7 chip.
Definition: chipinfo.h:356
4 means that this is a CC2640 chip.
Definition: chipinfo.h:337
ChipType_t
Chip type enumeration.
Definition: chipinfo.h:331
25 means that this is a CC1352R7 chip.
Definition: chipinfo.h:353
12 means that this is a CC1312 chip.
Definition: chipinfo.h:345
8 means that this is a CC2640R2 chip.
Definition: chipinfo.h:341
10 unused value
Definition: chipinfo.h:343
23 means that this is a CC1312R7 chip.
Definition: chipinfo.h:351
2 means that this is a CC2620 chip.
Definition: chipinfo.h:335

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

504  {
505  HWREV_Unknown = -1,
506  HWREV_1_0 = 10,
507  HWREV_1_1 = 11,
508  HWREV_2_0 = 20,
509  HWREV_2_1 = 21,
510  HWREV_2_2 = 22,
511  HWREV_2_3 = 23,
512  HWREV_2_4 = 24,
513  HWREV_3_0 = 30
514 } HwRevision_t;
HwRevision_t
HW revision enumeration.
Definition: chipinfo.h:504
23 means that the chip's HW revision is 2.3
Definition: chipinfo.h:511
11 means that the chip's HW revision is 1.1
Definition: chipinfo.h:507
30 means that the chip's HW revision is 3.0
Definition: chipinfo.h:513
21 means that the chip's HW revision is 2.1
Definition: chipinfo.h:509
-1 means that the chip's HW revision is unknown.
Definition: chipinfo.h:505
20 means that the chip's HW revision is 2.0
Definition: chipinfo.h:508
22 means that the chip's HW revision is 2.2
Definition: chipinfo.h:510
24 means that the chip's HW revision is 2.4
Definition: chipinfo.h:512
10 means that the chip's HW revision is 1.0
Definition: chipinfo.h:506

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

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  PACKAGE_7x7_SIP = 6
175 } PackageType_t;
5 means that this is a 7x7 mm QFN package with Wettable Flanks.
Definition: chipinfo.h:173
6 means that this is a 7x7 mm SiP module (Sytem in Package).
Definition: chipinfo.h:174
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 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