Smbus, Keapigetsmbuscount, Keapismbusquickcommand – Kontron KEAPI User Manual
Page 29: Keapismbussendbyte, 15 smbus, 1 keapigetsmbuscount, 2 keapismbusquickcommand, 3 keapismbussendbyte

Software specification for Kontron EAPI
29
in/ out
pDataLength
Also an "out" parameter. When the function finishes,
this parameter contains a real value of the read data
length.
2.15 SMBus
2.15.1 KEApiGetSmbusCount
KEAPI_CALLTYPE
KEAPI_UINT32
KEApiGetSmbusCount (
KEAPI_UINT32
boardHandle,
KEAPI_PUCHAR
pSmbusCount
);
Description:
Function for getting number of active SMBuses.
Parameters:
in/out
Parameter name
Description
in
boardHandle
Handle of the selected board
out
pSmbusCount
Pointer to variable to save SMBus count
2.15.2 KEApiSmbusQuickCommand
KEAPI_CALLTYPE
KEAPI_UINT32
KEApiSmbusQuickCommand (
KEAPI_UINT32
boardHandle,
KEAPI_UCHAR
smbusNr,
KEAPI_UCHAR
smbusAddress,
KEAPI_UCHAR
operation
);
Description:
Quick command read/write may be used to simply turn a device on/off or to enable/disable low-power
standby mode etc. There is no data received. 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
operation
What should be done
SMBUS_WRITE (0)
SMBUS_READ (1)
2.15.3 KEApiSmbusSendByte
KEAPI_CALLTYPE
KEAPI_UINT32
KEApiSmbusSendByte (
KEAPI_UINT32
boardHandle,
KEAPI_UCHAR
smbusNr,
KEAPI_UCHAR
smbusAddress,
KEAPI_UCHAR
byte
);