CC26xx Driver Library
[chipinfo] 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 propriatary 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 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_13x4_26x2_26x4 (void)
 Returns true if this chip is member of the CC13x2, CC13x4, CC26x2, CC26x4 family. More...
 
HwRevision_t ChipInfo_GetHwRevision (void)
 Returns chip HW revision. More...
 
static bool ChipInfo_HwRevisionIs_1_0 (void)
 Returns true if HW revision for this chip is 1.0. More...
 
static bool ChipInfo_HwRevisionIs_2_0 (void)
 Returns true if HW revision for this chip is 2.0. More...
 
static bool ChipInfo_HwRevisionIs_GTEQ_2_0 (void)
 Returns true if HW revision for this chip is 2.0 or greater. More...
 
static bool ChipInfo_HwRevisionIs_2_1 (void)
 Returns true if HW revision for this chip is 2.1. More...
 
static bool ChipInfo_HwRevisionIs_GTEQ_2_1 (void)
 Returns true if HW revision for this chip is 2.1 or greater. More...
 
static bool ChipInfo_HwRevisionIs_2_2 (void)
 Returns true if HW revision for this chip is 2.2. More...
 
static bool ChipInfo_HwRevisionIs_GTEQ_2_2 (void)
 Returns true if HW revision for this chip is 2.2 or greater. More...
 
static bool ChipInfo_HwRevisionIs_GTEQ_2_3 (void)
 Returns true if HW revision for this chip is 2.3 or greater. More...
 
void ThisLibraryIsFor_CC26x0_HwRev22AndLater_HaltIfViolated (void)
 Verifies that current chip is CC26x0 HwRev 2.2 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 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 enumeration. More...
 
enum  ChipFamily_t {
  FAMILY_Unknown = -1, FAMILY_CC26x0 = 0, FAMILY_CC13x0 = 1, FAMILY_CC26x1 = 2,
  FAMILY_CC26x0R2 = 3, FAMILY_CC13x2_13x4_26x2_26x4 = 4
}
 Chip family enumeration. More...
 
enum  HwRevision_t {
  HWREV_Unknown = -1, HWREV_1_0 = 10, HWREV_2_0 = 20, HWREV_2_1 = 21,
  HWREV_2_2 = 22, HWREV_2_3 = 23
}
 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.
375 {
376  return ( ChipInfo_GetChipFamily() == FAMILY_CC13x0 );
377 }
1 means that the chip is a CC13x0 family member.
Definition: chipinfo.h:349
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_13x4_26x2_26x4 ( void  )
inlinestatic

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

Returns
Returns true if this chip is member of the CC13x2, CC13x4, CC26x2, CC26x4 family, false otherwise.
431 {
433 }
4 means that the chip is a CC13x2, CC13x4, CC26x2, CC26x4 family member.
Definition: chipinfo.h:352
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.

Referenced by ThisLibraryIsFor_CC26x0_HwRev22AndLater_HaltIfViolated().

389 {
390  return ( ChipInfo_GetChipFamily() == FAMILY_CC26x0 );
391 }
0 means that the chip is a CC26x0 family member.
Definition: chipinfo.h:348
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.
403 {
404  return ( ChipInfo_GetChipFamily() == FAMILY_CC26x0R2 );
405 }
3 means that the chip is a CC26x0R2 family (new ROM contents).
Definition: chipinfo.h:351
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.
417 {
418  return ( ChipInfo_GetChipFamily() == FAMILY_CC26x1 );
419 }
2 means that the chip is a CC26x1 family member.
Definition: chipinfo.h:350
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_13x4_26x2_26x4(), 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 == 0xB99A ) {
111  if ( ChipInfo_GetDeviceIdHwRevCode() == 0xB ) {
112  chipFam = FAMILY_CC26x0R2 ;
113  } else {
114  chipFam = FAMILY_CC26x0 ;
115  }
116  }
117 
118  return ( chipFam );
119 }
0 means that the chip is a CC26x0 family member.
Definition: chipinfo.h:348
-1 means that the chip's family member is unknown.
Definition: chipinfo.h:347
3 means that the chip is a CC26x0R2 family (new ROM contents).
Definition: chipinfo.h:351
ChipFamily_t
Chip family enumeration.
Definition: chipinfo.h:346
static uint32_t ChipInfo_GetDeviceIdHwRevCode(void)
Returns the internal chip HW revision code.
Definition: chipinfo.h:263

