Keapismbusreadbyte, Keapismbuswriteword, 6 keapismbusreadbyte – Kontron KEAPI User Manual
Page 31: 7 keapismbuswriteword

Software specification for Kontron EAPI
31
in
command
Command code. Depends on device
in
byte
Data
2.15.6 KEApiSmbusReadByte
KEAPI_CALLTYPE
KEAPI_UINT32
KEApiSmbusReadByte (
KEAPI_UINT32
boardHandle,
KEAPI_UCHAR
smbusNr,
KEAPI_UCHAR
smbusAddress,
KEAPI_UCHAR
command,
KEAPI_PUCHAR
pByte
);
Description:
This function reads data of size of byte from 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
in
command
Command code. Depends on device
out
pByte
Pointer to the data value
2.15.7 KEApiSmbusWriteWord
KEAPI_CALLTYPE
KEAPI_UINT32
KEApiSmbusWriteWord (
KEAPI_UINT32
boardHandle,
KEAPI_UCHAR
smbusNr,
KEAPI_UCHAR
smbusAddress,
KEAPI_UCHAR
command,
KEAPI_UINT16
word
);
Description:
This function writes data of size of word 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
in
command
Command code. Depends on device
in
word
Data word to write