问题描述
- struct devices *address - 寄存器的地址。
- number_bytes - 要写入的数据字节数。
- int8_t wdata - 要写入寄存器地址的数据。
- unsigned char *result_buffer - 指向 256 字节缓冲区的指针。
- var 定义为 *var,可用于将 i2c_write(address,1,wdata,the_buffer) 存储到其中。
- 返回一个值而不是 0 或 1。
- 例如 - (0x2,02,?)。
int i2c_buffer_write(struct devices *address,int number_bytes,int8_t wdata,unsigned char *result_buffer)
{
char *var;
char the_buffer[256];
var = i2c_write(address,the_buffer);
return var;
}
int i2c_new_write()
{
//How can I write from the buffer to the function i2c_new_write() ?
}
如何放置 result_buffer 以便我可以从 i2c_buffer_Write 中的缓冲区写入 i2c_new_Write??
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)