
Software specification for Kontron EAPI
31
Command code. Depends on device
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:
Handle of the selected board.
Number of SMBus. From 0 to (SmbusCount - 1) returned by
KEApiGetSmbusCount.
Address of SMBus slave device
Command code. Depends on device
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:
Handle of the selected board.
Number of SMBus. From 0 to (SmbusCount - 1) returned by
KEApiGetSmbusCount.
Address of SMBus slave device
Command code. Depends on device
Comentarios a estos manuales