mirror of
https://github.com/Show-maket/IR-protocol.git
synced 2025-06-28 05:09:40 +00:00
auto begin
This commit is contained in:
@ -11,7 +11,7 @@ class IR_Encoder : public IR_FOX
|
||||
static IR_Encoder *last;
|
||||
IR_Encoder *next;
|
||||
public:
|
||||
static HardwareTimer IR_Timer;
|
||||
static HardwareTimer* IR_Timer;
|
||||
private:
|
||||
// uint16_t id; /// @brief Адрес передатчика
|
||||
public:
|
||||
@ -21,7 +21,7 @@ public:
|
||||
/// @param decPair Приёмник, для которого отключается приём в момент передачи передатчиком
|
||||
IR_Encoder(uint8_t pin, uint16_t addr = 0, IR_DecoderRaw *decPair = nullptr, bool autoHandle = true);
|
||||
static void isr();
|
||||
static void begin(HardwareTimer IR_Timer, uint8_t channel, IRQn_Type IRQn);
|
||||
static void begin(HardwareTimer* IR_Timer, uint8_t channel, IRQn_Type IRQn, uint8_t priority);
|
||||
static HardwareTimer* get_IR_Timer();
|
||||
|
||||
void enable();
|
||||
@ -46,9 +46,9 @@ public:
|
||||
~IR_Encoder();
|
||||
volatile bool ir_out_virtual;
|
||||
|
||||
void _isr();
|
||||
private:
|
||||
void _sendBack(bool isAdressed, uint16_t addrTo, uint8_t *data, uint8_t len);
|
||||
void _isr();
|
||||
|
||||
void setDecoder_isSending();
|
||||
void sendByte(uint8_t byte, bool *prev, bool LOW_FIRST);
|
||||
|
Reference in New Issue
Block a user