18 lines
256 B
C
18 lines
256 B
C
|
#ifndef CONTROLLER_RELAY_H
|
||
|
#define CONTROLLER_RELAY_H
|
||
|
|
||
|
#include <stdint.h>
|
||
|
|
||
|
#include <config.h>
|
||
|
|
||
|
typedef struct relay {
|
||
|
uint8_t index;
|
||
|
char name[128];
|
||
|
uint16_t *schedule;
|
||
|
} relay;
|
||
|
|
||
|
relay*
|
||
|
relay_init(uint8_t index);
|
||
|
|
||
|
#endif //CONTROLLER_RELAY_H
|