1
0

smbus.h 678 B

1234567891011121314151617181920212223242526
  1. /*
  2. * Copyright (c) 2006-2021, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2017-12-04 Haley the first version
  9. */
  10. #ifndef __SMBUS_H_
  11. #define __SMBUS_H_
  12. #include <rtthread.h>
  13. /**
  14. * @brief External function definitions
  15. *
  16. */
  17. int rt_hw_smbus_init(void);
  18. rt_uint8_t am_smbus_tx_then_tx(rt_uint8_t SlaveAddress, rt_uint8_t command, rt_uint8_t* pBuffer, rt_uint16_t bytesNumber);
  19. rt_uint8_t am_smbus_tx_then_rx(rt_uint8_t SlaveAddress, rt_uint8_t command, rt_uint8_t* pBuffer, rt_uint16_t bytesNumber);
  20. void am_smbus_scl_high(void);
  21. void am_smbus_scl_low(void);
  22. #endif // __SMBUS_H_