Sram Driver; Sram Driver Apis; Function Specifications - Pro-face PS Series Developer's Manual

Type g application development kit (adk)
Table of Contents

Advertisement

2 SRAM Driver

The function of this driver is to read/write data from/to SRAM.
Up to 256KB is available. If a function's return value exceeds 256KB during access, an error will
occur.

2.1 SRAM Driver APIs

GetSramDriverVersion
SramDriverOpen
SramDriverClose
SramByteRead
SramWordRead
SramLongRead
SramByteWrite
SramWordWrite
SramLongWrite

2.2 Function Specifications

GetSramDriverVersion
Call format
BOOL WINAPI GetSramDriverVersion (WORD *pMajor, WORD *pMinor)
Return value
TRUE: Normal
FALSE: Error
Argument
WORD *pMajor
WORD *pMinor
Processing performed
Retrieves the driver version.
E.g.) BOOL ret = GetSramDriverVersion (WORD &Major, WORD &Minor);
Note
When the driver version is 1.10,
Major is 1 (in decimal) and;
Minor is 10 (in decimal).
API name
Retrieves information on the driver version.
Opens the SRAM driver.
Closes the SRAM driver.
Reads data from the SRAM. (Byte)
Reads data from the SRAM. (Word)
Reads data from the SRAM. (Long)
Writes data into the SRAM. (Byte)
Writes data into the SRAM. (Word)
Writes data into the SRAM. (Long)
Pointer to the version information (Major, 0 to 99)
Pointer to the version information (Minor, 0 to 99)
3 Library Interface Reference
Description
3-9

Advertisement

Table of Contents
loading

Table of Contents