same5_modify_user_row_masked() is only used within OpenOCD.
 
Symbols
loading...
Files
loading...
CodeScopeDevelopment ToolsOpenOCDsame5_modify_user_row_masked()

same5_modify_user_row_masked() function

Modify the contents of the User Row in Flash. The User Row itself has a size of one page and contains a combination of "fuses" and calibration data. Bits which have a value of zero in the mask will not be changed.

Syntax

static int same5_modify_user_row_masked(struct target *target,     const uint8_t *data,     const uint8_t *mask,     uint32_t offset,     uint32_t count);

Arguments

target

Pointer to the target structure.

data

Pointer to the value to write.

mask

Pointer to bitmask, 0 -> value stays untouched.

offset

Offset in user row where new data will be applied.

count

Size of buffer and mask in bytes.

Return value

On success ERROR_OK, on failure an errorcode.

References

LocationReferrerText
atsame5.c:482
static int same5_modify_user_row_masked(struct target *target,
atsame5.c:563same5_modify_user_row()
return same5_modify_user_row_masked(target,
atsame5.c:606same5_protect()
res = same5_modify_user_row_masked(bank->target,
atsame5.c:806same5_handle_userpage_command()
res = same5_modify_user_row_masked(target,

Call Tree

Functions calling same5_modify_user_row_masked()
Functions called by same5_modify_user_row_masked()
same5_modify_user_row_masked()
Data read by same5_modify_user_row_masked()
Data written by same5_modify_user_row_masked()
same5_modify_user_row_masked()::res
same5_modify_user_row_masked()::page_size
same5_modify_user_row_masked()::buf
same5_modify_user_row_masked()::changed
same5_modify_user_row_masked()::i
same5_modify_user_row_masked()::old_b
same5_modify_user_row_masked()::new_b
all items filtered out
same5_modify_user_row_masked()
same5_modify_user_row_masked()::res
same5_modify_user_row_masked()::changed
same5_modify_user_row_masked()::i
all items filtered out
Type of same5_modify_user_row_masked()
same5_modify_user_row_masked()
uint8_t
uint32_t
all items filtered out