看了Data Flash Programming and Calibrating the bq3060 Gas Gauge这篇文档,其中的VB6代码,用到了一个函数WriteSMBusInteger(),这个函数是哪来的?有什么作用?
Hugo Zhang:
这个文档里有关于这个函数的描述:
1. WriteSMBusInteger( ) has two arguments – the SMBus command and a signed integer. Internally, thisfunction separates the integer into two bytes for transmission by the SMBus write-word protocol.