CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - c8051f340 smbus
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - c8051f340 smbus - List
[
ARM-PowerPC-ColdFire-MIPS
]
smbus
DL : 0
c8051f340的SMBUS(iic)总线的驱动代码,使用任务方式,只支持主器件,不支持从器件方式,调用smbtskcx查询可以再添加几条任务,#define MAXTSKCOUNT 10 中的(10)为最大任务设定,可以自己更改,smbaddtask为添加任务的函数,其它的过程用户可以不关心, 写过程为先写8位器件地址,再写数据指针指向的数据(内容用户自己设定,如要包含子地址等),读时如果有子地址,要分成两个任务,一个是要写入子地址任务,一个是读取任务, 如smbaddtask(0xa0,2,p) ambddtask(0xa1,10,s) -c8051f340 the SMBUS (iic), the bus driver code, use the task the way, only support the master device from the device does not support call smbtskcx query can then add a few tasks in# define MAXTSKCOUNT 10 (10), the largest task set can change smbaddtask added function of the task, the other process users do not care about the writing process to first write the 8-bit device address, write data pointer to the data (the contents of the user' s own settings, such as to include a sub-address ), read if there are sub-address, to be divided into two tasks, and a task is to be written to the sub-address, a read task, such as smbaddtask (0xa0, 2, p) ambddtask (0xa1, 10, s)
Date
: 2025-12-16
Size
: 1kb
User
:
kk
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.