01.06.2013 Views

IPC@CHIP Documentation - SC12 @CHIP-RTOS V1.10

IPC@CHIP Documentation - SC12 @CHIP-RTOS V1.10

IPC@CHIP Documentation - SC12 @CHIP-RTOS V1.10

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ES:BX<br />

Pointer to a _REMOP structure:<br />

struct _REMOP<br />

{<br />

unsigned entries; // Number of entries in struct<br />

// REMOP_ENTRY x[].<br />

unsigned segment; // Common segment address<br />

};<br />

Return Value<br />

Comments<br />

struct REMOP_ENTRY<br />

{<br />

unsigned offs; // Address offset<br />

unsigned size; // Number of bytes<br />

unsigned maxsize; // Obsolete, set to 0<br />

unsigned elemsize; // Number of bytes per data<br />

// element<br />

unsigned distance; // Distance to next data element<br />

// (must be >= elemsize).<br />

}x[MAX_RETENTIVE_AREAS];<br />

Success: AX = 0<br />

Failure: AX < 0, Could not create file<br />

Call this function at the beginning of your program.<br />

The _REMOP structure reference by ES:BX must be static. (This function does not make a copy of the<br />

structure's content.)<br />

The number of entries in the x array of REMOP_ENTRY data structures can be defined by the user. This<br />

number must be specified in the entries field of the _REMOP data structure.<br />

All data saved / restored must reside in the same segment, specified by the segment field in _REMOP.<br />

The individual data item locations in this segment are then listed in the offs fields of the REMOP_ENTRY<br />

structure array.<br />

Related Topics<br />

Top of list<br />

Index page<br />

Save Non-Volatile Data<br />

Interrupt 0xA1 service 0xC1: HAL: Save Non-Volatile Data<br />

This function saves your non-volatile data listed in the _REMOP structure registered with HAL function<br />

0xC0. The data is stored in A:\rema.bin file.<br />

Parameters<br />

AH<br />

Must be 0xC1<br />

Page 312 / 400

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!