Here is the call graph for this function:

ChipType_t ChipInfo_GetChipType ( void  )

Returns chip type.

Returns
Returns ChipType_t
128 {
129  ChipType_t chipType = CHIP_TYPE_Unknown ;
131  uint32_t fcfg1UserId = ChipInfo_GetUserId() ;
132  uint32_t fcfg1Protocol = (( fcfg1UserId & FCFG1_USER_ID_PROTOCOL_M ) >>
134 
135  if ( chipFam == FAMILY_CC26x0 ) {
136  switch ( fcfg1Protocol ) {
137  case 0x2 :
138  chipType = CHIP_TYPE_CC2620 ;
139  break;
140  case 0x4 :
141  case 0xC :
142  chipType = CHIP_TYPE_CC2630 ;
143  break;
144  case 0x1 :
145  case 0x9 :
146  chipType = CHIP_TYPE_CC2640 ;
147  if ( fcfg1UserId & ( 1 << 23 )) {
148  chipType = CHIP_TYPE_CUSTOM_1 ;
149  }
150  break;
151  case 0xF :
152  chipType = CHIP_TYPE_CC2650 ;
153  if ( fcfg1UserId & ( 1 << 24 )) {
154  chipType = CHIP_TYPE_CUSTOM_0 ;
155  }
156  break;
157  }
158  }
159 
160  return ( chipType );
161 }
0 means that the chip is a CC26x0 family member.
Definition: chipinfo.h:348
static uint32_t ChipInfo_GetUserId(void)
Returns the 32 bits USER_ID field.
Definition: chipinfo.h:306
5 means that this is a CC2650 chip.
Definition: chipinfo.h:324
-1 means that the chip type is unknown.
Definition: chipinfo.h:318
7 means that this is a CUSTOM_1 chip.
Definition: chipinfo.h:326
3 means that this is a CC2630 chip.
Definition: chipinfo.h:322
6 means that this is a CUSTOM_0 chip.
Definition: chipinfo.h:325
4 means that this is a CC2640 chip.
Definition: chipinfo.h:323
ChipType_t
Chip type enumeration.
Definition: chipinfo.h:317
ChipFamily_t
Chip family enumeration.
Definition: chipinfo.h:346
ChipFamily_t ChipInfo_GetChipFamily(void)
Returns chip family member.
Definition: chipinfo.c:101
2 means that this is a CC2620 chip.
Definition: chipinfo.h:321

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_GetChipFamily(), and ChipInfo_GetHwRevision().

264 {
265  // Returns HwRevCode = FCFG1_O_ICEPICK_DEVICE_ID[31:28]
266  return ( HWREG( FCFG1_BASE + FCFG1_O_ICEPICK_DEVICE_ID ) >> 28 );
267 }
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(), and ChipInfo_HwRevisionIs_GTEQ_2_3().

170 {
171  HwRevision_t hwRev = HWREV_Unknown ;
172  uint32_t fcfg1Rev = ChipInfo_GetDeviceIdHwRevCode() ;
173  uint32_t minorHwRev = ChipInfo_GetMinorHwRev() ;
175 
176  if ( chipFam == FAMILY_CC26x0 ) {
177  switch ( fcfg1Rev ) {
178  case 1 : // CC26x0 PG1.0
179  hwRev = HWREV_1_0;
180  break;
181  case 3 : // CC26x0 PG2.0
182  hwRev = HWREV_2_0;
183  break;
184  case 7 : // CC26x0 PG2.1
185  hwRev = HWREV_2_1;
186  break;
187  case 8 : // CC26x0 PG2.2 (or later)
188  hwRev = (HwRevision_t)(((uint32_t)HWREV_2_2 ) + minorHwRev );
189  break;
190  }
191  }
192 
193  return ( hwRev );
194 }
0 means that the chip is a CC26x0 family member.
Definition: chipinfo.h:348
HwRevision_t
HW revision enumeration.
Definition: chipinfo.h:441
21 means that the chip's HW revision is 2.1
Definition: chipinfo.h:445
-1 means that the chip's HW revision is unknown.
Definition: chipinfo.h:442
20 means that the chip's HW revision is 2.0
Definition: chipinfo.h:444
22 means that the chip's HW revision is 2.2
Definition: chipinfo.h:446
ChipFamily_t
Chip family enumeration.
Definition: chipinfo.h:346
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:263
10 means that the chip's HW revision is 1.0
Definition: chipinfo.h:443
static uint32_t ChipInfo_GetMinorHwRev(void)
Returns minor hardware revision number.
Definition: chipinfo.h:281

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

282 {
283  uint32_t minorRev = (( HWREG( FCFG1_BASE + FCFG1_O_MISC_CONF_1 ) &
286 
287  if ( minorRev >= 0x80 ) {
288  minorRev = 0;
289  }
290 
291  return( minorRev );
292 }
PackageType_t ChipInfo_GetPackageType ( void  )

Returns package type.

Returns
Returns PackageType_t

Referenced by ChipInfo_PackageTypeIs4x4(), ChipInfo_PackageTypeIs5x5(), ChipInfo_PackageTypeIs7x7(), 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_WCSP ) )
88  {
89  packType = PACKAGE_Unknown;
90  }
91 
92  return ( packType );
93 }
PackageType_t
Package type enumeration.
Definition: chipinfo.h:165
-1 means that current chip type is unknown.
Definition: chipinfo.h:166
4 means that this is a WCSP chip (flip chip).
Definition: chipinfo.h:171
0 means that this is a 4x4mm chip.
Definition: chipinfo.h:167
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 the 32 bits USER_ID field

