forked from electro/esp-irblaster
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
688 B
37 lines
688 B
//
|
|
// Created by MightyPork on 2022/08/20.
|
|
//
|
|
|
|
#ifndef FANCTL_ACTUATORS_H
|
|
#define FANCTL_ACTUATORS_H
|
|
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
#include "recup_types.h"
|
|
|
|
enum motor_direction {
|
|
MOTOR_DIR_IN = 0,
|
|
MOTOR_DIR_OUT = 1
|
|
};
|
|
|
|
struct actuators_status {
|
|
enum motor_direction dir;
|
|
bool blind;
|
|
bool led;
|
|
perc_t power;
|
|
};
|
|
|
|
extern struct actuators_status gAct;
|
|
|
|
void act_init();
|
|
void act_motor_power_set(perc_t perc);
|
|
void act_motor_direction_set(enum motor_direction dir);
|
|
void act_blind_set(bool open);
|
|
void act_led_set(bool on);
|
|
void act_statusled_set(bool on);
|
|
|
|
cels_t act_temp1();
|
|
cels_t act_temp2();
|
|
uint16_t act_temps_serial();
|
|
|
|
#endif //FANCTL_ACTUATORS_H
|
|
|