
Series 30i/ 31i/ 32i-A
C executor library for conversion
Programming manual
01 04.05.06
S. Hasegawa
New registration
B-64183EN/01
EDIT
DATE
DESIG.
DESCRIPTION
86/226
DRAW.NO.
3.7.2
Write to the Extended Nonvolatile Memory
[Name]
pl_kpmwrt
[Syntax]
#include <pmclib.h>
short pl_kpmwrt(unsigned long offset,
char * data,
unsigned short size);
[Arguments]
Input
offset: Write start offset
*data: Write data
size: Number of bytes to be written
Output
---
[Return]
0: Normal completion.
2: The "offset" or "size" is invalid.
6: No option
[Description]
This function writes data to the extended nonvolatile memory.
[Related Function]
pmc_rdkpm(), pmc_wrkpm(), pmc_kpmsiz()
[Example]
/* Clear 10 bytes from offset 0 to zeros */
short ret;
const char data[10]={0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
ret = pl_kpmwrt(0, data, sizeof(data));
if (ret != 0)
{
/* error handling */
}