i2c.h 387 B

1234567891011121314151617181920
  1. /*
  2. * Copyright (C) 2018 Marvell International Ltd.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. * https://spdx.org/licenses
  6. */
  7. #ifndef I2C_H
  8. #define I2C_H
  9. void i2c_init(void);
  10. int i2c_read(uint8_t chip,
  11. unsigned int addr, int alen, uint8_t *buffer, int len);
  12. int i2c_write(uint8_t chip,
  13. unsigned int addr, int alen, uint8_t *buffer, int len);
  14. #endif /* I2C_H */