77 lines
2.9 KiB
C
Raw Permalink Normal View History

2026-05-10 21:35:40 +08:00
#ifndef __TB6612_H__
#define __TB6612_H__
#include "stdint.h"
/*************************************************************************************
* @brief tb6612初始化
*
* @warning ,
* @note
*************************************************************************************/
void tb6612_init(void);
/*************************************************************************************
* @brief tb6612
* @param[in/out] Speed
*
* @warning ,
* @note
*************************************************************************************/
void tb6612_go_ahead(int16_t Speed);
/*************************************************************************************
* @brief tb6612 退
* @param[in/out] Speed
*
* @warning ,
* @note
*************************************************************************************/
void tb6612_go_back(int16_t Speed);
/*************************************************************************************
* @brief tb6612
* @param[in/out] Speed
*
* @warning ,
* @note
*************************************************************************************/
void tb6612_go_left(int16_t Speed);
/*************************************************************************************
* @brief tb6612
* @param[in/out] Speed
*
* @warning ,
* @note
*************************************************************************************/
void tb6612_go_right(int16_t Speed);
/*************************************************************************************
* @brief tb6612
* @param[in/out] Speed
*
* @warning ,
* @note
*************************************************************************************/
void tb6612_go_self_rotate(int16_t Speed);
/*************************************************************************************
* @brief tb6612
*
* @warning ,
* @note
*************************************************************************************/
void tb6612_stop(void);
/*************************************************************************************
* @brief tB6612
* @param[in/out] Speed
*
* @warning ,
* @note
*************************************************************************************/
void tb6612_change_speed(uint16_t Speed);
#endif