Referenced by ChipInfo_GetChipType().

307 {
308  return ( HWREG( FCFG1_BASE + FCFG1_O_USER_ID ));
309 }
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.
470 {
471  return ( ChipInfo_GetHwRevision() == HWREV_1_0 );
472 }
HwRevision_t ChipInfo_GetHwRevision(void)
Returns chip HW revision.
Definition: chipinfo.c:169
10 means that the chip's HW revision is 1.0
Definition: chipinfo.h:443

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.
484 {
485  return ( ChipInfo_GetHwRevision() == HWREV_2_0 );
486 }
HwRevision_t ChipInfo_GetHwRevision(void)
Returns chip HW revision.
Definition: chipinfo.c:169
20 means that the chip's HW revision is 2.0
Definition: chipinfo.h:444

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.
512 {
513  return ( ChipInfo_GetHwRevision() == HWREV_2_1 );
514 }
21 means that the chip's HW revision is 2.1
Definition: chipinfo.h:445
HwRevision_t ChipInfo_GetHwRevision(void)
Returns chip HW revision.
Definition: chipinfo.c:169

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.
540 {
541  return ( ChipInfo_GetHwRevision() == HWREV_2_2 );
542 }
HwRevision_t ChipInfo_GetHwRevision(void)
Returns chip HW revision.
Definition: chipinfo.c:169
22 means that the chip's HW revision is 2.2
Definition: chipinfo.h:446

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.
498 {
499  return ( ChipInfo_GetHwRevision() >= HWREV_2_0 );
500 }
HwRevision_t ChipInfo_GetHwRevision(void)
Returns chip HW revision.
Definition: chipinfo.c:169
20 means that the chip's HW revision is 2.0
Definition: chipinfo.h:444

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.
526 {
527  return ( ChipInfo_GetHwRevision() >= HWREV_2_1 );
528 }
21 means that the chip's HW revision is 2.1
Definition: chipinfo.h:445
HwRevision_t ChipInfo_GetHwRevision(void)
Returns chip HW revision.
Definition: chipinfo.c:169

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.

