GK SDK 源码库: XMIPCLinuxV100R005C00SPC030 (kernel/tools/open_source excluded)

This commit is contained in:
lai
2026-09-06 03:52:57 +08:00
commit b1928b41c0
21813 changed files with 4413081 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
#ifndef LOTUS_I2C_H
#define LOTUS_I2C_H
#include <compiler.h>
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
struct i2c_client {
unsigned char i2c_num;
unsigned short dev_addr;
unsigned long int reg_addr;
unsigned int reg_width;
};
int hal_i2c_init(unsigned char i2c_num);
int hal_i2c_recv(const struct i2c_client *client, unsigned int *buf,
unsigned int count);
int hal_i2c_send(unsigned char i2c_num, unsigned short dev_addr, const char *buf,
unsigned int count);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* HAL_I2C_H */