27 lines
300 B
C
27 lines
300 B
C
|
/**
|
||
|
* Relays management
|
||
|
*/
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
#include <stddef.h>
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C"
|
||
|
{
|
||
|
#endif
|
||
|
|
||
|
/**
|
||
|
* Turn off all relays
|
||
|
*/
|
||
|
void relays_turn_off_all();
|
||
|
|
||
|
/**
|
||
|
* Turn on / off a relay
|
||
|
*/
|
||
|
void relays_set(int number, bool is_on);
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif
|