A.1.2 eeprom_writebyte, A.1.2, Eeprom_writebyte – ADLINK EOS-1200 User Manual

Page 79

Advertising
background image

Function Library

67

EOS-1200

Parameter(s)

Offset

Offset address of the EEPROM performing the operation.
Valid values are 0 to 255.

Data

Data read from the address of the EEPROM.

Return Code(s)

0: No error
-1: Not a valid device
-2: Invalid parameter
-3: EEPROM is busy

A.1.2

EEPROM_WriteByte

Description

Writes one byte of data from the EEPROM. After a success-
ful write byte command, the EEPROM enters an internally
timed write cycle for about 5 ms. All subsequent read or
write commands during this write cycle will return a -3 error
code.

Syntax

C/C++

short EEPROM_WriteByte (short Offset, unsigned
char Data)

Visual Basic

EEPROM_WriteByte (ByVal Offset As Integer,
ByVal Data As Byte) As Integer

VB.Net

EEPROM_WriteByte (ByVal Offset As Short, ByVal
Data As Byte) As Short

C#

short EEPROM_WriteByte (short Offset, byte
Data)

Advertising