25 return static_cast<uint16_t
>((mask & (1U <<
pin)) ? 1 : 0);
34 uint16_t new_mask = mask;
36 new_mask |= (1U <<
pin);
38 new_mask &= ~(1U <<
pin);
40 if (mask != new_mask) {
85 value =
static_cast<uint8_t
>(value ? 1 : 0);
int8_t analogPinToDigitalPin(uint8_t pin)
bool attach_interrupt(uint8_t interrupt_num, AP_HAL::Proc p, uint8_t mode)
void write(uint8_t pin, uint8_t value)
virtual void write(uint8_t pin, uint8_t value)=0
void pinMode(uint8_t pin, uint8_t output)
uint8_t read(uint8_t pin)
AP_HAL::DigitalSource * channel(uint16_t n)
virtual uint8_t read(uint8_t pin)=0
void mode(uint8_t output)
DigitalSource(uint8_t pin)
void write(uint8_t value)