DMCP interface  03.15_020
System data

System data buffers. More...

Macros

#define AUX_BUF_SIZE   (5*512)
 System aux memory buffer size.
 

Functions

char * aux_buf_ptr ()
 Get pointer to aux memory buffer. More...
 
void * write_buf_ptr ()
 Get pointer to write buffer. More...
 
int write_buf_size ()
 Get write buffer size. More...
 
void sys_clear_write_buf_used ()
 Clear 'write-buffer-used' flag.
 
int sys_write_buf_used ()
 Get 'write-buffer-used' flag. More...
 

Detailed Description

System data buffers.

System gives access to two memory blocks (Auxiliary buffer and write buffer) for temporary use by program. Mainly to avoid repeated use of memory allocation and avoid possibility of not available memory.

Auxiliary buffer is always available.

Write buffer is shared with system for disk write operations. Therefore data in this buffer can be overwritten by disk write operations. User can use sys_clear_write_buf_used() and sys_write_buf_used() functions to clear and check write buffer used flag. User should also avoid to use this buffer if disk write mode is enabled (see sys_disk_write_enable() ).

Function Documentation

◆ aux_buf_ptr()

char* aux_buf_ptr ( )

Get pointer to aux memory buffer.

Returns
Pointer to aux memory buffer

◆ sys_write_buf_used()

int sys_write_buf_used ( )

Get 'write-buffer-used' flag.

Returns
'write-buffer-used' flag

This flag is se by any disk write operation which uses write buffer.

◆ write_buf_ptr()

void* write_buf_ptr ( )

Get pointer to write buffer.

Returns
Pointer to write buffer

◆ write_buf_size()

int write_buf_size ( )

Get write buffer size.

Returns
Write buffer size