HPM SDK
HPMicro Software Development Kit
hpm_bkey_drv.h File Reference
#include "hpm_common.h"
#include "hpm_bkey_regs.h"

Go to the source code of this file.

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