Description: 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)
To Search:
File list (Check if you may need any files):
smbus.c
smbus.h