nxt_motors.h
来自「专业汽车级嵌入式操作系统OSEK的源代码」· C头文件 代码 · 共 22 行
H
22 行
#ifndef __NXT_MOTORS_H__# define __NXT_MOTORS_H__# include "mytypes.h"# define NXT_N_MOTORS 3int nxt_motor_get_count(U32 n);void nxt_motor_set_count(U32 n, int count);void nxt_motor_set_speed(U32 n, int speed_percent, int brake);void nxt_motor_command(U32 n, int cmd, int target_count, int speed_percent);void nxt_motor_init(void);// ISR points used by motor processingvoid nxt_motor_1kHz_process(void);#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?