Keapismbusreceivebyte, Keapismbuswritebyte, 4 keapismbusreceivebyte – Kontron KEAPI User Manual

Page 30: 5 keapismbuswritebyte

Advertising
background image

Software specification for Kontron EAPI

30

Description:

A simple device may accept up to 256 possible encoded commands in a form of a byte. For additional
information, refer to the System Management Bus (SMBus) Specification Version 2.0, which is
available at http://smbus.org/specs/smbus20.pdf.

Parameters:

in/out

Parameter name

Description

in

boardHandle

Handle of the selected board.

in

smbusNr

Number of SMBus. From 0 to (SmbusCount - 1) returned by
KEApiGetSmbusCount.

in

smbusAddress

Address of SMBus slave device

in

byte

Command. Depends on device

2.15.4 KEApiSmbusReceiveByte

KEAPI_CALLTYPE

KEAPI_UINT32

KEApiSmbusReceiveByte (

KEAPI_UINT32

boardHandle,

KEAPI_UCHAR

smbusNr,

KEAPI_UCHAR

smbusAddress,

KEAPI_PUCHAR

pByte

);

Description:

A simple device may have information that the host needs. It can do so with Receive byte protocol. For
additional information, refer to the System Management Bus (SMBus) Specification Version 2.0, which
is available at http://smbus.org/specs/smbus20.pdf.

Parameters:

in/out

Parameter name

Description

in

boardHandle

Handle of the selected board.

in

smbusNr

Number of SMBus. From 0 to (SmbusCount - 1) returned by
KEApiGetSmbusCount.

in

smbusAddress

Address of SMBus slave device

out

pByte

Device information byte. Depends on device

2.15.5 KEApiSmbusWriteByte

KEAPI_CALLTYPE

KEAPI_UINT32

KEApiSmbusWriteByte (

KEAPI_UINT32

boardHandle,

KEAPI_UCHAR

smbusNr,

KEAPI_UCHAR

smbusAddress,

KEAPI_UCHAR

command,

KEAPI_UCHAR

byte

);

Description:

This function writes data of size of byte to a device. For additional information, refer to the System
Management

Bus

(SMBus)

Specification

Version

2.0,

which

is

available

at

http://smbus.org/specs/smbus20.pdf.

Parameters:

in/out

Parameter name

Description

in

boardHandle

Handle of the selected board.

in

smbusNr

Number of SMBus. From 0 to (SmbusCount - 1) returned by
KEApiGetSmbusCount.

in

smbusAddress

Address of SMBus slave device

Advertising