Serial functions, 5 serial functions – Solvline Eddy DKV2.1.0.3 User Manual

Page 84

Advertising
background image

Chapter 6. Library

Introduction

84

Function

Reads pointer to registered shared memory.

Format

void *SB_GetSharedMemory (int Key_ID, int Buffer_Size);

Parameter

Key_ID
Buffer_Size

ID of registered shared menory
Size of shared memory used

*buffer_address Memory address of shared memory

Returns

Returns -1 upon failure.

Notice

Portview is Windows application developed by SystemBase which can
remotely monitor Eddy’s operating condition. In contrast, SNMP server,
which provides basically same function as Portview, is industry’s standard
monitoring protocol S/W developed by 3Com, Cysco, etc. and sold in
hundreds of thousands of U.S. dollars.
To be compatible with both of the applications, each application in Eddy
uses shared memory to store information and send the information to
Portview and SNMP.

Note that PortView and SNMP Agent has to be set in the environment
configuration.

SB_SetSharedMemory

Function

Requests shared memory to be used and reads memory pointer.

Format

void *SB_SetSharedMemory (int Key_ID, int Buffer_Size);

Parameter

Key_ID
Buffer_Size

ID of shared memory to be registered
Size of shared memory to be used

Returns

*buffer_address Memory address of shared memory

Returns -1 upon failure.

Notice

In Eddy, this function is used for PortView and SNMP agent.
User can use this function to access shared memory for other purpose.

6.5 Serial functions

These functions are used to handle internal serial port and UART.

SB_OpenSerial

Function

Opens serial port.

Format

int SB_OpenSerial (int Port_No);

Parameter

Port_No

Serial port number
0: First serial port
1: Second serial port

Advertising