CC13xx 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_CC13x0_HwRev20AndLater_HaltIfViolated (void)
 Verifies that current chip is CC13x0 HwRev 2.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 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.

Referenced by ThisLibraryIsFor_CC13x0_HwRev20AndLater_HaltIfViolated().

413 {
414  return ( ChipInfo_GetChipFamily() == FAMILY_CC13x0 );
415 }
1 means that the chip is a CC13x0 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_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.
469 {
471 }
4 means that the chip is a CC13x2, CC26x2 family member.
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_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.
427 {
428  return ( ChipInfo_GetChipFamily() == FAMILY_CC26x0 );
429 }
0 means that the chip is a CC26x0 family member.
Definition: chipinfo.h:366
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.
441 {
442  return ( ChipInfo_GetChipFamily() == FAMILY_CC26x0R2 );
443 }
3 means that the chip is a CC26x0R2 family (new ROM contents).
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:

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.
455 {
456  return ( ChipInfo_GetChipFamily() == FAMILY_CC26x1 );
457 }
2 means that the chip is a CC26x1 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:

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 == 0xB9BE ) {
111  chipFam = FAMILY_CC13x0 ;
112  }
113 
114  return ( chipFam );
115 }
-1 means that the chip's family member is unknown.
Definition: chipinfo.h:365
1 means that the chip is a CC13x0 family member.
Definition: chipinfo.h:367
ChipFamily_t
Chip family enumeration.
Definition: chipinfo.h:364
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 
131  if ( chipFam == FAMILY_CC13x0 ) {
132  switch ( fcfg1Protocol ) {
133  case 0x8 :
134  chipType = CHIP_TYPE_CC1310 ;
135  break;
136  case 0xF :
137  chipType = CHIP_TYPE_CC1350 ;
138  break;
139  }
140  }
141 
142  return ( chipType );
143 }
0 means that this is a CC1310 chip.
Definition: chipinfo.h:332
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
1 means that this is a CC1350 chip.
Definition: chipinfo.h:333
1 means that the chip is a CC13x0 family member.
Definition: chipinfo.h:367
ChipType_t
Chip type enumeration.
Definition: chipinfo.h:330
ChipFamily_t
Chip family enumeration.
Definition: chipinfo.h:364
ChipFamily_t ChipInfo_GetChipFamily(void)
Returns chip family member.
Definition: chipinfo.c:101

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

152 {
153  HwRevision_t hwRev = HWREV_Unknown ;
154  uint32_t fcfg1Rev = ChipInfo_GetDeviceIdHwRevCode() ;
155  uint32_t minorHwRev = ChipInfo_GetMinorHwRev() ;
157 
158  if ( chipFam == FAMILY_CC13x0 ) {
159  switch ( fcfg1Rev ) {
160  case 0 : // CC13x0 PG1.0
161  hwRev = HWREV_1_0;
162  break;
163  case 2 : // CC13x0 PG2.0 (or later)
164  hwRev = (HwRevision_t)(((uint32_t)HWREV_2_0 ) + minorHwRev );
165  break;
166  }
167  }
168 
169  return ( hwRev );
170 }
HwRevision_t
HW revision enumeration.
Definition: chipinfo.h:478
-1 means that the chip's HW revision is unknown.
Definition: chipinfo.h:479
20 means that the chip's HW revision is 2.0
Definition: chipinfo.h:482
1 means that the chip is a CC13x0 family member.
Definition: chipinfo.h:367
ChipFamily_t
Chip family enumeration.
Definition: chipinfo.h:364
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:480
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.
509 {
510  return ( ChipInfo_GetHwRevision() == HWREV_1_0 );
511 }
HwRevision_t ChipInfo_GetHwRevision(void)
Returns chip HW revision.
Definition: chipinfo.c:151
10 means that the chip's HW revision is 1.0
Definition: chipinfo.h:480

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

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

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

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

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

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

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

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

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

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_CC13x0_HwRev20AndLater_HaltIfViolated ( void  )

Verifies that current chip is CC13x0 HwRev 2.0 or later and never returns if violated.

Returns
None

Referenced by SetupTrimDevice().

177 {
178  if (( ! ChipInfo_ChipFamilyIs_CC13x0() ) ||
180  {
181  while(1)
182  {
183  // This driverlib version is for CC13x0 PG2.0 and later.
184  // Do nothing - stay here forever
185  }
186  }
187 }
static bool ChipInfo_HwRevisionIs_GTEQ_2_0(void)
Returns true if HW revision for this chip is 2.0 or greater.
Definition: chipinfo.h:536
static bool ChipInfo_ChipFamilyIs_CC13x0(void)
Returns true if this chip is member of the CC13x0 family.
Definition: chipinfo.h:412

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_CC13X0

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.

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

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 } 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
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

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

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