SDK3.5
This document shows Ameba SDK 3.5 APIs
|
efuse functions More...
Ameba Common | |
int | efuse_get_remaining_length (void) |
Get remaining efuse length. More... | |
void | efuse_mtp_read (uint8_t *data) |
Read efuse contant of specified user. More... | |
int | efuse_mtp_write (uint8_t *data, uint8_t len) |
Write user's contant to efuse. More... | |
int | efuse_otp_read (u8 address, u8 len, u8 *buf) |
Read efuse OTP contant. More... | |
int | efuse_otp_write (u8 address, u8 len, u8 *buf) |
Write user's contant to OTP efuse. More... | |
int | efuse_otp_chk (u8 len, u8 *buf) |
ckeck user's contant to OTP efuse More... | |
int | efuse_disable_jtag (void) |
Disable jtag. More... | |
Ameba1 Only | |
int | efuse_key1_write (u8 address, u8 len, u8 *buf) |
Write key1 to efuse. More... | |
int | efuse_key2_write (u8 address, u8 len, u8 *buf) |
Write key2 to efuse. More... | |
AmebaZ Only | |
void | efuse_rdp_enable (void) |
Set RDP Enable. More... | |
void | efuse_rdp_keyset (u8 *rdp_key) |
Set 16B RDP key into EFUSE. More... | |
void | efuse_otf_keyset (u8 *otf_key) |
Set 16B OTF key into EFUSE. More... | |
efuse functions
int efuse_disable_jtag | ( | void | ) |
Disable jtag.
0 | Success |
int efuse_get_remaining_length | ( | void | ) |
Get remaining efuse length.
remaining efuse length |
int efuse_key1_write | ( | u8 | address, |
u8 | len, | ||
u8 * | buf | ||
) |
Write key1 to efuse.
address | Specifies the offset of the programmed efuse. |
len | Specifies the data length of programmed data. |
buf | Specified the data to be programmed. |
0 | Success |
-1 | Failure |
int efuse_key2_write | ( | u8 | address, |
u8 | len, | ||
u8 * | buf | ||
) |
Write key2 to efuse.
address | Specifies the offset of the programmed efuse. |
len | Specifies the data length of programmed data. |
buf | Specified the data to be programmed. |
0 | Success |
-1 | Failure |
void efuse_mtp_read | ( | uint8_t * | data | ) |
Read efuse contant of specified user.
data | Specified the address to save the readback data. |
none |
int efuse_mtp_write | ( | uint8_t * | data, |
uint8_t | len | ||
) |
Write user's contant to efuse.
data | Specified the data to be programmed. |
len | Specifies the data length of programmed data. |
value |
|
void efuse_otf_keyset | ( | u8 * | otf_key | ) |
Set 16B OTF key into EFUSE.
OtfKey | 16B EFUSE KEY |
int efuse_otp_chk | ( | u8 | len, |
u8 * | buf | ||
) |
ckeck user's contant to OTP efuse
buf | Specified the data to be programmed. |
len | Specifies the data length of programmed data. |
0 | Success |
-1 | Failure |
int efuse_otp_read | ( | u8 | address, |
u8 | len, | ||
u8 * | buf | ||
) |
Read efuse OTP contant.
address | Specifies the offset of the OTP. |
len | Specifies the length of readback data. |
buf | Specified the address to save the readback data. |
0 | Success |
-1 | Failure |
int efuse_otp_write | ( | u8 | address, |
u8 | len, | ||
u8 * | buf | ||
) |
Write user's contant to OTP efuse.
address | Specifies the offset of the programmed OTP. |
len | Specifies the data length of programmed data. |
buf | Specified the data to be programmed. |
0 | Success |
-1 | Failure |
void efuse_rdp_enable | ( | void | ) |
Set RDP Enable.
none |
void efuse_rdp_keyset | ( | u8 * | rdp_key | ) |
Set 16B RDP key into EFUSE.
rdp_key | 16B EFUSE KEY |