49 if(
mask & (0x1 << i)){
52 *buf |= b << cur_btn++;
54 *buf |= !b << cur_btn++;
76 *buf |= (tBuf & ~pulsemask);
87 uint16_t dat = this->
mask & 0xffff;
90 uint16_t dat2 = this->
polarity & 0x01;
119 replies.emplace_back(this->
mask);
129 replies.emplace_back(this->
polarity ? 1 : 0);
147 replies.emplace_back(buf);
void registerCommand(const char *cmd, const ID cmdid, const char *help=nullptr, uint32_t flags=0)
bool Flash_Write(uint16_t adr, uint16_t dat)
bool Flash_Read(uint16_t adr, uint16_t *buf, bool checkempty=true)