Keapistorageread, Keapistoragewrite, Keapigeti2cbuscount – Kontron KEAPI User Manual

Page 27: 14 i2c, 3 keapistorageread, 4 keapistoragewrite, 1 keapigeti2cbuscount

Advertising
background image

Software specification for Kontron EAPI

27

2.13.3 KEApiStorageRead

KEAPI_CALLTYPE

KEAPI_UINT32

KEApiStorageRead (

KEAPI_UINT32

boardHandle,

KEAPI_INT32

storageNr,

KEAPI_INT32

offset,

KEAPI_PUINT8

pData,

KEAPI_INT32

dataLength

);

Description:

Reads block of bytes from selected EEPROM.

Parameters:

in/out

Parameter name

Description

in

boardHandle

Handle of the selected board

in

storageNr

EEPROM storage number (starts from 0). Number of storage
areas can be obtained
from KEApiGetStorageCount function

in

offset

Start address offset

out

pData

Pointer to buffer that receives data

in

dataLength

Number of bytes to read

2.13.4 KEApiStorageWrite

KEAPI_CALLTYPE

KEAPI_UINT32

KEApiStorageWrite (

KEAPI_UINT32

boardHandle,

KEAPI_INT32

storageNr,

KEAPI_INT32

offset,

KEAPI_PUINT8

pData,

KEAPI_INT32

dataLength

);

Description:

Writes block of bytes to selected EEPROM.

Parameters:

in/out

Parameter name

Description

in

boardHandle

Handle of selected board

in

storageNr

EEPROM storage number. Number of storage areas can be
obtained
from KEApiGetStorageCount function

in

offset

Start address offset

in

pData

Pointer to buffer that contains data to write to EEPROM

in

dataLength

Number of bytes to write

2.14 I2C

2.14.1 KEApiGetI2cBusCount

KEAPI_CALLTYPE

KEAPI_UINT32

KEApiGetI2cBusCount (

KEAPI_UINT32

boardHandle,

KEAPI_PUCHAR

pI2cBusCount

);

Description:

Function for getting number of active I2C buses.

Advertising