1.8.19.22 SEFCx_UserSignatureRead Function

C

bool SEFCx_UserSignatureRead(uint32_t *data, uint32_t length, SEFC_USERSIGNATURE_BLOCK block, SEFC_USERSIGNATURE_PAGE page);

Summary

Reads the user signature data of length bytes

Description

This function reads the user signature data of length bytes from the given block number and page number

Precondition

None.

Parameters

Param Description
data user signature
length length of the user signature
block block number
page page number

Returns

status of operation

Example

static uint8_t userSignBuffWr[USERSIGN_BUFFER_SIZE];
static uint8_t userSignBuffRd[USERSIGN_BUFFER_SIZE] = {0};            
// Write User Signature
SEFC0_UserSignatureWrite((uint32_t *)userSignBuffWr, sizeof(userSignBuffWr) >> 2, BLOCK_0, PAGE_0);
// Read User Signature
if (SEFC0_UserSignatureRead((uint32_t *)userSignBuffRd, sizeof(userSignBuffRd) >> 2, BLOCK_0, PAGE_0) == false)
{
     //error
}

Remarks

None.