Searched refs:cardread (Results 1 – 4 of 4) sorted by relevance
56 card_read_callback(pd, e->cardread.format, in event_handler()57 e->cardread.data, e->cardread.length); in event_handler()
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()655 len_bytes = (event->cardread.length + 7) / 8; in pd_build_reply()658 buf[len++] = (uint8_t)event->cardread.reader_no; in pd_build_reply()659 buf[len++] = (uint8_t)event->cardread.format; in pd_build_reply()660 buf[len++] = BYTE_0(event->cardread.length); in pd_build_reply()661 buf[len++] = BYTE_1(event->cardread.length); in pd_build_reply()662 memcpy(buf + len, event->cardread.data, len_bytes); in pd_build_reply()669 assert_buf_len(REPLY_FMT_LEN + event->cardread.length, max_len); in pd_build_reply()[all …]
440 event.cardread.reader_no = buf[pos++]; in cp_decode_response()441 event.cardread.format = buf[pos++]; in cp_decode_response()442 event.cardread.length = buf[pos++]; /* bits LSB */ in cp_decode_response()443 event.cardread.length |= buf[pos++] << 8; /* bits MSB */ in cp_decode_response()444 event.cardread.direction = 0; /* un-specified */ in cp_decode_response()445 t1 = (event.cardread.length + 7) / 8; /* len: bytes */ in cp_decode_response()449 memcpy(event.cardread.data, buf + pos, t1); in cp_decode_response()458 event.cardread.reader_no = buf[pos++]; in cp_decode_response()459 event.cardread.direction = buf[pos++]; in cp_decode_response()460 event.cardread.length = buf[pos++]; in cp_decode_response()[all …]
276 struct osdp_event_cardread cardread; member