Zephyr API 3.6.99
Loading...
Searching...
No Matches
osdp_event_cardread Struct Reference

OSDP event cardread. More...

#include <osdp.h>

Data Fields

int reader_no
 Reader number.
 
enum osdp_event_cardread_format_e format
 Format of the card being read.
 
int direction
 Direction of data in data array.
 
int length
 Length of card data in bytes or bits depending on format.
 
uint8_t data [64]
 Card data of length bytes or bits bits depending on format.
 

Detailed Description

OSDP event cardread.

Note
When format is set to OSDP_CARD_FMT_RAW_UNSPECIFIED or OSDP_CARD_FMT_RAW_WIEGAND, the length is expressed in bits. OTOH, when it is set to OSDP_CARD_FMT_ASCII, the length is in bytes. The number of bytes to read from the data field must be interpreted accordingly.

Field Documentation

◆ data

uint8_t osdp_event_cardread::data[64]

Card data of length bytes or bits bits depending on format.

◆ direction

int osdp_event_cardread::direction

Direction of data in data array.

  • 0 - Forward
  • 1 - Backward

◆ format

enum osdp_event_cardread_format_e osdp_event_cardread::format

Format of the card being read.

◆ length

int osdp_event_cardread::length

Length of card data in bytes or bits depending on format.

◆ reader_no

int osdp_event_cardread::reader_no

Reader number.

0 = First Reader, 1 = Second Reader, etc.


The documentation for this struct was generated from the following file: