main_ubi_sdk v 0.1.3
This is UBI4 documentation
motor_driver.h
Go to the documentation of this file.
1/*
2 * motor_driver.h
3 *
4 * Created on: Mar 5, 2025
5 * Author: ovodo
6 */
7
8#ifndef MOTORS_DRIVERS_MOTOR_DRIVER_H_
9#define MOTORS_DRIVERS_MOTOR_DRIVER_H_
10
11#include "stdint.h"
12
13typedef void (*DriverSelfFunc_t)(void* self);
14typedef void (*DriverSelfFuncWithParam_t)(void* self, uint8_t param);
15
16
17
18typedef struct
19{
22
24
39
41
42
43
44#endif /* MOTORS_DRIVERS_MOTOR_DRIVER_H_ */
void(* DriverSelfFunc_t)(void *self)
Definition motor_driver.h:13
void MotorDriverBaseInit(motor_driver_base_t *self, motor_driver_base_init_t *init)
Definition motor_driver.c:30
void(* DriverSelfFuncWithParam_t)(void *self, uint8_t param)
Definition motor_driver.h:14
Definition motor_driver.h:19
uint8_t current_channel
Definition motor_driver.h:21
uint8_t driver_number
Definition motor_driver.h:20
Definition motor_driver.h:26
DriverSelfFuncWithParam_t MoveBackward
Definition motor_driver.h:33
DriverSelfFuncWithParam_t MoveForward
Definition motor_driver.h:32
motor_driver_base_init_t * init
Definition motor_driver.h:28
DriverSelfFunc_t Brake
Definition motor_driver.h:34
DriverSelfFunc_t Idle
Definition motor_driver.h:35