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 11 #ifndef __SMBUS_H_ 12 #define __SMBUS_H_ 13 14 #include <rtthread.h> 15 16 /** 17 * @brief External function definitions 18 * 19 */ 20 int rt_hw_smbus_init(void); 21 rt_uint8_t am_smbus_tx_then_tx(rt_uint8_t SlaveAddress, rt_uint8_t command, rt_uint8_t* pBuffer, rt_uint16_t bytesNumber); 22 rt_uint8_t am_smbus_tx_then_rx(rt_uint8_t SlaveAddress, rt_uint8_t command, rt_uint8_t* pBuffer, rt_uint16_t bytesNumber); 23 void am_smbus_scl_high(void); 24 void am_smbus_scl_low(void); 25 26 #endif // __SMBUS_H_ 27