diff options
author | BIGTREETECH <38851044+bigtreetech@users.noreply.github.com> | 2023-06-08 08:55:46 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-07 20:55:46 -0400 |
commit | 645a1b8364c3110f706db0f976ac5fa20b968c36 (patch) | |
tree | 6a7d22aeb89c616bbea8c78cc857ab789b5d66cb /src/i2c_software.h | |
parent | b389c70d5a76f6c8f63283126daecd2e98899f8e (diff) | |
download | kutter-645a1b8364c3110f706db0f976ac5fa20b968c36.tar.gz kutter-645a1b8364c3110f706db0f976ac5fa20b968c36.tar.xz kutter-645a1b8364c3110f706db0f976ac5fa20b968c36.zip |
i2c_software: Implementation of software i2c (#6141)
Signed-off-by: Alan.Ma from BigTreeTech <tech@biqu3d.com>
Diffstat (limited to 'src/i2c_software.h')
-rw-r--r-- | src/i2c_software.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/i2c_software.h b/src/i2c_software.h new file mode 100644 index 00000000..9bd54f29 --- /dev/null +++ b/src/i2c_software.h @@ -0,0 +1,13 @@ +#ifndef __I2C_SOFTWARE_H +#define __I2C_SOFTWARE_H + +#include <stdint.h> // uint8_t + +struct i2c_software *i2c_software_oid_lookup(uint8_t oid); +void i2c_software_write(struct i2c_software *sw_i2c + , uint8_t write_len, uint8_t *write); +void i2c_software_read(struct i2c_software *sw_i2c + , uint8_t reg_len, uint8_t *reg + , uint8_t read_len, uint8_t *read); + +#endif // i2c_software.h |