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);
30 snprintf(buffer,
sizeof(buffer),
"GPIO%u",
pin_);
37 ESP_LOGD(TAG,
"Setting pin %d to %s",
pin_, value !=
inverted_ ?
"HIGH" :
"LOW");
46 auto *arg =
reinterpret_cast<ISRPinArg *
>(
arg_);
53 auto *arg =
reinterpret_cast<ISRPinArg *
>(
arg_);
54 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
std::string dump_summary() const override
void detach_interrupt() const override
bool digital_read() override
void digital_write(bool value) override
void pin_mode(gpio::Flags flags) override
ISRInternalGPIOPin to_isr() const override
Providing packet encoding functions for exchanging data with a remote host.