Referenced by ThisLibraryIsFor_CC26x0_HwRev22AndLater_HaltIfViolated().

554 {
555  return ( ChipInfo_GetHwRevision() >= HWREV_2_2 );
556 }
HwRevision_t ChipInfo_GetHwRevision(void)
Returns chip HW revision.
Definition: chipinfo.c:169
22 means that the chip's HW revision is 2.2
Definition: chipinfo.h:446

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.
568 {
569  return ( ChipInfo_GetHwRevision() >= HWREV_2_3 );
570 }
23 means that the chip's HW revision is 2.3
Definition: chipinfo.h:447
HwRevision_t ChipInfo_GetHwRevision(void)
Returns chip HW revision.
Definition: chipinfo.c:169

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.
194 {
195  return ( ChipInfo_GetPackageType() == PACKAGE_4x4 );
196 }
PackageType_t ChipInfo_GetPackageType(void)
Returns package type.
Definition: chipinfo.c:79
0 means that this is a 4x4mm chip.
Definition: chipinfo.h:167

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.
208 {
209  return ( ChipInfo_GetPackageType() == PACKAGE_5x5 );
210 }
PackageType_t ChipInfo_GetPackageType(void)
Returns package type.
Definition: chipinfo.c:79
1 means that this is a 5x5mm chip.
Definition: chipinfo.h:168

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.
222 {
223  return ( ChipInfo_GetPackageType() == PACKAGE_7x7 );
224 }
PackageType_t ChipInfo_GetPackageType(void)
Returns package type.
Definition: chipinfo.c:79
2 means that this is a 7x7mm chip.
Definition: chipinfo.h:169

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.
236 {
237  return ( ChipInfo_GetPackageType() == PACKAGE_WAFER );
238 }
PackageType_t ChipInfo_GetPackageType(void)
Returns package type.
Definition: chipinfo.c:79
3 means that this is a wafer sale chip (naked die).
Definition: chipinfo.h:170

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.
250 {
251  return ( ChipInfo_GetPackageType() == PACKAGE_WCSP );
252 }
PackageType_t ChipInfo_GetPackageType(void)
Returns package type.
Definition: chipinfo.c:79
4 means that this is a WCSP chip (flip chip).
Definition: chipinfo.h:171

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.
127 {
128  return (( ChipInfo_GetSupportedProtocol_BV() & PROTOCOLBIT_BLE ) != 0 );
129 }
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.
141 {
143 }
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 propriatary protocols.

Returns
Returns true if supporting propriatary protocols, false otherwise.
155 {
157 }
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_CC26x0_HwRev22AndLater_HaltIfViolated ( void  )

Verifies that current chip is CC26x0 HwRev 2.2 or later and never returns if violated.

Returns
None

Referenced by SetupTrimDevice().

