mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-06 11:36:59 +03:00
22 lines
536 B
C
22 lines
536 B
C
/*
|
|
* (c) Philippe G. 2019, philippe_44@outlook.com
|
|
*
|
|
* This software is released under the MIT License.
|
|
* https://opensource.org/licenses/MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <stdint.h>
|
|
#include "freertos/FreeRTOS.h"
|
|
#include "freertos/ringbuf.h"
|
|
|
|
typedef enum {IR_NEC, IR_RC5} infrared_mode_t;
|
|
typedef void (*infrared_handler)(uint16_t addr, uint16_t cmd);
|
|
|
|
bool infrared_receive(RingbufHandle_t rb, infrared_handler handler);
|
|
void infrared_init(RingbufHandle_t *rb, int gpio, infrared_mode_t mode);
|
|
int8_t infrared_gpio(void);
|
|
|