BKEY driver APIs. More...
Typedefs | |
| typedef enum bkey_lock_type | bkey_lock_type_t |
| Lock type. More... | |
Enumerations | |
| enum | bkey_lock_type { bkey_lock_write = BKEY_ECC_WLOCK_MASK , bkey_lock_read = BKEY_ECC_RLOCK_MASK , bkey_lock_both = BKEY_ECC_RLOCK_MASK | BKEY_ECC_WLOCK_MASK } |
| Lock type. More... | |
Functions | |
| static void | bkey_set_key_data (BKEY_Type *ptr, uint8_t key, uint8_t start, uint32_t *data, uint8_t size) |
| bkey set key content More... | |
| static void | bkey_get_key_data (BKEY_Type *ptr, uint8_t key, uint8_t start, uint32_t *data, uint8_t size) |
| bkey fetch key content More... | |
| static void | bkey_lock (BKEY_Type *ptr, uint8_t key, bkey_lock_type_t lock, uint16_t ecc) |
| bkey lock key More... | |
| static void | bkey_select_key (BKEY_Type *ptr, uint8_t key) |
| bkey select key More... | |
BKEY driver APIs.
| typedef enum bkey_lock_type bkey_lock_type_t |
#include <drivers/inc/hpm_bkey_drv.h>
Lock type.
| enum bkey_lock_type |
#include <drivers/inc/hpm_bkey_drv.h>
Lock type.
| Enumerator | |
|---|---|
| bkey_lock_write | |
| bkey_lock_read | |
| bkey_lock_both | |
|
inlinestatic |
#include <drivers/inc/hpm_bkey_drv.h>
bkey fetch key content
Fetch key content
| [in] | ptr | BKEY base address |
| [in] | key | key index |
| [in] | start | key content data start index |
| [in] | data | pointer of buffer to received key content |
| [in] | size | data total size in 32-bit |
|
inlinestatic |
#include <drivers/inc/hpm_bkey_drv.h>
bkey lock key
Feed correct ecc data of current key content and lock it
| [in] | ptr | BKEY base address |
| [in] | key | key index |
| [in] | lock | lock type |
| [in] | ecc | ecc value of current key content |
|
inlinestatic |
#include <drivers/inc/hpm_bkey_drv.h>
bkey select key
Select which key to use
| [in] | ptr | BKEY base address |
| [in] | key | key index
|
|
inlinestatic |
#include <drivers/inc/hpm_bkey_drv.h>
bkey set key content
Program key content
| [in] | ptr | BKEY base address |
| [in] | key | Key index |
| [in] | start | Key content data start index |
| [in] | data | pointer of actual data to be programmed |
| [in] | size | data total size in 32-bit |