202 {
203  if (( ! ChipInfo_ChipFamilyIs_CC26x0() ) ||
205  {
206  while(1)
207  {
208  // This driverlib version is for CC26x0 PG2.2 and later
209  // Do nothing - stay here forever
210  }
211  }
212 }
static bool ChipInfo_HwRevisionIs_GTEQ_2_2(void)
Returns true if HW revision for this chip is 2.2 or greater.
Definition: chipinfo.h:553
static bool ChipInfo_ChipFamilyIs_CC26x0(void)
Returns true if this chip is member of the CC26x0 family.
Definition: chipinfo.h:388

Here is the call graph for this function:

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_13x4_26x2_26x4 

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

346  {
347  FAMILY_Unknown = -1,
348  FAMILY_CC26x0 = 0,
349  FAMILY_CC13x0 = 1,
350  FAMILY_CC26x1 = 2,
351  FAMILY_CC26x0R2 = 3,
353 } ChipFamily_t;
0 means that the chip is a CC26x0 family member.
Definition: chipinfo.h:348
-1 means that the chip's family member is unknown.
Definition: chipinfo.h:347
3 means that the chip is a CC26x0R2 family (new ROM contents).
Definition: chipinfo.h:351
2 means that the chip is a CC26x1 family member.
Definition: chipinfo.h:350
4 means that the chip is a CC13x2, CC13x4, CC26x2, CC26x4 family member.
Definition: chipinfo.h:352
1 means that the chip is a CC13x0 family member.
Definition: chipinfo.h:349
ChipFamily_t
Chip family enumeration.
Definition: chipinfo.h:346
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 

4 means that this is a CC2640R2 chip.

317  {
318  CHIP_TYPE_Unknown = -1,
319  CHIP_TYPE_CC1310 = 0,
320  CHIP_TYPE_CC1350 = 1,
321  CHIP_TYPE_CC2620 = 2,
322  CHIP_TYPE_CC2630 = 3,
323  CHIP_TYPE_CC2640 = 4,
324  CHIP_TYPE_CC2650 = 5,
325  CHIP_TYPE_CUSTOM_0 = 6,
326  CHIP_TYPE_CUSTOM_1 = 7,
327  CHIP_TYPE_CC2640R2 = 8
328 } ChipType_t;
0 means that this is a CC1310 chip.
Definition: chipinfo.h:319
5 means that this is a CC2650 chip.
Definition: chipinfo.h:324
-1 means that the chip type is unknown.
Definition: chipinfo.h:318
7 means that this is a CUSTOM_1 chip.
Definition: chipinfo.h:326
3 means that this is a CC2630 chip.
Definition: chipinfo.h:322
1 means that this is a CC1350 chip.
Definition: chipinfo.h:320
6 means that this is a CUSTOM_0 chip.
Definition: chipinfo.h:325
4 means that this is a CC2640 chip.
Definition: chipinfo.h:323
ChipType_t
Chip type enumeration.
Definition: chipinfo.h:317
4 means that this is a CC2640R2 chip.
Definition: chipinfo.h:327
2 means that this is a CC2620 chip.
Definition: chipinfo.h:321

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

441  {
442  HWREV_Unknown = -1,
443  HWREV_1_0 = 10,
444  HWREV_2_0 = 20,
445  HWREV_2_1 = 21,
446  HWREV_2_2 = 22,
447  HWREV_2_3 = 23
448 } HwRevision_t;
HwRevision_t
HW revision enumeration.
Definition: chipinfo.h:441
23 means that the chip's HW revision is 2.3
Definition: chipinfo.h:447
21 means that the chip's HW revision is 2.1
Definition: chipinfo.h:445
-1 means that the chip's HW revision is unknown.
Definition: chipinfo.h:442
20 means that the chip's HW revision is 2.0
Definition: chipinfo.h:444
22 means that the chip's HW revision is 2.2
Definition: chipinfo.h:446
10 means that the chip's HW revision is 1.0
Definition: chipinfo.h:443

Package type enumeration.

Enumerator
PACKAGE_Unknown 

-1 means that current chip type is unknown.

PACKAGE_4x4 

0 means that this is a 4x4mm chip.

PACKAGE_5x5 

1 means that this is a 5x5mm chip.

PACKAGE_7x7 

2 means that this is a 7x7mm chip.

PACKAGE_WAFER 

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

PACKAGE_WCSP 

4 means that this is a WCSP chip (flip chip).

165  {
166  PACKAGE_Unknown = -1,
167  PACKAGE_4x4 = 0,
168  PACKAGE_5x5 = 1,
169  PACKAGE_7x7 = 2,
170  PACKAGE_WAFER = 3,
171  PACKAGE_WCSP = 4
172 } PackageType_t;
PackageType_t
Package type enumeration.
Definition: chipinfo.h:165
-1 means that current chip type is unknown.
Definition: chipinfo.h:166
4 means that this is a WCSP chip (flip chip).
Definition: chipinfo.h:171
3 means that this is a wafer sale chip (naked die).
Definition: chipinfo.h:170
1 means that this is a 5x5mm chip.
Definition: chipinfo.h:168
0 means that this is a 4x4mm chip.
Definition: chipinfo.h:167
2 means that this is a 7x7mm chip.
Definition: chipinfo.h:169

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