@@ -209,7 +209,7 @@ When set, the memory area is only readable if a security session is open.
209
209
Area 1 is _always_ readable. Calling ```programEEPROMReadProtectionBit(1, true)``` has no effect.
210
210
211
211
```c++
212
- void programEEPROMReadProtectionBit(uint8_t memoryArea, bool readSecured)
212
+ bool programEEPROMReadProtectionBit(uint8_t memoryArea, bool readSecured)
213
213
```
214
214
215
215
| Parameter | Type | Description |
@@ -225,7 +225,7 @@ This method sets/clears the I2C write protection bit for the specified memory ar
225
225
When set, the memory area is only writeable if a security session is open.
226
226
227
227
``` c++
228
- void programEEPROMWriteProtectionBit (uint8_t memoryArea, bool writeSecured)
228
+ bool programEEPROMWriteProtectionBit (uint8_t memoryArea, bool writeSecured)
229
229
```
230
230
231
231
| Parameter | Type | Description |
@@ -412,7 +412,7 @@ This method sets or clears the selected bit(s) in the GPO1 register.
412
412
Multiple bits can be set or cleared with a single call.
413
413
414
414
``` c++
415
- void setGPO1Bit (uint8_t bitMask, bool enabled)
415
+ bool setGPO1Bit (uint8_t bitMask, bool enabled)
416
416
```
417
417
418
418
The GPO1 bit definitions are:
@@ -432,6 +432,7 @@ The GPO1 bit definitions are:
432
432
| :-------- | :--- | :---------- |
433
433
| ` bitMask ` | ` uint8_t ` | The bit(s) to be set or cleared |
434
434
| ` enabled ` | ` bool ` | If ``` true ``` , the bit(s) set in ` bitMask ` are set. If ``` false ``` , the bit(s) set in ` bitMask ` are cleared.
435
+ | return value | ` bool ` | ``` true ``` if the write is successful, otherwise ``` false ``` |
435
436
436
437
### getGPO1Bit()
437
438
@@ -453,7 +454,7 @@ This method sets or clears the selected bit(s) in the GPO2 register.
453
454
Multiple bits can be set or cleared with a single call.
454
455
455
456
```c++
456
- void setGPO2Bit(uint8_t bitMask, bool enabled)
457
+ bool setGPO2Bit(uint8_t bitMask, bool enabled)
457
458
```
458
459
459
460
The GPO2 bit defintions are:
@@ -467,6 +468,7 @@ The GPO2 bit defintions are:
467
468
| :-------- | :--- | :---------- |
468
469
| `bitMask` | `uint8_t` | The bit(s) to be set or cleared |
469
470
| `enabled` | `bool` | If ```true```, the bit(s) set in `bitMask` are set. If ```false```, the bit(s) set in `bitMask` are cleared.
471
+ | return value | `bool` | ```true``` if the write is successful, otherwise ```false``` |
470
472
471
473
### getGPO2Bit()
472
474
@@ -487,12 +489,13 @@ This method sets or clears the GPO_EN bit in the GPO_CTRL_Dyn (Dynamic) register
487
489
This allows the GPO pin to be enabled or disabled without making non-volatile changes to the GPO1 register GPO_EN bit.
488
490
489
491
``` c++
490
- void setGPO_CTRL_DynBit (bool enabled)
492
+ bool setGPO_CTRL_DynBit (bool enabled)
491
493
```
492
494
493
495
| Parameter | Type | Description |
494
496
| :-------- | :--- | :---------- |
495
497
| `enabled` | `bool` | If ```true```, the GPO_EN bit is set, otherwise it is cleared |
498
+ | return value | `bool` | ```true``` if the write is successful, otherwise ```false``` |
496
499
497
500
### getGPO_CTRL_DynBit()
498
501
@@ -545,12 +548,13 @@ The bit definitions of the IT_SYS_Dyn register are:
545
548
This method sets or clears the Energy Harvesting EH_MODE bit in the EH_MODE register.
546
549
547
550
```c++
548
- void setEH_MODEBit(bool value)
551
+ bool setEH_MODEBit(bool value)
549
552
```
550
553
551
554
| Parameter | Type | Description |
552
555
| :-------- | :--- | :---------- |
553
556
| `value` | `bool ` | If ```true ```, Energy Harvesting is on demand only (default). If ``` false ``` , EH is forced after boot |
557
+ | return value | ` bool ` | ``` true ``` if the write is successful, otherwise ``` false ``` |
554
558
555
559
### getEH_MODEBit()
556
560
@@ -570,13 +574,14 @@ This method will set or clear bit(s) in the dynamic EH_CTRL_Dyn register.
570
574
This allows energy harvesting to be enabled or disabled without making non-volatile changes to the EH_MODE register.
571
575
572
576
``` c++
573
- void setEH_CTRL_DYNBit (uint8_t bitMask, bool value)
577
+ bool setEH_CTRL_DYNBit (uint8_t bitMask, bool value)
574
578
```
575
579
576
580
| Parameter | Type | Description |
577
581
| :-------- | :--- | :---------- |
578
582
| `bitMask` | `uint8_t` | The bit(s) to be set or cleared |
579
583
| `value` | `bool` | If ```true```, the bit(s) set in `bitMask` are set. If ```false```, the bit(s) set in `bitMask` are cleared |
584
+ | return value | `bool` | ```true``` if the write is successful, otherwise ```false``` |
580
585
581
586
### getEH_CTRL_DYNBit()
582
587
0 commit comments