Lines Matching +full:smart +full:- +full:mode
4 * SPDX-License-Identifier: Apache-2.0
23 #define ISSET_FLAG(p, f) (((p)->flags & (f)) == (f))
24 #define SET_FLAG(p, f) ((p)->flags |= (f))
25 #define CLEAR_FLAG(p, f) ((p)->flags &= ~(f))
32 #define GET_CURRENT_PD(p) ((p)->current_pd)
35 (p)->current_pd = osdp_to_pd(p, i); \
38 (uint32_t)((1 << ((ctx)->num_pd)) - 1)
39 #define AES_PAD_LEN(x) ((x + 16 - 1) & (~(16 - 1)))
40 #define NUM_PD(ctx) ((ctx)->num_pd)
105 #define SCS_11 0x11 /* CP -> PD -- CMD_CHLNG */
106 #define SCS_12 0x12 /* PD -> CP -- REPLY_CCRYPT */
107 #define SCS_13 0x13 /* CP -> PD -- CMD_SCRYPT */
108 #define SCS_14 0x14 /* PD -> CP -- REPLY_RMAC_I */
110 #define SCS_15 0x15 /* CP -> PD -- packets w MAC w/o ENC */
111 #define SCS_16 0x16 /* PD -> CP -- packets w MAC w/o ENC */
112 #define SCS_17 0x17 /* CP -> PD -- packets w MAC w ENC*/
113 #define SCS_18 0x18 /* PD -> CP -- packets w MAC w ENC*/
128 #define PD_FLAG_INSTALL_MODE 0x40000000 /* PD is in install mode */
210 OSDP_ERR_PKT_FMT = -1,
214 OSDP_ERR_PKT_WAIT = -2,
219 OSDP_ERR_PKT_SKIP = -3,
224 OSDP_ERR_PKT_CHECK = -4,
226 * Discovered a busy packet. In CP mode, it should retry this command
229 OSDP_ERR_PKT_BUSY = -5,
232 * this packet; pd->reply_id is set REPLY_NAK and the reason code is
235 OSDP_ERR_PKT_NACK = -6,
249 * switch using a two-wire electrical connection between the PD and the
288 * emulating character-based display terminals.
299 * @brief All PDs must be able to support the checksum mode. This
300 * capability indicates if the PD is capable of supporting CRC mode.
317 * @brief This capability indicates the maximum size multi-part message
324 * transparent mode used for communicating directly with a smart card.
372 * @param version 3-bytes IEEE assigned OUI
373 * @param model 1-byte Manufacturer's model number
374 * @param vendor_code 1-Byte Manufacturer's version number
375 * @param serial_number 4-byte serial number for the PD
376 * @param firmware_version 3-byte version (major, minor, build)
400 * @retval -ve on errors
411 * @retval -ve on errors
476 struct osdp_queue cmd; /* Command queue (CP Mode only) */
477 struct osdp_queue event; /* Command queue (PD Mode only) */
564 return pd->osdp_ctx; in pd_to_osdp()
569 return ctx->pd + pd_idx; in osdp_to_pd()