Home
last modified time | relevance | path

Searched refs:cardread (Results 1 – 4 of 4) sorted by relevance

/Zephyr-Core-3.7.0/samples/subsys/mgmt/osdp/control_panel/src/
Dmain.c56 card_read_callback(pd, e->cardread.format, in event_handler()
57 e->cardread.data, e->cardread.length); in event_handler()
/Zephyr-Core-3.7.0/subsys/mgmt/osdp/src/
Dosdp_pd.c157 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()
[all …]
Dosdp_cp.c475 event.cardread.reader_no = buf[pos++]; in cp_decode_response()
476 event.cardread.format = buf[pos++]; in cp_decode_response()
477 event.cardread.length = buf[pos++]; /* bits LSB */ in cp_decode_response()
478 event.cardread.length |= buf[pos++] << 8; /* bits MSB */ in cp_decode_response()
479 event.cardread.direction = 0; /* un-specified */ in cp_decode_response()
480 t1 = (event.cardread.length + 7) / 8; /* len: bytes */ in cp_decode_response()
484 memcpy(event.cardread.data, buf + pos, t1); in cp_decode_response()
493 event.cardread.reader_no = buf[pos++]; in cp_decode_response()
494 event.cardread.direction = buf[pos++]; in cp_decode_response()
495 event.cardread.length = buf[pos++]; in cp_decode_response()
[all …]
/Zephyr-Core-3.7.0/include/zephyr/mgmt/
Dosdp.h362 struct osdp_event_cardread cardread; /**< Card read event structure */ member