21 #ifndef COSA_SOFT_SRPI_HH 22 #define COSA_SOFT_SRPI_HH 97 __attribute__((always_inline))
99 uint8_t ix = (pin >> 3);
100 return ((
m_port[ix] & _BV(pin & 0x7)) != 0);
110 __attribute__((always_inline))
112 uint8_t ix = (pin >> 3);
113 return ((
m_port[ix] & _BV(pin & 0x7)) == 0);
124 for (uint8_t ix = 0; ix < N; ix++)
145 __attribute__((always_inline))
156 __attribute__((always_inline))
SRPI(Board::DigitalPin sda=Board::D3, Board::DigitalPin scl=Board::D4, Board::DigitalPin pld=Board::D5)
void is_clear(uint8_t pin)
static const uint8_t PINS