9static const char *
const TAG =
"host";
17 auto *arg =
new ISRPinArg{};
24 ESP_LOGD(TAG,
"Attaching interrupt %p to pin %d and mode %d", func,
pin_, (uint32_t)
type);
33 ESP_LOGD(TAG,
"Setting pin %d to %s",
pin_, value !=
inverted_ ?
"HIGH" :
"LOW");
42 auto *arg =
reinterpret_cast<ISRPinArg *
>(
arg_);
49 auto *arg =
reinterpret_cast<ISRPinArg *
>(
arg_);
50 ESP_LOGD(TAG,
"Clearing interrupt for pin %d", arg->pin);
Copy of GPIOPin that is safe to use from ISRs (with no virtual functions)
void digital_write(bool value)
void attach_interrupt(void(*func)(void *), void *arg, gpio::InterruptType type) const override
void detach_interrupt() const override
bool digital_read() override
void digital_write(bool value) override
void pin_mode(gpio::Flags flags) override
size_t dump_summary(char *buffer, size_t len) const override
ISRInternalGPIOPin to_isr() const override
Providing packet encoding functions for exchanging data with a remote host.