Lines Matching refs:cardread
157 if (event->cardread.format == OSDP_CARD_FMT_RAW_UNSPECIFIED || in pd_translate_event()
158 event->cardread.format == OSDP_CARD_FMT_RAW_WIEGAND) { in pd_translate_event()
160 } else if (event->cardread.format == OSDP_CARD_FMT_ASCII) { in pd_translate_event()
670 len_bytes = (event->cardread.length + 7) / 8; in pd_build_reply()
675 buf[len++] = (uint8_t)event->cardread.reader_no; in pd_build_reply()
676 buf[len++] = (uint8_t)event->cardread.format; in pd_build_reply()
677 buf[len++] = BYTE_0(event->cardread.length); in pd_build_reply()
678 buf[len++] = BYTE_1(event->cardread.length); in pd_build_reply()
679 memcpy(buf + len, event->cardread.data, len_bytes); in pd_build_reply()
686 if (!check_buf_len(REPLY_FMT_LEN + event->cardread.length, max_len)) { in pd_build_reply()
690 buf[len++] = (uint8_t)event->cardread.reader_no; in pd_build_reply()
691 buf[len++] = (uint8_t)event->cardread.direction; in pd_build_reply()
692 buf[len++] = (uint8_t)event->cardread.length; in pd_build_reply()
693 memcpy(buf + len, event->cardread.data, event->cardread.length); in pd_build_reply()
694 len += event->cardread.length; in pd_build_reply()