22 lines
593 B
C
22 lines
593 B
C
#ifndef REMOTE_CTRL_H
|
|
#define REMOTE_CTRL_H
|
|
|
|
/*
|
|
* remote_ctrl.h — 433MHz SK-RC433A remote control input via GPIO sysfs
|
|
*
|
|
* gpio65: INPUT — SK-RC433A OUT (interlock mode: HIGH=START, LOW=STOP)
|
|
* gpio66: OUTPUT — test LED (blink when START, off when STOP)
|
|
*/
|
|
|
|
/* Initialize GPIOs and start poll/blink threads.
|
|
* Returns 0 on success, -1 on error. */
|
|
int remote_ctrl_init(void);
|
|
|
|
/* Stop threads and release GPIO resources. */
|
|
void remote_ctrl_cleanup(void);
|
|
|
|
/* Get current remote state: 1=START, 0=STOP. Thread-safe. */
|
|
int remote_ctrl_get_state(void);
|
|
|
|
#endif /* REMOTE_CTRL_H */
|