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