Microchip
直播中

曾艳

7年用户 257经验值
私信 关注
[问答]

如何将I2c-MCC生成的驱动程序用于PIC24FJ64GA

我已经搜索过任何C代码示例,我所能找到的是ASMif你知道的任何请张贴一个链接,我想使用7位和10位地址的驱动程序,需要知道何时完成感谢任何帮助

以上来自于百度翻译


      以下为原文

    I have searched for any C code examples, all I can find are ASM
if you know of any please post a link
I want use this driver with 7 and 10 bit addressing
and need to know when completed

void I2C2_MasterWrite(
            uint8_t *pdata,
            uint8_t length,
            uint16_t address,
            I2C2_MESSAGE_STATUS *pstatus);
}

thanks for any help

回帖(1)

陈光琦

2019-7-26 16:12:29
我惊讶地发现在生成的头文件中有一些代码示例…由于代码中的一些非常奇怪的工作方式,仍然没有足够的信息使事情正常工作,但是有一些关于该做什么的提示。

以上来自于百度翻译


      以下为原文

    I was surprised to find some code examples in the generated header file...  still not enough information to get things working due to some very odd ways of doing things in the code but there are hints as to what to do.
举报

更多回帖

发帖
×
20
完善资料,
赚取积分