![]() |
SmartCradle v1
Baby smart cradle
|
Motor module implementation. More...
#include <stdio.h>#include <stdlib.h>#include <unistd.h>#include <fcntl.h>#include <linux/types.h>#include "../inc/motor.h"
Go to the source code of this file.
Functions | |
| void | initMotor () |
| Load the motor driver device driver. More... | |
| void | remMotor () |
| Remove the motor driver device driver. More... | |
| int | startMotor () |
| Start the motor. More... | |
| int | stopMotor () |
| Stop the motor. More... | |
| _Bool | getMotorStatus () |
| Get the Motor Status object. More... | |
Variables | |
| const char | RUN = '1' |
| const char | STOP = '0' |
| static _Bool | motorRunning |
| _Bool getMotorStatus | ( | ) |
| int startMotor | ( | ) |
| int stopMotor | ( | ) |