
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:
Handle of the selected board.
Number of SMBus. From 0 to (SmbusCount - 1) returned by
KEApiGetSmbusCount.
Address of SMBus slave device
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:
Handle of the selected board.
Number of SMBus. From 0 to (SmbusCount - 1) returned by
KEApiGetSmbusCount.
Address of SMBus slave device
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:
Handle of the selected board.
Number of SMBus. From 0 to (SmbusCount - 1) returned by
KEApiGetSmbusCount.
Address of SMBus slave device
Kommentare zu diesen Handbüchern