BALTECH SDK wrapper functions reference
typedefs.h
Go to the documentation of this file.
1 
4 #ifndef __BRP_BALTECH_API_TYPEDEFS_H__
5 #define __BRP_BALTECH_API_TYPEDEFS_H__
6 
7 #include "brp_lib.h"
8 
9 #include <limits.h>
10 #if UINT_MAX < 0xFFFFFFFF
11 #error "baltech_api requires unsigned with a size of >=32bits"
12 #endif
13 
14 #define BRP_BALTECH_API_VERSION "D-40200"
15 
18 typedef struct {
22  bool TTF;
26  bool Hitag2B;
30  bool Hitag2M;
34  bool Hitag1S;
38  bool HidIoprox;
42  bool HidProx;
46  bool HidAwid;
50  bool HidIndala;
54  bool Quadrakey;
58  bool Keri;
62  bool HidProx32;
66  bool Pyramid;
70  bool EM4450;
74  bool EM4100;
78  bool EM4205;
83 typedef struct {
87  bool Idteck;
91  bool Cotag;
99  bool GProx;
103  bool SecuraKey;
111 typedef unsigned brp_DesfireKeyIdx;
115 typedef enum {
129 } brp_FileType;
130 static inline bool brp_FileType_is_valid(int val) {
131  switch (val) {
132  case 0: /* FileByDfName*/
133  case 1: /* FileByFileId*/
134  case 2: /* FileByApduCmd*/
135  return true;
136  default:
137  return false;
138  }
139 }
157 typedef struct {
172 typedef struct {
176  bool EnableCRC;
183 typedef struct {
187  bool CRC16bit;
192 typedef struct {
196  bool Secure;
200  bool KeyB;
205 typedef enum {
230 static inline bool brp_MifarePlusKeyMemoryType_is_valid(int val) {
231  switch (val) {
232  case 0: /* CryptoKey*/
233  case 1: /* SamKey*/
234  case 2: /* ReaderChipKey*/
235  case 3: /* VhlKey*/
236  return true;
237  default:
238  return false;
239  }
240 }
244 typedef enum {
255 static inline bool brp_TemplateBitorder_is_valid(int val) {
256  switch (val) {
257  case 0: /* Lsb*/
258  case 1: /* Msb*/
259  return true;
260  default:
261  return false;
262  }
263 }
267 typedef enum {
277 } brp_Alignment;
278 static inline bool brp_Alignment_is_valid(int val) {
279  switch (val) {
280  case 0: /* Left*/
281  case 1: /* Right*/
282  return true;
283  default:
284  return false;
285  }
286 }
292 typedef struct {
309  bool BcdToBin;
317  bool Unpack;
327  bool BinToBcd;
335  bool Pack;
343  bool Reverse;
348 typedef enum {
363 static inline bool brp_AutoRunCommand_RunMode_is_valid(int val) {
364  switch (val) {
365  case 0: /* Standard*/
366  case 1: /* Continuous*/
367  case 2: /* Repeat*/
368  return true;
369  default:
370  return false;
371  }
372 }
376 typedef struct {
384  unsigned DeviceCode;
388  unsigned CommandCode;
399 typedef enum {
488 static inline bool brp_ProtocolID_is_valid(int val) {
489  switch (val) {
490  case 0: /* All*/
491  case 3: /* BrpSerial*/
492  case 4: /* BrpRs485*/
493  case 5: /* BrpHid*/
494  case 9: /* DebugInterface*/
495  case 16: /* Snet*/
496  case 17: /* Bpa9*/
497  case 32: /* Wiegand*/
498  case 33: /* Omron*/
499  case 34: /* ClkData*/
500  case 35: /* RawSerial*/
501  case 36: /* LowLevelIoPorts*/
502  case 40: /* HttpsClient*/
503  case 43: /* KeyboardEmulation*/
504  case 50: /* LBus*/
505  case 54: /* Ccid*/
506  case 55: /* RawSerial2*/
507  case 56: /* Osdp*/
508  case 59: /* BleHci*/
509  case 134: /* BrpTcp*/
510  return true;
511  default:
512  return false;
513  }
514 }
518 typedef enum {
553 static inline bool brp_MessageType_is_valid(int val) {
554  switch (val) {
555  case 0: /* Card*/
556  case 1: /* AlarmOn*/
557  case 2: /* AlarmOff*/
558  case 3: /* Keyboard*/
559  case 4: /* CardRemoval*/
560  case 5: /* FunctionKey*/
561  case 6: /* Logs*/
562  return true;
563  default:
564  return false;
565  }
566 }
570 typedef enum {
637 static inline bool brp_MaxBaudrateIso14443_is_valid(int val) {
638  switch (val) {
639  case 0: /* Dri106Dsi106*/
640  case 1: /* Dri212Dsi106*/
641  case 2: /* Dri424Dsi106*/
642  case 3: /* Dri848Dsi106*/
643  case 4: /* Dri106Dsi212*/
644  case 5: /* Dri212Dsi212*/
645  case 6: /* Dri424Dsi212*/
646  case 7: /* Dri848Dsi212*/
647  case 8: /* Dri106Dsi424*/
648  case 9: /* Dri212Dsi424*/
649  case 10: /* Dri424Dsi424*/
650  case 11: /* Dri848Dsi424*/
651  case 12: /* Dri106Dsi848*/
652  case 13: /* Dri212Dsi848*/
653  case 14: /* Dri424Dsi848*/
654  case 15: /* Dri848Dsi848*/
655  return true;
656  default:
657  return false;
658  }
659 }
665 typedef struct {
669  bool IsVersion;
673  bool IsDivInfo;
685  bool DenyWrite;
689  bool DenyRead;
694 typedef enum {
705 static inline bool brp_KeyAccessRights_DiversificationMode_is_valid(int val) {
706  switch (val) {
707  case 0: /* NoDiversification*/
708  case 2: /* ModeAv2*/
709  return true;
710  default:
711  return false;
712  }
713 }
717 typedef struct {
727  unsigned Version;
737  unsigned DivIdx;
742 typedef struct {
746  unsigned Page;
750  unsigned Idx;
755 typedef enum {
778 static inline bool brp_CryptoAlgorithm_is_valid(int val) {
779  switch (val) {
780  case 1: /* DES*/
781  case 2: /* TripleDES*/
782  case 3: /* ThreeKeyTripleDES*/
783  case 4: /* AES*/
784  case 5: /* MifareClassic*/
785  return true;
786  default:
787  return false;
788  }
789 }
790 #ifdef BALTECH_SDK_INTERNAL
791 
794 typedef enum {
798  brp_DHWCtrlGpioPort_A = 0,
802  brp_DHWCtrlGpioPort_B = 1,
806  brp_DHWCtrlGpioPort_C = 2,
810  brp_DHWCtrlGpioPort_D = 3,
814  brp_DHWCtrlGpioPort_E = 4,
818  brp_DHWCtrlGpioPort_F = 5,
822  brp_DHWCtrlGpioPort_G = 6,
826  brp_DHWCtrlGpioPort_H = 7,
830  brp_DHWCtrlGpioPort_I = 8,
834  brp_DHWCtrlGpioPort_J = 9,
838  brp_DHWCtrlGpioPort_K = 10,
842  brp_DHWCtrlGpioPort_L = 11,
846  brp_DHWCtrlGpioPort_M = 12,
850  brp_DHWCtrlGpioPort_N = 13,
854  brp_DHWCtrlGpioPort_O = 14,
858  brp_DHWCtrlGpioPort_P = 15,
862  brp_DHWCtrlGpioPort_Q = 16,
866  brp_DHWCtrlGpioPort_R = 17,
870  brp_DHWCtrlGpioPort_S = 18,
874  brp_DHWCtrlGpioPort_T = 19,
878  brp_DHWCtrlGpioPort_U = 20,
882  brp_DHWCtrlGpioPort_V = 21,
886  brp_DHWCtrlGpioPort_W = 22,
890  brp_DHWCtrlGpioPort_X = 23,
894  brp_DHWCtrlGpioPort_Y = 24,
898  brp_DHWCtrlGpioPort_Z = 25,
899  brp_DHWCtrlGpioPort_undefined = -1
900 } brp_DHWCtrlGpioPort;
901 static inline bool brp_DHWCtrlGpioPort_is_valid(int val) {
902  switch (val) {
903  case 0: /* A*/
904  case 1: /* B*/
905  case 2: /* C*/
906  case 3: /* D*/
907  case 4: /* E*/
908  case 5: /* F*/
909  case 6: /* G*/
910  case 7: /* H*/
911  case 8: /* I*/
912  case 9: /* J*/
913  case 10: /* K*/
914  case 11: /* L*/
915  case 12: /* M*/
916  case 13: /* N*/
917  case 14: /* O*/
918  case 15: /* P*/
919  case 16: /* Q*/
920  case 17: /* R*/
921  case 18: /* S*/
922  case 19: /* T*/
923  case 20: /* U*/
924  case 21: /* V*/
925  case 22: /* W*/
926  case 23: /* X*/
927  case 24: /* Y*/
928  case 25: /* Z*/
929  return true;
930  default:
931  return false;
932  }
933 }
937 typedef struct {
943  brp_DHWCtrlGpioPort Port;
947  unsigned Number;
948 } brp_DHWCtrlGpioPin;
952 typedef enum {
956  brp_DHWCtrlPinName_SpiSck = 0,
960  brp_DHWCtrlPinName_SpiMosi = 1,
964  brp_DHWCtrlPinName_SpiMiso = 2,
968  brp_DHWCtrlPinName_EthTxd0 = 16,
972  brp_DHWCtrlPinName_EthTxd1 = 17,
976  brp_DHWCtrlPinName_EthTxEn = 18,
980  brp_DHWCtrlPinName_EthRxd0 = 19,
984  brp_DHWCtrlPinName_EthRxd1 = 20,
988  brp_DHWCtrlPinName_EthCrsDv = 21,
992  brp_DHWCtrlPinName_EthRefClk = 22,
996  brp_DHWCtrlPinName_EthMdc = 23,
1000  brp_DHWCtrlPinName_EthMdio = 24,
1004  brp_DHWCtrlPinName_SdmmcClk = 48,
1008  brp_DHWCtrlPinName_SdmmcCmd = 49,
1012  brp_DHWCtrlPinName_SdmmcDat0 = 50,
1016  brp_DHWCtrlPinName_SdmmcDat1 = 51,
1020  brp_DHWCtrlPinName_SdmmcDat2 = 52,
1024  brp_DHWCtrlPinName_SdmmcDat3 = 53,
1028  brp_DHWCtrlPinName_SdmmcDat4 = 54,
1032  brp_DHWCtrlPinName_SdmmcDat5 = 55,
1036  brp_DHWCtrlPinName_SdmmcDat6 = 56,
1040  brp_DHWCtrlPinName_SdmmcDat7 = 57,
1044  brp_DHWCtrlPinName_UsbDp = 64,
1048  brp_DHWCtrlPinName_UsbDm = 65,
1049  brp_DHWCtrlPinName_undefined = -1
1050 } brp_DHWCtrlPinName;
1051 static inline bool brp_DHWCtrlPinName_is_valid(int val) {
1052  switch (val) {
1053  case 0: /* SpiSck*/
1054  case 1: /* SpiMosi*/
1055  case 2: /* SpiMiso*/
1056  case 16: /* EthTxd0*/
1057  case 17: /* EthTxd1*/
1058  case 18: /* EthTxEn*/
1059  case 19: /* EthRxd0*/
1060  case 20: /* EthRxd1*/
1061  case 21: /* EthCrsDv*/
1062  case 22: /* EthRefClk*/
1063  case 23: /* EthMdc*/
1064  case 24: /* EthMdio*/
1065  case 48: /* SdmmcClk*/
1066  case 49: /* SdmmcCmd*/
1067  case 50: /* SdmmcDat0*/
1068  case 51: /* SdmmcDat1*/
1069  case 52: /* SdmmcDat2*/
1070  case 53: /* SdmmcDat3*/
1071  case 54: /* SdmmcDat4*/
1072  case 55: /* SdmmcDat5*/
1073  case 56: /* SdmmcDat6*/
1074  case 57: /* SdmmcDat7*/
1075  case 64: /* UsbDp*/
1076  case 65: /* UsbDm*/
1077  return true;
1078  default:
1079  return false;
1080  }
1081 }
1085 typedef struct {
1091  brp_DHWCtrlPinName Name;
1097  brp_DHWCtrlGpioPin Pin;
1098 } brp_DHWCtrlPinMapEntry;
1102 typedef enum {
1106  brp_DHWCtrlPeripheralCategory_Eth = 0,
1110  brp_DHWCtrlPeripheralCategory_UsbHost = 32,
1114  brp_DHWCtrlPeripheralCategory_Flash = 48,
1118  brp_DHWCtrlPeripheralCategory_Spi = 64,
1119  brp_DHWCtrlPeripheralCategory_undefined = -1
1120 } brp_DHWCtrlPeripheralCategory;
1121 static inline bool brp_DHWCtrlPeripheralCategory_is_valid(int val) {
1122  switch (val) {
1123  case 0: /* Eth*/
1124  case 32: /* UsbHost*/
1125  case 48: /* Flash*/
1126  case 64: /* Spi*/
1127  return true;
1128  default:
1129  return false;
1130  }
1131 }
1135 typedef enum {
1139  brp_DHWCtrlGpioLevel_Low = 0,
1143  brp_DHWCtrlGpioLevel_High = 1,
1144  brp_DHWCtrlGpioLevel_undefined = -1
1145 } brp_DHWCtrlGpioLevel;
1146 static inline bool brp_DHWCtrlGpioLevel_is_valid(int val) {
1147  switch (val) {
1148  case 0: /* Low*/
1149  case 1: /* High*/
1150  return true;
1151  default:
1152  return false;
1153  }
1154 }
1158 typedef enum {
1162  brp_DHWCtrlUsbPortState_Disconnected = 0,
1166  brp_DHWCtrlUsbPortState_Connected = 1,
1167  brp_DHWCtrlUsbPortState_undefined = -1
1168 } brp_DHWCtrlUsbPortState;
1169 static inline bool brp_DHWCtrlUsbPortState_is_valid(int val) {
1170  switch (val) {
1171  case 0: /* Disconnected*/
1172  case 1: /* Connected*/
1173  return true;
1174  default:
1175  return false;
1176  }
1177 }
1181 typedef enum {
1185  brp_DHWCtrlUsbTransferAttr_Bulk = 0,
1189  brp_DHWCtrlUsbTransferAttr_Interrupt = 1,
1193  brp_DHWCtrlUsbTransferAttr_Iso = 2,
1194  brp_DHWCtrlUsbTransferAttr_undefined = -1
1195 } brp_DHWCtrlUsbTransferAttr;
1196 static inline bool brp_DHWCtrlUsbTransferAttr_is_valid(int val) {
1197  switch (val) {
1198  case 0: /* Bulk*/
1199  case 1: /* Interrupt*/
1200  case 2: /* Iso*/
1201  return true;
1202  default:
1203  return false;
1204  }
1205 }
1209 typedef enum {
1213  brp_DHWCtrlEthLinkState_Down = 0,
1217  brp_DHWCtrlEthLinkState_Up = 1,
1218  brp_DHWCtrlEthLinkState_undefined = -1
1219 } brp_DHWCtrlEthLinkState;
1220 static inline bool brp_DHWCtrlEthLinkState_is_valid(int val) {
1221  switch (val) {
1222  case 0: /* Down*/
1223  case 1: /* Up*/
1224  return true;
1225  default:
1226  return false;
1227  }
1228 }
1232 typedef enum {
1236  brp_DHWCtrlEtherType_IPv4 = 2048,
1240  brp_DHWCtrlEtherType_ARP = 2054,
1244  brp_DHWCtrlEtherType_ReverseARP = 32821,
1248  brp_DHWCtrlEtherType_IPv6 = 34525,
1252  brp_DHWCtrlEtherType_VlanTagged = 33024,
1256  brp_DHWCtrlEtherType_ServiceVlanTagged = 34984,
1260  brp_DHWCtrlEtherType_LACP = 34825,
1264  brp_DHWCtrlEtherType_MplsUnicast = 34887,
1268  brp_DHWCtrlEtherType_MplsMulticast = 34888,
1272  brp_DHWCtrlEtherType_LLDP = 35020,
1276  brp_DHWCtrlEtherType_MACsec = 35045,
1280  brp_DHWCtrlEtherType_Loopback = 36864,
1281  brp_DHWCtrlEtherType_undefined = -1
1282 } brp_DHWCtrlEtherType;
1283 static inline bool brp_DHWCtrlEtherType_is_valid(int val) {
1284  switch (val) {
1285  case 2048: /* IPv4*/
1286  case 2054: /* ARP*/
1287  case 32821: /* ReverseARP*/
1288  case 33024: /* VlanTagged*/
1289  case 34525: /* IPv6*/
1290  case 34825: /* LACP*/
1291  case 34887: /* MplsUnicast*/
1292  case 34888: /* MplsMulticast*/
1293  case 34984: /* ServiceVlanTagged*/
1294  case 35020: /* LLDP*/
1295  case 35045: /* MACsec*/
1296  case 36864: /* Loopback*/
1297  return true;
1298  default:
1299  return false;
1300  }
1301 }
1305 typedef enum {
1309  brp_DHWCtrlSpiSettings_Cpol_IdleLow = 0,
1313  brp_DHWCtrlSpiSettings_Cpol_IdleHigh = 1,
1314  brp_DHWCtrlSpiSettings_Cpol_undefined = -1
1315 } brp_DHWCtrlSpiSettings_Cpol;
1316 static inline bool brp_DHWCtrlSpiSettings_Cpol_is_valid(int val) {
1317  switch (val) {
1318  case 0: /* IdleLow*/
1319  case 1: /* IdleHigh*/
1320  return true;
1321  default:
1322  return false;
1323  }
1324 }
1328 typedef enum {
1332  brp_DHWCtrlSpiSettings_Cpha_SampleOnFirstEdge = 0,
1336  brp_DHWCtrlSpiSettings_Cpha_SampleOnSecondEdge = 1,
1337  brp_DHWCtrlSpiSettings_Cpha_undefined = -1
1338 } brp_DHWCtrlSpiSettings_Cpha;
1339 static inline bool brp_DHWCtrlSpiSettings_Cpha_is_valid(int val) {
1340  switch (val) {
1341  case 0: /* SampleOnFirstEdge*/
1342  case 1: /* SampleOnSecondEdge*/
1343  return true;
1344  default:
1345  return false;
1346  }
1347 }
1351 typedef enum {
1355  brp_DHWCtrlSpiSettings_BitOrder_MsbFirst = 0,
1359  brp_DHWCtrlSpiSettings_BitOrder_LsbFirst = 1,
1360  brp_DHWCtrlSpiSettings_BitOrder_undefined = -1
1361 } brp_DHWCtrlSpiSettings_BitOrder;
1362 static inline bool brp_DHWCtrlSpiSettings_BitOrder_is_valid(int val) {
1363  switch (val) {
1364  case 0: /* MsbFirst*/
1365  case 1: /* LsbFirst*/
1366  return true;
1367  default:
1368  return false;
1369  }
1370 }
1374 typedef struct {
1378  unsigned ClockHz;
1382  brp_DHWCtrlSpiSettings_Cpol Cpol;
1386  brp_DHWCtrlSpiSettings_Cpha Cpha;
1390  brp_DHWCtrlSpiSettings_BitOrder BitOrder;
1391 } brp_DHWCtrlSpiSettings;
1392 #endif // BALTECH_SDK_INTERNAL
1393 
1398 typedef enum {
1417 static inline bool brp_DivisorInteger_is_valid(int val) {
1418  switch (val) {
1419  case 0: /* Kbps106*/
1420  case 1: /* Kbps212*/
1421  case 2: /* Kbps424*/
1422  case 3: /* Kbps848*/
1423  return true;
1424  default:
1425  return false;
1426  }
1427 }
1428 #ifdef BALTECH_SDK_INTERNAL
1429 
1432 typedef unsigned brp_Time;
1436 typedef struct {
1440  bool Gpio7;
1444  bool Gpio6;
1448  bool Gpio5;
1452  bool Gpio4;
1456  bool Gpio3;
1460  bool Gpio2;
1464  bool Gpio1;
1468  bool Gpio0;
1472  bool TamperAlarm;
1476  bool BlueLed;
1480  bool Input1;
1484  bool Input0;
1488  bool Relay;
1492  bool Beeper;
1496  bool RedLed;
1500  bool GreenLed;
1501 } brp_IoPortBitmask;
1502 #endif // BALTECH_SDK_INTERNAL
1503 
1506 typedef enum {
1818 } brp_FeatureID;
1819 static inline bool brp_FeatureID_is_valid(int val) {
1820  switch (val) {
1821  case 1: /* GreenLed*/
1822  case 2: /* RedLed*/
1823  case 3: /* Beeper*/
1824  case 4: /* Relay*/
1825  case 5: /* MHz13*/
1826  case 6: /* Khz125*/
1827  case 7: /* Iso14443A*/
1828  case 8: /* Iso14443AUidOnly*/
1829  case 9: /* Iso14443B*/
1830  case 10: /* Iso14443BUidOnly*/
1831  case 11: /* Iso15693*/
1832  case 12: /* Iso15693UidOnly*/
1833  case 13: /* Felica*/
1834  case 14: /* FelicaUidOnly*/
1835  case 15: /* Legic*/
1836  case 16: /* Sam*/
1837  case 17: /* SamAv2*/
1838  case 18: /* SamHid*/
1839  case 19: /* Picopass*/
1840  case 35: /* MifareClassic*/
1841  case 36: /* MifarePlusEv0*/
1842  case 37: /* MifareDESFireEv1*/
1843  case 38: /* Srix*/
1844  case 39: /* Jewel*/
1845  case 40: /* ISO14443L4*/
1846  case 41: /* InterIndustry*/
1847  case 42: /* EM4205*/
1848  case 43: /* EM4100*/
1849  case 44: /* EM4450*/
1850  case 45: /* FarpointePyramid*/
1851  case 46: /* HidProx32*/
1852  case 47: /* HidAwid*/
1853  case 48: /* HidProx*/
1854  case 49: /* HidIoProx*/
1855  case 50: /* Indala*/
1856  case 51: /* Keri*/
1857  case 52: /* IndalaSecure*/
1858  case 53: /* Quadrakey*/
1859  case 54: /* SecuraKey*/
1860  case 55: /* GProx*/
1861  case 56: /* Hitag1S*/
1862  case 57: /* Hitag2M*/
1863  case 58: /* Hitag2B*/
1864  case 59: /* BlueLed*/
1865  case 60: /* Cotag*/
1866  case 61: /* PicopassUidOnly*/
1867  case 62: /* IdTeck*/
1868  case 63: /* Tamper*/
1869  case 64: /* MaxHfBaudrate106kbps*/
1870  case 65: /* MaxHfBaudrate212kbps*/
1871  case 66: /* MaxHfBaudrate424kbps*/
1872  case 67: /* FirmwareLoader*/
1873  case 68: /* FwUploadViaBrpOverSer*/
1874  case 69: /* AesHostProtocolEncryption*/
1875  case 70: /* PkiHostProtocolEncryption*/
1876  case 71: /* HidIClass*/
1877  case 72: /* HidIClassSr*/
1878  case 73: /* HidIClassSeAndSeos*/
1879  case 74: /* MifareUltralight*/
1880  case 75: /* CardEmulationISO14443L4*/
1881  case 76: /* MifareDESFireEv2*/
1882  case 77: /* MifarePlusEv1*/
1883  case 78: /* SamAv3*/
1884  case 79: /* OsdpV217*/
1885  case 80: /* Bluetooth*/
1886  case 81: /* RgbLed*/
1887  case 82: /* RgbLedLimited*/
1888  case 83: /* Bec2Upload*/
1889  case 84: /* MifareDESFireEv3*/
1890  case 85: /* MobileId*/
1891  case 86: /* MobileCardEmulation*/
1892  case 87: /* BleHci*/
1893  case 88: /* BlePeripheral*/
1894  return true;
1895  default:
1896  return false;
1897  }
1898 }
1902 typedef struct {
1908  bool LeftLed;
1914  bool RightLed;
1921 } brp_LedBitMask;
1925 typedef enum {
1939 } brp_Parity;
1940 static inline bool brp_Parity_is_valid(int val) {
1941  switch (val) {
1942  case 69: /* Even*/
1943  case 78: /* None_*/
1944  case 79: /* Odd*/
1945  return true;
1946  default:
1947  return false;
1948  }
1949 }
1955 typedef enum {
2017 } brp_Baudrate;
2018 static inline bool brp_Baudrate_is_valid(int val) {
2019  switch (val) {
2020  case 3: /* Baud300*/
2021  case 6: /* Baud600*/
2022  case 12: /* Baud1200*/
2023  case 24: /* Baud2400*/
2024  case 48: /* Baud4800*/
2025  case 96: /* Baud9600*/
2026  case 144: /* Baud14400*/
2027  case 192: /* Baud19200*/
2028  case 288: /* Baud28800*/
2029  case 384: /* Baud38400*/
2030  case 576: /* Baud57600*/
2031  case 1152: /* Baud115200*/
2032  case 5000: /* Baud500000*/
2033  case 5760: /* Baud576000*/
2034  case 9216: /* Baud921600*/
2035  return true;
2036  default:
2037  return false;
2038  }
2039 }
2043 typedef enum {
2173 } brp_IoPort;
2174 static inline bool brp_IoPort_is_valid(int val) {
2175  switch (val) {
2176  case 0: /* GreenLed*/
2177  case 1: /* RedLed*/
2178  case 2: /* Beeper*/
2179  case 3: /* Relay*/
2180  case 4: /* Input0*/
2181  case 5: /* Input1*/
2182  case 6: /* BlueLed*/
2183  case 7: /* TamperAlarm*/
2184  case 8: /* Gpio0*/
2185  case 9: /* Gpio1*/
2186  case 10: /* Gpio2*/
2187  case 11: /* Gpio3*/
2188  case 12: /* Gpio4*/
2189  case 13: /* Gpio5*/
2190  case 14: /* Gpio6*/
2191  case 15: /* Gpio7*/
2192  case 64: /* CustomVled0*/
2193  case 65: /* CustomVled1*/
2194  case 66: /* CustomVled2*/
2195  case 67: /* CustomVled3*/
2196  case 68: /* CustomVled4*/
2197  case 69: /* CustomVled5*/
2198  case 70: /* CustomVled6*/
2199  case 71: /* CustomVled7*/
2200  case 72: /* CustomVled8*/
2201  case 73: /* CustomVled9*/
2202  case 74: /* CustomVled10*/
2203  case 75: /* CustomVled11*/
2204  case 76: /* CustomVled12*/
2205  case 77: /* CustomVled13*/
2206  case 78: /* CustomVled14*/
2207  case 79: /* CustomVled15*/
2208  return true;
2209  default:
2210  return false;
2211  }
2212 }
2216 typedef enum {
2625 static inline bool brp_RunSequenceCmd_CmdCode_is_valid(int val) {
2626  switch (val) {
2627  case 1: /* EnablePort*/
2628  case 2: /* DisablePort*/
2629  case 5: /* RepeatLoop*/
2630  case 8: /* WaitMs*/
2631  case 9: /* WaitSec*/
2632  case 16: /* EnablePortGreenLed*/
2633  case 17: /* EnablePortRedLed*/
2634  case 18: /* EnablePortBeeper*/
2635  case 19: /* EnablePortRelay*/
2636  case 22: /* EnablePortBlue*/
2637  case 32: /* DisablePortGreenLed*/
2638  case 33: /* DisablePortRedLed*/
2639  case 34: /* DisablePortBeeper*/
2640  case 35: /* DisablePortRelay*/
2641  case 38: /* DisablePortBlue*/
2642  case 48: /* InvertPortGreenLed*/
2643  case 49: /* InvertPortRedLed*/
2644  case 50: /* InvertPortBeeper*/
2645  case 51: /* InvertPortRelay*/
2646  case 54: /* InvertPortBlue*/
2647  case 81: /* Repeat1Times*/
2648  case 82: /* RepeatLoop2Times*/
2649  case 83: /* RepeatLoop3Times*/
2650  case 84: /* RepeatLoop4Times*/
2651  case 85: /* RepeatLoop5Times*/
2652  case 86: /* RepeatLoop6Times*/
2653  case 87: /* RepeatLoop7Times*/
2654  case 88: /* RepeatLoop8Times*/
2655  case 89: /* RepeatLoop9Times*/
2656  case 90: /* RepeatLoop10Times*/
2657  case 91: /* RepeatLoop11Times*/
2658  case 92: /* RepeatLoop12Times*/
2659  case 93: /* RepeatLoop13Times*/
2660  case 94: /* RepeatLoop14Times*/
2661  case 95: /* RepeatLoop15Times*/
2662  case 129: /* Wait100Ms*/
2663  case 130: /* Wait200Ms*/
2664  case 131: /* Wait300Ms*/
2665  case 132: /* Wait400Ms*/
2666  case 133: /* Wait500Ms*/
2667  case 134: /* Wait600Ms*/
2668  case 135: /* Wait700Ms*/
2669  case 136: /* Wait800Ms*/
2670  case 137: /* Wait900Ms*/
2671  case 138: /* Wait1000Ms*/
2672  case 139: /* Wait1100Ms*/
2673  case 140: /* Wait1200Ms*/
2674  case 141: /* Wait1300Ms*/
2675  case 142: /* Wait1400Ms*/
2676  case 143: /* Wait1500Ms*/
2677  case 144: /* Wait1600Ms*/
2678  case 145: /* Wait1700Ms*/
2679  case 146: /* Wait1800Ms*/
2680  case 147: /* Wait1900Ms*/
2681  case 148: /* Wait2000Ms*/
2682  case 149: /* Wait2100Ms*/
2683  case 150: /* Wait2200Ms*/
2684  case 151: /* Wait2300Ms*/
2685  case 152: /* Wait2400Ms*/
2686  case 153: /* Wait2500Ms*/
2687  case 154: /* Wait2600Ms*/
2688  case 155: /* Wait2700Ms*/
2689  case 156: /* Wait2800Ms*/
2690  case 157: /* Wait2900Ms*/
2691  case 158: /* Wait3000Ms*/
2692  case 159: /* Wait3100Ms*/
2693  case 160: /* Wait3200Ms*/
2694  case 161: /* Wait3300Ms*/
2695  case 162: /* Wait3400Ms*/
2696  case 163: /* Wait3500Ms*/
2697  case 164: /* Wait3600Ms*/
2698  case 165: /* Wait3700Ms*/
2699  case 166: /* Wait3800Ms*/
2700  case 167: /* Wait3900Ms*/
2701  case 168: /* Wait4000Ms*/
2702  case 169: /* Wait4100Ms*/
2703  case 170: /* Wait4200Ms*/
2704  case 171: /* Wait4300Ms*/
2705  case 172: /* Wait4400Ms*/
2706  case 173: /* Wait4500Ms*/
2707  case 174: /* Wait4600Ms*/
2708  case 175: /* Wait4700Ms*/
2709  case 176: /* Wait4800Ms*/
2710  case 177: /* Wait4900Ms*/
2711  case 178: /* Wait5000Ms*/
2712  case 179: /* Wait5100Ms*/
2713  case 180: /* Wait5200Ms*/
2714  case 181: /* Wait5300Ms*/
2715  case 182: /* Wait5400Ms*/
2716  case 183: /* Wait5500Ms*/
2717  case 184: /* Wait5600Ms*/
2718  case 185: /* Wait5700Ms*/
2719  case 186: /* Wait5800Ms*/
2720  case 187: /* Wait5900Ms*/
2721  case 188: /* Wait6000Ms*/
2722  case 189: /* Wait6100Ms*/
2723  case 190: /* Wait6200Ms*/
2724  case 191: /* Wait6300Ms*/
2725  case 241: /* EndOfSequence*/
2726  case 242: /* StartLoop*/
2727  case 243: /* OnStop*/
2728  return true;
2729  default:
2730  return false;
2731  }
2732 }
2736 typedef struct {
2744  unsigned RepeatCnt;
2748  unsigned Param;
2757 typedef enum {
2776 static inline bool brp_FireEventAtPowerup_is_valid(int val) {
2777  switch (val) {
2778  case 0: /* Never*/
2779  case 1: /* IfClear*/
2780  case 2: /* IfSet*/
2781  case 3: /* Always*/
2782  return true;
2783  default:
2784  return false;
2785  }
2786 }
2790 typedef enum {
2988 } brp_CardType;
2989 static inline bool brp_CardType_is_valid(int val) {
2990  switch (val) {
2991  case 0: /* Default*/
2992  case 16: /* MifareClassic*/
2993  case 17: /* Iso14443aGeneric*/
2994  case 18: /* Iso14443aInterIndustryLegacy*/
2995  case 19: /* MifareUltraLight*/
2996  case 20: /* MifareDesfire*/
2997  case 21: /* InfineonSle55*/
2998  case 22: /* Iso14443aIntIndustry*/
2999  case 23: /* MifarePlusL2*/
3000  case 24: /* LEGICAdvantIso14443a*/
3001  case 25: /* MifarePlusL3*/
3002  case 32: /* LEGICPrimeLegacy*/
3003  case 33: /* LEGICAdvantLegacy*/
3004  case 48: /* Iso15693*/
3005  case 50: /* LEGICAdvantIso15693*/
3006  case 64: /* Iso14443bUnknown*/
3007  case 65: /* Iso14443bIntIndustry*/
3008  case 66: /* IClassIso14B*/
3009  case 80: /* IClassIso14B2*/
3010  case 96: /* IClass*/
3011  case 112: /* Felica*/
3012  case 128: /* EM4205*/
3013  case 129: /* EM4100*/
3014  case 131: /* EM4450*/
3015  case 132: /* Pyramid*/
3016  case 133: /* HidProx32*/
3017  case 134: /* Keri*/
3018  case 135: /* Quadrakey*/
3019  case 136: /* HidIndala*/
3020  case 137: /* HidAwid*/
3021  case 138: /* HidProx*/
3022  case 139: /* HidIoprox*/
3023  case 140: /* Hitag1S*/
3024  case 141: /* Hitag2M*/
3025  case 142: /* Hitag2B*/
3026  case 143: /* TTF*/
3027  case 144: /* STSRIX*/
3028  case 160: /* SecuraKey*/
3029  case 161: /* GProx*/
3030  case 162: /* HidIndalaSecure*/
3031  case 163: /* Cotag*/
3032  case 164: /* Idteck*/
3033  case 176: /* BluetoothMce*/
3034  case 192: /* LEGICPrime*/
3035  case 224: /* HidSio*/
3036  case 228: /* Fido*/
3037  case 229: /* Piv*/
3038  case 230: /* DesfireForLegic*/
3039  case 231: /* LEGICNeon*/
3040  return true;
3041  default:
3042  return false;
3043  }
3044 }
3048 typedef struct {
3064  bool Srix;
3072  bool Felica;
3078  bool IClass;
3092  bool Iso15693;
3101 typedef enum {
3116 static inline bool brp_DesfireFileDescription_FileCommunicationSecurity_is_valid(int val) {
3117  switch (val) {
3118  case 0: /* Plain*/
3119  case 1: /* Mac*/
3120  case 3: /* Encrypted*/
3121  return true;
3122  default:
3123  return false;
3124  }
3125 }
3131 typedef enum {
3146 static inline bool brp_DesfireFileDescription_FileType_is_valid(int val) {
3147  switch (val) {
3148  case 0: /* Standard*/
3149  case 1: /* Backup*/
3150  case 2: /* BackupManualCommit*/
3151  return true;
3152  default:
3153  return false;
3154  }
3155 }
3159 typedef struct {
3163  unsigned FileNo;
3179  unsigned ReadKeyNo;
3185  unsigned WriteKeyNo;
3189  unsigned Offset;
3193  unsigned Length;
3201  unsigned ReadKeyIdx;
3210  unsigned WriteKeyIdx;
3226  unsigned ChangeKeyIdx;
3232  unsigned FileSize;
3238  unsigned IsoFid;
3243 typedef enum {
3270 static inline bool brp_AuthReqUpload_is_valid(int val) {
3271  switch (val) {
3272  case 0: /* Default*/
3273  case 1: /* None_*/
3274  case 2: /* CustomerKey*/
3275  case 3: /* ConfigSecurityCode*/
3276  case 4: /* Version*/
3277  case 5: /* GreaterVersion*/
3278  return true;
3279  default:
3280  return false;
3281  }
3282 }
3286 typedef enum {
3312 static inline bool brp_AutoReadMode_is_valid(int val) {
3313  switch (val) {
3314  case 0: /* Disabled*/
3315  case 1: /* Enabled*/
3316  case 2: /* EnableOnce*/
3317  case 255: /* EnableIfDefinedRules*/
3318  return true;
3319  default:
3320  return false;
3321  }
3322 }
3326 typedef struct {
3358  bool RtcWrite;
3370  bool VhlWrite;
3374  bool VhlRead;
3414  bool SysReset;
3430  bool SetKey3;
3434  bool SetKey2;
3438  bool SetKey1;
3447 typedef struct {
3468 typedef struct {
3472  unsigned FirmwareID;
3501 typedef struct {
3509  bool IsPulse;
3519 typedef enum {
3534 static inline bool brp_VirtualLedDefinition_PhysicalLedSelection_is_valid(int val) {
3535  switch (val) {
3536  case 1: /* Right*/
3537  case 2: /* Left*/
3538  case 3: /* All*/
3539  return true;
3540  default:
3541  return false;
3542  }
3543 }
3547 typedef struct {
3555  unsigned RgbColor;
3563  unsigned RgbColor2;
3567  unsigned TransitionTime;
3572 typedef struct {
3580  bool Ble;
3603  bool Hid;
3608 typedef struct {
3646  unsigned Size;
3651 typedef enum {
3670 static inline bool brp_BlePeriph_IsConnected_AddressType_is_valid(int val) {
3671  switch (val) {
3672  case 0: /* Public*/
3673  case 1: /* RandomStatic*/
3674  case 2: /* RandomResolvable*/
3675  case 3: /* RandomNonResolvable*/
3676  return true;
3677  default:
3678  return false;
3679  }
3680 }
3684 typedef enum {
3699 static inline bool brp_Desfire_ExecCommand_CryptoMode_is_valid(int val) {
3700  switch (val) {
3701  case 0: /* Plain*/
3702  case 1: /* MAC*/
3703  case 3: /* Encrypted*/
3704  return true;
3705  default:
3706  return false;
3707  }
3708 }
3712 typedef enum {
3727 static inline bool brp_Desfire_Authenticate_SecureMessaging_is_valid(int val) {
3728  switch (val) {
3729  case 0: /* EV1*/
3730  case 1: /* Native*/
3731  case 2: /* EV2*/
3732  return true;
3733  default:
3734  return false;
3735  }
3736 }
3740 typedef enum {
3759 static inline bool brp_Desfire_Authenticate_KeyDivMode_is_valid(int val) {
3760  switch (val) {
3761  case 0: /* NoDiv*/
3762  case 1: /* SamAV1OneRound*/
3763  case 2: /* SamAV1TwoRounds*/
3764  case 3: /* SamAV2*/
3765  return true;
3766  default:
3767  return false;
3768  }
3769 }
3773 typedef enum {
3788 static inline bool brp_Desfire_AuthExtKey_SecureMessaging_is_valid(int val) {
3789  switch (val) {
3790  case 0: /* EV1*/
3791  case 1: /* Native*/
3792  case 2: /* EV2*/
3793  return true;
3794  default:
3795  return false;
3796  }
3797 }
3801 typedef enum {
3820 static inline bool brp_Desfire_AuthExtKey_CryptoMode_is_valid(int val) {
3821  switch (val) {
3822  case 1: /* DES*/
3823  case 2: /* TripleDES*/
3824  case 3: /* ThreeKeyTripleDES*/
3825  case 4: /* AES*/
3826  return true;
3827  default:
3828  return false;
3829  }
3830 }
3834 typedef enum {
3849 static inline bool brp_Desfire_ReadData_Mode_is_valid(int val) {
3850  switch (val) {
3851  case 0: /* Plain*/
3852  case 1: /* MAC*/
3853  case 3: /* Encrypted*/
3854  return true;
3855  default:
3856  return false;
3857  }
3858 }
3862 typedef enum {
3877 static inline bool brp_Desfire_WriteData_Mode_is_valid(int val) {
3878  switch (val) {
3879  case 0: /* Plain*/
3880  case 1: /* MAC*/
3881  case 3: /* Encrypted*/
3882  return true;
3883  default:
3884  return false;
3885  }
3886 }
3890 typedef enum {
3905 static inline bool brp_Desfire_ChangeExtKey_MasterKeyType_is_valid(int val) {
3906  switch (val) {
3907  case 0: /* DESorTripleDES*/
3908  case 1: /* ThreeKeyTripleDES*/
3909  case 2: /* AES*/
3910  return true;
3911  default:
3912  return false;
3913  }
3914 }
3918 typedef enum {
3933 static inline bool brp_Desfire_ChangeKey_NewKeyDivMode_is_valid(int val) {
3934  switch (val) {
3935  case 0: /* SamAv1OneRound*/
3936  case 1: /* SamAv1TwoRounds*/
3937  case 2: /* SamAv2*/
3938  return true;
3939  default:
3940  return false;
3941  }
3942 }
3946 typedef enum {
3961 static inline bool brp_Desfire_ChangeKey_CurKeyDivMode_is_valid(int val) {
3962  switch (val) {
3963  case 0: /* SamAv1OneRound*/
3964  case 1: /* SamAv1TwoRounds*/
3965  case 2: /* SamAv2*/
3966  return true;
3967  default:
3968  return false;
3969  }
3970 }
3974 typedef enum {
3985 static inline bool brp_Desfire_SetFraming_CommMode_is_valid(int val) {
3986  switch (val) {
3987  case 1: /* DESFireNative*/
3988  case 2: /* ISO7816Compatible*/
3989  return true;
3990  default:
3991  return false;
3992  }
3993 }
3997 typedef struct {
4001  unsigned AppId;
4005  unsigned IsoFileId;
4015 #ifdef BALTECH_SDK_INTERNAL
4016 
4019 typedef enum {
4023  brp_DHWCtrl_EthGetCommMode_Speed_Unknown = 0,
4027  brp_DHWCtrl_EthGetCommMode_Speed_Mbit10 = 1,
4031  brp_DHWCtrl_EthGetCommMode_Speed_Mbit100 = 2,
4035  brp_DHWCtrl_EthGetCommMode_Speed_Mbit1000 = 3,
4036  brp_DHWCtrl_EthGetCommMode_Speed_undefined = -1
4037 } brp_DHWCtrl_EthGetCommMode_Speed;
4038 static inline bool brp_DHWCtrl_EthGetCommMode_Speed_is_valid(int val) {
4039  switch (val) {
4040  case 0: /* Unknown*/
4041  case 1: /* Mbit10*/
4042  case 2: /* Mbit100*/
4043  case 3: /* Mbit1000*/
4044  return true;
4045  default:
4046  return false;
4047  }
4048 }
4052 typedef enum {
4056  brp_DHWCtrl_EthGetCommMode_Duplex_Unknown = 0,
4060  brp_DHWCtrl_EthGetCommMode_Duplex_Half = 1,
4064  brp_DHWCtrl_EthGetCommMode_Duplex_Full = 2,
4065  brp_DHWCtrl_EthGetCommMode_Duplex_undefined = -1
4066 } brp_DHWCtrl_EthGetCommMode_Duplex;
4067 static inline bool brp_DHWCtrl_EthGetCommMode_Duplex_is_valid(int val) {
4068  switch (val) {
4069  case 0: /* Unknown*/
4070  case 1: /* Half*/
4071  case 2: /* Full*/
4072  return true;
4073  default:
4074  return false;
4075  }
4076 }
4080 typedef enum {
4084  brp_DHWCtrl_GpioConfigure_Mode_OutputLow = 0,
4088  brp_DHWCtrl_GpioConfigure_Mode_OutputHigh = 1,
4092  brp_DHWCtrl_GpioConfigure_Mode_InputFloating = 2,
4096  brp_DHWCtrl_GpioConfigure_Mode_InputPullUp = 3,
4100  brp_DHWCtrl_GpioConfigure_Mode_InputPullDown = 4,
4104  brp_DHWCtrl_GpioConfigure_Mode_OpenDrain = 5,
4108  brp_DHWCtrl_GpioConfigure_Mode_Disabled = 255,
4109  brp_DHWCtrl_GpioConfigure_Mode_undefined = -1
4110 } brp_DHWCtrl_GpioConfigure_Mode;
4111 static inline bool brp_DHWCtrl_GpioConfigure_Mode_is_valid(int val) {
4112  switch (val) {
4113  case 0: /* OutputLow*/
4114  case 1: /* OutputHigh*/
4115  case 2: /* InputFloating*/
4116  case 3: /* InputPullUp*/
4117  case 4: /* InputPullDown*/
4118  case 5: /* OpenDrain*/
4119  case 255: /* Disabled*/
4120  return true;
4121  default:
4122  return false;
4123  }
4124 }
4128 typedef enum {
4132  brp_DHWCtrl_UsbHostWaitPortStatus_Speed_NoDevice = 0,
4136  brp_DHWCtrl_UsbHostWaitPortStatus_Speed_Low = 1,
4140  brp_DHWCtrl_UsbHostWaitPortStatus_Speed_Full = 2,
4144  brp_DHWCtrl_UsbHostWaitPortStatus_Speed_High = 3,
4145  brp_DHWCtrl_UsbHostWaitPortStatus_Speed_undefined = -1
4146 } brp_DHWCtrl_UsbHostWaitPortStatus_Speed;
4147 static inline bool brp_DHWCtrl_UsbHostWaitPortStatus_Speed_is_valid(int val) {
4148  switch (val) {
4149  case 0: /* NoDevice*/
4150  case 1: /* Low*/
4151  case 2: /* Full*/
4152  case 3: /* High*/
4153  return true;
4154  default:
4155  return false;
4156  }
4157 }
4161 typedef enum {
4165  brp_DHWCtrl_SpiActivate_Cpol_IdleLow = 0,
4169  brp_DHWCtrl_SpiActivate_Cpol_IdleHigh = 1,
4170  brp_DHWCtrl_SpiActivate_Cpol_undefined = -1
4171 } brp_DHWCtrl_SpiActivate_Cpol;
4172 static inline bool brp_DHWCtrl_SpiActivate_Cpol_is_valid(int val) {
4173  switch (val) {
4174  case 0: /* IdleLow*/
4175  case 1: /* IdleHigh*/
4176  return true;
4177  default:
4178  return false;
4179  }
4180 }
4184 typedef enum {
4188  brp_DHWCtrl_SpiActivate_Cpha_SampleOnFirstEdge = 0,
4192  brp_DHWCtrl_SpiActivate_Cpha_SampleOnSecondEdge = 1,
4193  brp_DHWCtrl_SpiActivate_Cpha_undefined = -1
4194 } brp_DHWCtrl_SpiActivate_Cpha;
4195 static inline bool brp_DHWCtrl_SpiActivate_Cpha_is_valid(int val) {
4196  switch (val) {
4197  case 0: /* SampleOnFirstEdge*/
4198  case 1: /* SampleOnSecondEdge*/
4199  return true;
4200  default:
4201  return false;
4202  }
4203 }
4207 typedef enum {
4211  brp_EM_DecodeCfg_RxMod_Unknown = 0,
4215  brp_EM_DecodeCfg_RxMod_Manchester = 16,
4219  brp_EM_DecodeCfg_RxMod_Biphase = 32,
4223  brp_EM_DecodeCfg_RxMod_NRZ = 48,
4224  brp_EM_DecodeCfg_RxMod_undefined = -1
4225 } brp_EM_DecodeCfg_RxMod;
4226 static inline bool brp_EM_DecodeCfg_RxMod_is_valid(int val) {
4227  switch (val) {
4228  case 0: /* Unknown*/
4229  case 16: /* Manchester*/
4230  case 32: /* Biphase*/
4231  case 48: /* NRZ*/
4232  return true;
4233  default:
4234  return false;
4235  }
4236 }
4240 typedef enum {
4244  brp_Eth_GetTcpConnectionStatus_Status_NotConnected = 0,
4248  brp_Eth_GetTcpConnectionStatus_Status_ConnectionTrialRunning = 1,
4252  brp_Eth_GetTcpConnectionStatus_Status_Connected = 2,
4253  brp_Eth_GetTcpConnectionStatus_Status_undefined = -1
4254 } brp_Eth_GetTcpConnectionStatus_Status;
4255 static inline bool brp_Eth_GetTcpConnectionStatus_Status_is_valid(int val) {
4256  switch (val) {
4257  case 0: /* NotConnected*/
4258  case 1: /* ConnectionTrialRunning*/
4259  case 2: /* Connected*/
4260  return true;
4261  default:
4262  return false;
4263  }
4264 }
4268 typedef enum {
4272  brp_Eth_OpenTcpConnection_ConnectionReason_Powerup = 1,
4276  brp_Eth_OpenTcpConnection_ConnectionReason_LinkChange = 2,
4280  brp_Eth_OpenTcpConnection_ConnectionReason_SessionkeyTimeout = 4,
4284  brp_Eth_OpenTcpConnection_ConnectionReason_Message = 8,
4288  brp_Eth_OpenTcpConnection_ConnectionReason_UdpIntrospection = 16,
4292  brp_Eth_OpenTcpConnection_ConnectionReason_Reset = 32,
4296  brp_Eth_OpenTcpConnection_ConnectionReason_FailedConnectionTrials = 32768,
4297  brp_Eth_OpenTcpConnection_ConnectionReason_undefined = -1
4298 } brp_Eth_OpenTcpConnection_ConnectionReason;
4299 static inline bool brp_Eth_OpenTcpConnection_ConnectionReason_is_valid(int val) {
4300  switch (val) {
4301  case 1: /* Powerup*/
4302  case 2: /* LinkChange*/
4303  case 4: /* SessionkeyTimeout*/
4304  case 8: /* Message*/
4305  case 16: /* UdpIntrospection*/
4306  case 32: /* Reset*/
4307  case 32768: /* FailedConnectionTrials*/
4308  return true;
4309  default:
4310  return false;
4311  }
4312 }
4313 #endif // BALTECH_SDK_INTERNAL
4314 
4317 typedef enum {
4328 static inline bool brp_Felica_GenericCmd_FastBaud_is_valid(int val) {
4329  switch (val) {
4330  case 0: /* Kbps212*/
4331  case 1: /* Kbps424*/
4332  return true;
4333  default:
4334  return false;
4335  }
4336 }
4340 typedef enum {
4351 static inline bool brp_Felica_Request_FastBaud_is_valid(int val) {
4352  switch (val) {
4353  case 0: /* Kbps212*/
4354  case 1: /* Kbps424*/
4355  return true;
4356  default:
4357  return false;
4358  }
4359 }
4363 typedef struct {
4371  size_t NFCID_len;
4373 #ifdef BALTECH_SDK_INTERNAL
4374 
4377 typedef enum {
4381  brp_Hitag_Request_TagType_HitagS = 0,
4385  brp_Hitag_Request_TagType_Hitag1 = 1,
4389  brp_Hitag_Request_TagType_Hitag2Manchester = 2,
4393  brp_Hitag_Request_TagType_Hitag2Biphase = 3,
4394  brp_Hitag_Request_TagType_undefined = -1
4395 } brp_Hitag_Request_TagType;
4396 static inline bool brp_Hitag_Request_TagType_is_valid(int val) {
4397  switch (val) {
4398  case 0: /* HitagS*/
4399  case 1: /* Hitag1*/
4400  case 2: /* Hitag2Manchester*/
4401  case 3: /* Hitag2Biphase*/
4402  return true;
4403  default:
4404  return false;
4405  }
4406 }
4410 typedef enum {
4414  brp_Hitag_Request_Mode_StdHtg12S = 0,
4418  brp_Hitag_Request_Mode_AdvHtg1S = 1,
4422  brp_Hitag_Request_Mode_FAdvHS = 2,
4423  brp_Hitag_Request_Mode_undefined = -1
4424 } brp_Hitag_Request_Mode;
4425 static inline bool brp_Hitag_Request_Mode_is_valid(int val) {
4426  switch (val) {
4427  case 0: /* StdHtg12S*/
4428  case 1: /* AdvHtg1S*/
4429  case 2: /* FAdvHS*/
4430  return true;
4431  default:
4432  return false;
4433  }
4434 }
4438 typedef enum {
4442  brp_Hitag_Select_SelMode_Select = 0,
4446  brp_Hitag_Select_SelMode_Quiet = 1,
4450  brp_Hitag_Select_SelMode_AuthPwd = 2,
4454  brp_Hitag_Select_SelMode_H2AuthOnlyPwd = 3,
4455  brp_Hitag_Select_SelMode_undefined = -1
4456 } brp_Hitag_Select_SelMode;
4457 static inline bool brp_Hitag_Select_SelMode_is_valid(int val) {
4458  switch (val) {
4459  case 0: /* Select*/
4460  case 1: /* Quiet*/
4461  case 2: /* AuthPwd*/
4462  case 3: /* H2AuthOnlyPwd*/
4463  return true;
4464  default:
4465  return false;
4466  }
4467 }
4471 typedef enum {
4475  brp_Iso14a_RequestLegacy_UIDSize_SingleSize = 0,
4479  brp_Iso14a_RequestLegacy_UIDSize_DoubleSize = 1,
4483  brp_Iso14a_RequestLegacy_UIDSize_TripleSize = 2,
4484  brp_Iso14a_RequestLegacy_UIDSize_undefined = -1
4485 } brp_Iso14a_RequestLegacy_UIDSize;
4486 static inline bool brp_Iso14a_RequestLegacy_UIDSize_is_valid(int val) {
4487  switch (val) {
4488  case 0: /* SingleSize*/
4489  case 1: /* DoubleSize*/
4490  case 2: /* TripleSize*/
4491  return true;
4492  default:
4493  return false;
4494  }
4495 }
4496 #endif // BALTECH_SDK_INTERNAL
4497 
4502 typedef enum {
4541 static inline bool brp_Iso14a_RequestATS_FSDI_is_valid(int val) {
4542  switch (val) {
4543  case 0: /* Bytes16*/
4544  case 1: /* Bytes24*/
4545  case 2: /* Bytes32*/
4546  case 3: /* Bytes40*/
4547  case 4: /* Bytes48*/
4548  case 5: /* Bytes64*/
4549  case 6: /* Bytes96*/
4550  case 7: /* Bytes128*/
4551  case 8: /* Bytes256*/
4552  return true;
4553  default:
4554  return false;
4555  }
4556 }
4560 typedef enum {
4583 static inline bool brp_Iso14b_Request_TimeSlots_is_valid(int val) {
4584  switch (val) {
4585  case 0: /* TimeSlots1*/
4586  case 1: /* TimeSlots2*/
4587  case 2: /* TimeSlots4*/
4588  case 3: /* TimeSlots8*/
4589  case 4: /* TimeSlots16*/
4590  return true;
4591  default:
4592  return false;
4593  }
4594 }
4598 typedef enum {
4637 static inline bool brp_Iso14b_Request_FSCI_is_valid(int val) {
4638  switch (val) {
4639  case 0: /* Bytes16*/
4640  case 1: /* Bytes24*/
4641  case 2: /* Bytes32*/
4642  case 3: /* Bytes40*/
4643  case 4: /* Bytes48*/
4644  case 5: /* Bytes64*/
4645  case 6: /* Bytes96*/
4646  case 7: /* Bytes128*/
4647  case 8: /* Bytes256*/
4648  return true;
4649  default:
4650  return false;
4651  }
4652 }
4656 typedef enum {
4667 static inline bool brp_Iso14b_Request_ProtType_is_valid(int val) {
4668  switch (val) {
4669  case 0: /* NoISO14443L4Support*/
4670  case 1: /* ISO14443L4Support*/
4671  return true;
4672  default:
4673  return false;
4674  }
4675 }
4683 typedef enum {
4746 static inline bool brp_Iso14b_Request_FWI_is_valid(int val) {
4747  switch (val) {
4748  case 0: /* Us302*/
4749  case 1: /* Us604*/
4750  case 2: /* Us1208*/
4751  case 3: /* Us2416*/
4752  case 4: /* Us4832*/
4753  case 5: /* Us9664*/
4754  case 6: /* Ms19*/
4755  case 7: /* Ms39*/
4756  case 8: /* Ms77*/
4757  case 9: /* Ms155*/
4758  case 10: /* Ms309*/
4759  case 11: /* Ms618*/
4760  case 12: /* Ms1237*/
4761  case 13: /* Ms2474*/
4762  case 14: /* Ms4948*/
4763  return true;
4764  default:
4765  return false;
4766  }
4767 }
4775 typedef enum {
4838 static inline bool brp_Iso14b_Request_SFGI_is_valid(int val) {
4839  switch (val) {
4840  case 0: /* Us302*/
4841  case 1: /* Us604*/
4842  case 2: /* Us1208*/
4843  case 3: /* Us2416*/
4844  case 4: /* Us4832*/
4845  case 5: /* Us9664*/
4846  case 6: /* Ms19*/
4847  case 7: /* Ms39*/
4848  case 8: /* Ms77*/
4849  case 9: /* Ms155*/
4850  case 10: /* Ms309*/
4851  case 11: /* Ms618*/
4852  case 12: /* Ms1237*/
4853  case 13: /* Ms2474*/
4854  case 14: /* Ms4948*/
4855  return true;
4856  default:
4857  return false;
4858  }
4859 }
4863 typedef struct {
4877  bool Synced;
4881  bool Send848;
4885  bool Send424;
4889  bool Send212;
4893  bool Recv848;
4897  bool Recv424;
4901  bool Recv212;
4924  unsigned ADC;
4928  bool NAD;
4932  bool CID;
4945 typedef enum {
4960 static inline bool brp_Iso14b_Attrib_TR0_is_valid(int val) {
4961  switch (val) {
4962  case 0: /* Numerator64*/
4963  case 1: /* Numerator48*/
4964  case 2: /* Numerator16*/
4965  return true;
4966  default:
4967  return false;
4968  }
4969 }
4973 typedef enum {
4988 static inline bool brp_Iso14b_Attrib_TR1_is_valid(int val) {
4989  switch (val) {
4990  case 0: /* Numerator80*/
4991  case 1: /* Numerator64*/
4992  case 2: /* Numerator16*/
4993  return true;
4994  default:
4995  return false;
4996  }
4997 }
5001 typedef enum {
5012 static inline bool brp_Iso14b_Attrib_EOF__is_valid(int val) {
5013  switch (val) {
5014  case 0: /* EOFrequired*/
5015  case 1: /* EOFoptional*/
5016  return true;
5017  default:
5018  return false;
5019  }
5020 }
5024 typedef enum {
5035 static inline bool brp_Iso14b_Attrib_SOF_is_valid(int val) {
5036  switch (val) {
5037  case 0: /* SOFrequired*/
5038  case 1: /* SOFoptional*/
5039  return true;
5040  default:
5041  return false;
5042  }
5043 }
5049 typedef enum {
5088 static inline bool brp_Iso14b_Attrib_FSDI_is_valid(int val) {
5089  switch (val) {
5090  case 0: /* Bytes16*/
5091  case 1: /* Bytes24*/
5092  case 2: /* Bytes32*/
5093  case 3: /* Bytes40*/
5094  case 4: /* Bytes48*/
5095  case 5: /* Bytes64*/
5096  case 6: /* Bytes96*/
5097  case 7: /* Bytes128*/
5098  case 8: /* Bytes256*/
5099  return true;
5100  default:
5101  return false;
5102  }
5103 }
5107 typedef enum {
5146 static inline bool brp_Iso14L4_SetupAPDU_FSCI_is_valid(int val) {
5147  switch (val) {
5148  case 0: /* Bytes16*/
5149  case 1: /* Bytes24*/
5150  case 2: /* Bytes32*/
5151  case 3: /* Bytes40*/
5152  case 4: /* Bytes48*/
5153  case 5: /* Bytes64*/
5154  case 6: /* Bytes96*/
5155  case 7: /* Bytes128*/
5156  case 8: /* Bytes256*/
5157  return true;
5158  default:
5159  return false;
5160  }
5161 }
5169 typedef enum {
5232 static inline bool brp_Iso14L4_SetupAPDU_FWI_is_valid(int val) {
5233  switch (val) {
5234  case 0: /* Us302*/
5235  case 1: /* Us604*/
5236  case 2: /* Us1208*/
5237  case 3: /* Us2416*/
5238  case 4: /* Us4832*/
5239  case 5: /* Us9664*/
5240  case 6: /* Ms19*/
5241  case 7: /* Ms39*/
5242  case 8: /* Ms77*/
5243  case 9: /* Ms155*/
5244  case 10: /* Ms309*/
5245  case 11: /* Ms618*/
5246  case 12: /* Ms1237*/
5247  case 13: /* Ms2474*/
5248  case 14: /* Ms4948*/
5249  return true;
5250  default:
5251  return false;
5252  }
5253 }
5257 typedef struct {
5265  unsigned DSFID;
5270 typedef enum {
5285 static inline bool brp_Iso15_SetMode_Mode_is_valid(int val) {
5286  switch (val) {
5287  case 0: /* Unaddressed*/
5288  case 1: /* Addressed*/
5289  case 2: /* Selected*/
5290  return true;
5291  default:
5292  return false;
5293  }
5294 }
5295 #ifdef BALTECH_SDK_INTERNAL
5296 
5299 typedef struct {
5305  brp_buf BlockData;
5309  unsigned BlockSecData;
5310 } brp_Iso15_ReadBlock_Data_Entry;
5311 #endif // BALTECH_SDK_INTERNAL
5312 
5315 typedef struct {
5328 typedef struct {
5341 typedef enum {
5363 static inline bool brp_Iso78_OpenSam_LID_is_valid(int val) {
5364  switch (val) {
5365  case 0: /* AV2*/
5366  case 1: /* HID*/
5367  case 16: /* Gen1*/
5368  case 17: /* Gen2*/
5369  return true;
5370  default:
5371  return false;
5372  }
5373 }
5374 #ifdef BALTECH_SDK_INTERNAL
5375 
5378 typedef enum {
5382  brp_Main_Bf2Upload_ResultCode_Success = 0,
5386  brp_Main_Bf2Upload_ResultCode_InvalidChecksum = 1,
5390  brp_Main_Bf2Upload_ResultCode_ProgrammingTimeout = 2,
5394  brp_Main_Bf2Upload_ResultCode_VerifyTimeout = 3,
5398  brp_Main_Bf2Upload_ResultCode_UnsupportedCodeType = 4,
5402  brp_Main_Bf2Upload_ResultCode_ProtocolError = 5,
5406  brp_Main_Bf2Upload_ResultCode_SecuredByConfigSecurityCode = 6,
5407  brp_Main_Bf2Upload_ResultCode_undefined = -1
5408 } brp_Main_Bf2Upload_ResultCode;
5409 static inline bool brp_Main_Bf2Upload_ResultCode_is_valid(int val) {
5410  switch (val) {
5411  case 0: /* Success*/
5412  case 1: /* InvalidChecksum*/
5413  case 2: /* ProgrammingTimeout*/
5414  case 3: /* VerifyTimeout*/
5415  case 4: /* UnsupportedCodeType*/
5416  case 5: /* ProtocolError*/
5417  case 6: /* SecuredByConfigSecurityCode*/
5418  return true;
5419  default:
5420  return false;
5421  }
5422 }
5426 typedef enum {
5430  brp_Mce_Enable_Mode_Disable = 0,
5434  brp_Mce_Enable_Mode_Enable = 1,
5435  brp_Mce_Enable_Mode_undefined = -1
5436 } brp_Mce_Enable_Mode;
5437 static inline bool brp_Mce_Enable_Mode_is_valid(int val) {
5438  switch (val) {
5439  case 0: /* Disable*/
5440  case 1: /* Enable*/
5441  return true;
5442  default:
5443  return false;
5444  }
5445 }
5446 #endif // BALTECH_SDK_INTERNAL
5447 
5450 typedef enum {
5461 static inline bool brp_Mif_AuthE2_AuthMode_is_valid(int val) {
5462  switch (val) {
5463  case 96: /* KeyA*/
5464  case 97: /* KeyB*/
5465  return true;
5466  default:
5467  return false;
5468  }
5469 }
5473 typedef enum {
5484 static inline bool brp_Mif_AuthUser_AuthMode_is_valid(int val) {
5485  switch (val) {
5486  case 96: /* KeyA*/
5487  case 97: /* KeyB*/
5488  return true;
5489  default:
5490  return false;
5491  }
5492 }
5496 typedef enum {
5511 static inline bool brp_Mif_ChangeValue_Mode_is_valid(int val) {
5512  switch (val) {
5513  case 0: /* Decrement*/
5514  case 1: /* Increment*/
5515  case 2: /* Restore*/
5516  return true;
5517  default:
5518  return false;
5519  }
5520 }
5524 typedef enum {
5539 static inline bool brp_Mif_ChangeValueBackup_Mode_is_valid(int val) {
5540  switch (val) {
5541  case 0: /* Decrement*/
5542  case 1: /* Increment*/
5543  case 2: /* Restore*/
5544  return true;
5545  default:
5546  return false;
5547  }
5548 }
5552 typedef enum {
5567 static inline bool brp_Mif_AuthE2Extended_AuthLevel_is_valid(int val) {
5568  switch (val) {
5569  case 0: /* AesSl1*/
5570  case 2: /* AesSl3*/
5571  case 3: /* Mifare*/
5572  return true;
5573  default:
5574  return false;
5575  }
5576 }
5580 typedef enum {
5595 static inline bool brp_Mif_AuthUserExtended_AuthLevel_is_valid(int val) {
5596  switch (val) {
5597  case 0: /* AesSl1*/
5598  case 2: /* AesSl3*/
5599  case 3: /* Mifare*/
5600  return true;
5601  default:
5602  return false;
5603  }
5604 }
5608 typedef enum {
5635 static inline bool brp_Mif_ValueSL3_Cmd_is_valid(int val) {
5636  switch (val) {
5637  case 0: /* Increment*/
5638  case 1: /* Decrement*/
5639  case 2: /* Transfer*/
5640  case 3: /* IncrementTransfer*/
5641  case 4: /* DecrementTransfer*/
5642  case 5: /* Restore*/
5643  return true;
5644  default:
5645  return false;
5646  }
5647 }
5651 typedef enum {
5666 static inline bool brp_Mif_VirtualCardSelect_FciType_is_valid(int val) {
5667  switch (val) {
5668  case 0: /* RawData*/
5669  case 1: /* UidAndCardType*/
5670  case 2: /* UidCardTypeAndMemSize*/
5671  return true;
5672  default:
5673  return false;
5674  }
5675 }
5679 typedef struct {
5683  unsigned BlockAddress;
5690  unsigned SectorKeyIdx;
5695 typedef enum {
5706 static inline bool brp_Mif_SetFraming_CommMode_is_valid(int val) {
5707  switch (val) {
5708  case 1: /* MifareNative*/
5709  case 2: /* MifareISO*/
5710  return true;
5711  default:
5712  return false;
5713  }
5714 }
5718 typedef enum {
5729 static inline bool brp_MobileId_Enable_Mode_is_valid(int val) {
5730  switch (val) {
5731  case 0: /* Disable*/
5732  case 1: /* Enable*/
5733  return true;
5734  default:
5735  return false;
5736  }
5737 }
5741 typedef struct {
5782  bool WiFi;
5788  bool Tamper;
5800  bool Keyboard;
5812  bool Display;
5824  bool Ethernet;
5836  bool Rf125kHz;
5842  bool Rf13MHz;
5868  bool RTC;
5891 #ifdef BALTECH_SDK_INTERNAL
5892 
5895 typedef struct {
5899  unsigned ID;
5903  unsigned Value;
5904 } brp_Sys_SetRegister_RegisterAssignments_Entry;
5905 #endif // BALTECH_SDK_INTERNAL
5906 
5909 typedef struct {
5913  unsigned ID;
5917  unsigned Value;
5922 typedef enum {
5941 static inline bool brp_Sys_CfgLoadFinish_FinalizeAction_is_valid(int val) {
5942  switch (val) {
5943  case 0: /* CancelCfgLoad*/
5944  case 1: /* FinalizeCfgLoadWithoutReboot*/
5945  case 2: /* FinalizeCfgLoadWithReboot*/
5946  return true;
5947  default:
5948  return false;
5949  }
5950 }
5951 #ifdef BALTECH_SDK_INTERNAL
5952 
5955 typedef enum {
5959  brp_TTF_ReadByteStream_RxMod_Manchester = 16,
5963  brp_TTF_ReadByteStream_RxMod_Biphase = 32,
5967  brp_TTF_ReadByteStream_RxMod_Ind = 48,
5971  brp_TTF_ReadByteStream_RxMod_HIDP = 80,
5975  brp_TTF_ReadByteStream_RxMod_PSK = 96,
5979  brp_TTF_ReadByteStream_RxMod_SMPL = 112,
5980  brp_TTF_ReadByteStream_RxMod_undefined = -1
5981 } brp_TTF_ReadByteStream_RxMod;
5982 static inline bool brp_TTF_ReadByteStream_RxMod_is_valid(int val) {
5983  switch (val) {
5984  case 16: /* Manchester*/
5985  case 32: /* Biphase*/
5986  case 48: /* Ind*/
5987  case 80: /* HIDP*/
5988  case 96: /* PSK*/
5989  case 112: /* SMPL*/
5990  return true;
5991  default:
5992  return false;
5993  }
5994 }
5995 #endif // BALTECH_SDK_INTERNAL
5996 
5999 typedef enum {
6018 static inline bool brp_Ultralight_AuthE2_DivMode_is_valid(int val) {
6019  switch (val) {
6020  case 0: /* NoDiv*/
6021  case 1: /* SamAv1OneRound*/
6022  case 2: /* SamAv1TwoRounds*/
6023  case 3: /* SamAv2*/
6024  return true;
6025  default:
6026  return false;
6027  }
6028 }
6032 typedef enum {
6043 static inline bool brp_Ultralight_AuthUser_CryptoMode_is_valid(int val) {
6044  switch (val) {
6045  case 0: /* TripleDES*/
6046  case 1: /* AES*/
6047  return true;
6048  default:
6049  return false;
6050  }
6051 }
6052 #ifdef BALTECH_SDK_INTERNAL
6053 
6056 typedef enum {
6060  brp_UsbHost_SetupPipes_Type_Control = 0,
6064  brp_UsbHost_SetupPipes_Type_Interrupt = 1,
6068  brp_UsbHost_SetupPipes_Type_Bulk = 2,
6072  brp_UsbHost_SetupPipes_Type_Isochronous = 3,
6073  brp_UsbHost_SetupPipes_Type_undefined = -1
6074 } brp_UsbHost_SetupPipes_Type;
6075 static inline bool brp_UsbHost_SetupPipes_Type_is_valid(int val) {
6076  switch (val) {
6077  case 0: /* Control*/
6078  case 1: /* Interrupt*/
6079  case 2: /* Bulk*/
6080  case 3: /* Isochronous*/
6081  return true;
6082  default:
6083  return false;
6084  }
6085 }
6089 typedef struct {
6093  unsigned No;
6097  brp_UsbHost_SetupPipes_Type Type;
6101  unsigned FrameSize;
6102 } brp_UsbHost_SetupPipes_Pipes_Entry;
6103 #endif // BALTECH_SDK_INTERNAL
6104 
6107 typedef enum {
6118 static inline bool brp_UI_Toggle_Polarity_is_valid(int val) {
6119  switch (val) {
6120  case 0: /* Normal*/
6121  case 1: /* Inverted*/
6122  return true;
6123  default:
6124  return false;
6125  }
6126 }
6130 typedef enum {
6141 static inline bool brp_UI_Sense_PortState_is_valid(int val) {
6142  switch (val) {
6143  case 0: /* Disabled*/
6144  case 1: /* Enabled*/
6145  return true;
6146  default:
6147  return false;
6148  }
6149 }
6153 typedef enum {
6164 static inline bool brp_VHL_Setup_HasMifareKey_is_valid(int val) {
6165  switch (val) {
6166  case 0: /* Disabled*/
6167  case 6: /* Enabled*/
6168  return true;
6169  default:
6170  return false;
6171  }
6172 }
6176 typedef enum {
6187 static inline bool brp_VHL_Setup_MifareHasAsKeyA_is_valid(int val) {
6188  switch (val) {
6189  case 0: /* Disabled*/
6190  case 1: /* Enabled*/
6191  return true;
6192  default:
6193  return false;
6194  }
6195 }
6199 typedef enum {
6210 static inline bool brp_VHL_Setup_MifareHasMadId_is_valid(int val) {
6211  switch (val) {
6212  case 0: /* Disabled*/
6213  case 2: /* Enabled*/
6214  return true;
6215  default:
6216  return false;
6217  }
6218 }
6222 typedef enum {
6233 static inline bool brp_VHL_Setup_DesfireHasAppId_is_valid(int val) {
6234  switch (val) {
6235  case 0: /* Disabled*/
6236  case 4: /* Enabled*/
6237  return true;
6238  default:
6239  return false;
6240  }
6241 }
6245 typedef enum {
6256 static inline bool brp_VHL_Setup_HasDesfireFileDesc_is_valid(int val) {
6257  switch (val) {
6258  case 0: /* Disabled*/
6259  case 16: /* Enabled*/
6260  return true;
6261  default:
6262  return false;
6263  }
6264 }
6268 typedef enum {
6279 static inline bool brp_VHL_Setup_LegicHasEnStamp_is_valid(int val) {
6280  switch (val) {
6281  case 0: /* Disabled*/
6282  case 1: /* Enabled*/
6283  return true;
6284  default:
6285  return false;
6286  }
6287 }
6291 typedef enum {
6302 static inline bool brp_VHL_Setup_LegicHasAdrMode_is_valid(int val) {
6303  switch (val) {
6304  case 0: /* Disabled*/
6305  case 1: /* Enabled*/
6306  return true;
6307  default:
6308  return false;
6309  }
6310 }
6316 typedef enum {
6349 static inline bool brp_VHL_Setup_LegicAdrMode_is_valid(int val) {
6350  switch (val) {
6351  case 0: /* ProtocolHeader*/
6352  case 1: /* Advant*/
6353  return true;
6354  default:
6355  return false;
6356  }
6357 }
6361 typedef enum {
6372 static inline bool brp_VHL_Setup_Iso15HasFirstBlock_is_valid(int val) {
6373  switch (val) {
6374  case 0: /* Disabled*/
6375  case 1: /* Enabled*/
6376  return true;
6377  default:
6378  return false;
6379  }
6380 }
6384 typedef enum {
6395 static inline bool brp_VHL_Setup_Iso15HasBlockCount_is_valid(int val) {
6396  switch (val) {
6397  case 0: /* Disabled*/
6398  case 1: /* Enabled*/
6399  return true;
6400  default:
6401  return false;
6402  }
6403 }
6407 typedef enum {
6418 static inline bool brp_VHL_Setup_Iso15HasOptionFlag_is_valid(int val) {
6419  switch (val) {
6420  case 0: /* Disabled*/
6421  case 1: /* Enabled*/
6422  return true;
6423  default:
6424  return false;
6425  }
6426 }
6430 typedef enum {
6445 static inline bool brp_VHL_Setup_Iso15OptionFlag_is_valid(int val) {
6446  switch (val) {
6447  case 0: /* OptFlagZero*/
6448  case 1: /* OptFlagOne*/
6449  case 2: /* OptFlagAuto*/
6450  return true;
6451  default:
6452  return false;
6453  }
6454 }
6458 typedef enum {
6469 static inline bool brp_VHL_Setup_Iso15HasBlockSize_is_valid(int val) {
6470  switch (val) {
6471  case 0: /* Disabled*/
6472  case 1: /* Enabled*/
6473  return true;
6474  default:
6475  return false;
6476  }
6477 }
6481 typedef enum {
6498 static inline bool brp_VHL_Setup_FileSpecifier_is_valid(int val) {
6499  switch (val) {
6500  case 0: /* SelectByName*/
6501  case 1: /* SelectByPath*/
6502  case 2: /* SelectByAPDU*/
6503  return true;
6504  default:
6505  return false;
6506  }
6507 }
6511 typedef struct {
6523  size_t Name_len;
6531  size_t Path_len;
6544 typedef enum {
6555 static inline bool brp_VHL_Setup_Iso14HasFileLen_is_valid(int val) {
6556  switch (val) {
6557  case 0: /* Disabled*/
6558  case 4: /* Enabled*/
6559  return true;
6560  default:
6561  return false;
6562  }
6563 }
6567 typedef enum {
6578 static inline bool brp_VHL_Setup_Iso14HasApduTimeout_is_valid(int val) {
6579  switch (val) {
6580  case 0: /* Disabled*/
6581  case 2: /* Enabled*/
6582  return true;
6583  default:
6584  return false;
6585  }
6586 }
6587 #ifdef BALTECH_SDK_INTERNAL
6588 
6591 typedef enum {
6595  brp_DHWCtrlLegacy_PortConfig_Mode_OutputLow = 0,
6599  brp_DHWCtrlLegacy_PortConfig_Mode_OutputHigh = 1,
6603  brp_DHWCtrlLegacy_PortConfig_Mode_InputTristate = 2,
6607  brp_DHWCtrlLegacy_PortConfig_Mode_InputPullup = 3,
6608  brp_DHWCtrlLegacy_PortConfig_Mode_undefined = -1
6609 } brp_DHWCtrlLegacy_PortConfig_Mode;
6610 static inline bool brp_DHWCtrlLegacy_PortConfig_Mode_is_valid(int val) {
6611  switch (val) {
6612  case 0: /* OutputLow*/
6613  case 1: /* OutputHigh*/
6614  case 2: /* InputTristate*/
6615  case 3: /* InputPullup*/
6616  return true;
6617  default:
6618  return false;
6619  }
6620 }
6624 typedef enum {
6628  brp_DHWCtrlLegacy_DispColor_Color_White = 0,
6632  brp_DHWCtrlLegacy_DispColor_Color_Black = 255,
6633  brp_DHWCtrlLegacy_DispColor_Color_undefined = -1
6634 } brp_DHWCtrlLegacy_DispColor_Color;
6635 static inline bool brp_DHWCtrlLegacy_DispColor_Color_is_valid(int val) {
6636  switch (val) {
6637  case 0: /* White*/
6638  case 255: /* Black*/
6639  return true;
6640  default:
6641  return false;
6642  }
6643 }
6647 typedef enum {
6651  brp_DHWCtrlLegacy_GetReaderChipType_ChipType_RC500 = 1,
6655  brp_DHWCtrlLegacy_GetReaderChipType_ChipType_RC632 = 4,
6659  brp_DHWCtrlLegacy_GetReaderChipType_ChipType_RC663 = 5,
6663  brp_DHWCtrlLegacy_GetReaderChipType_ChipType_PN512 = 33,
6664  brp_DHWCtrlLegacy_GetReaderChipType_ChipType_undefined = -1
6665 } brp_DHWCtrlLegacy_GetReaderChipType_ChipType;
6666 static inline bool brp_DHWCtrlLegacy_GetReaderChipType_ChipType_is_valid(int val) {
6667  switch (val) {
6668  case 1: /* RC500*/
6669  case 4: /* RC632*/
6670  case 5: /* RC663*/
6671  case 33: /* PN512*/
6672  return true;
6673  default:
6674  return false;
6675  }
6676 }
6680 typedef enum {
6684  brp_DHWCtrlLegacy_GetSamType_ChipType_TDA8007C2 = 1,
6688  brp_DHWCtrlLegacy_GetSamType_ChipType_TDA8007C3 = 2,
6689  brp_DHWCtrlLegacy_GetSamType_ChipType_undefined = -1
6690 } brp_DHWCtrlLegacy_GetSamType_ChipType;
6691 static inline bool brp_DHWCtrlLegacy_GetSamType_ChipType_is_valid(int val) {
6692  switch (val) {
6693  case 1: /* TDA8007C2*/
6694  case 2: /* TDA8007C3*/
6695  return true;
6696  default:
6697  return false;
6698  }
6699 }
6703 typedef enum {
6707  brp_DHWCtrlLegacy_HfAcquire_ModuleId_No = 0,
6711  brp_DHWCtrlLegacy_HfAcquire_ModuleId_RC = 1,
6715  brp_DHWCtrlLegacy_HfAcquire_ModuleId_Legic = 3,
6719  brp_DHWCtrlLegacy_HfAcquire_ModuleId_PN = 17,
6723  brp_DHWCtrlLegacy_HfAcquire_ModuleId_LegicAdvant = 19,
6727  brp_DHWCtrlLegacy_HfAcquire_ModuleId_RC125 = 24,
6731  brp_DHWCtrlLegacy_HfAcquire_ModuleId_PN2 = 26,
6735  brp_DHWCtrlLegacy_HfAcquire_ModuleId_RC663 = 34,
6739  brp_DHWCtrlLegacy_HfAcquire_ModuleId_HTRC110 = 36,
6740  brp_DHWCtrlLegacy_HfAcquire_ModuleId_undefined = -1
6741 } brp_DHWCtrlLegacy_HfAcquire_ModuleId;
6742 static inline bool brp_DHWCtrlLegacy_HfAcquire_ModuleId_is_valid(int val) {
6743  switch (val) {
6744  case 0: /* No*/
6745  case 1: /* RC*/
6746  case 3: /* Legic*/
6747  case 17: /* PN*/
6748  case 19: /* LegicAdvant*/
6749  case 24: /* RC125*/
6750  case 26: /* PN2*/
6751  case 34: /* RC663*/
6752  case 36: /* HTRC110*/
6753  return true;
6754  default:
6755  return false;
6756  }
6757 }
6761 typedef enum {
6765  brp_DHWCtrlLegacy_AesWrapKey_WrappedKeyNr_WrapNone = 0,
6769  brp_DHWCtrlLegacy_AesWrapKey_WrappedKeyNr_WrapDHUK = 1,
6770  brp_DHWCtrlLegacy_AesWrapKey_WrappedKeyNr_undefined = -1
6771 } brp_DHWCtrlLegacy_AesWrapKey_WrappedKeyNr;
6772 static inline bool brp_DHWCtrlLegacy_AesWrapKey_WrappedKeyNr_is_valid(int val) {
6773  switch (val) {
6774  case 0: /* WrapNone*/
6775  case 1: /* WrapDHUK*/
6776  return true;
6777  default:
6778  return false;
6779  }
6780 }
6784 typedef enum {
6788  brp_DHWCtrlLegacy_AesEncrypt_WrappedKeyNr_WrapNone = 0,
6792  brp_DHWCtrlLegacy_AesEncrypt_WrappedKeyNr_WrapDHUK = 1,
6793  brp_DHWCtrlLegacy_AesEncrypt_WrappedKeyNr_undefined = -1
6794 } brp_DHWCtrlLegacy_AesEncrypt_WrappedKeyNr;
6795 static inline bool brp_DHWCtrlLegacy_AesEncrypt_WrappedKeyNr_is_valid(int val) {
6796  switch (val) {
6797  case 0: /* WrapNone*/
6798  case 1: /* WrapDHUK*/
6799  return true;
6800  default:
6801  return false;
6802  }
6803 }
6807 typedef enum {
6811  brp_DHWCtrlLegacy_AesDecrypt_WrappedKeyNr_WrapNone = 0,
6815  brp_DHWCtrlLegacy_AesDecrypt_WrappedKeyNr_WrapDHUK = 1,
6816  brp_DHWCtrlLegacy_AesDecrypt_WrappedKeyNr_undefined = -1
6817 } brp_DHWCtrlLegacy_AesDecrypt_WrappedKeyNr;
6818 static inline bool brp_DHWCtrlLegacy_AesDecrypt_WrappedKeyNr_is_valid(int val) {
6819  switch (val) {
6820  case 0: /* WrapNone*/
6821  case 1: /* WrapDHUK*/
6822  return true;
6823  default:
6824  return false;
6825  }
6826 }
6827 #endif // BALTECH_SDK_INTERNAL
6828 #endif
6829 
The reader supports ISO 15693 cards as documented here.
Definition: typedefs.h:1554
Custom Virtual LED (VLED) port.
Definition: typedefs.h:2123
bool VhlWrite
Has to be cleared to deny writing cards via VHL.
Definition: typedefs.h:3370
Refers to a general purpose I/O.
Definition: typedefs.h:2083
unsigned ReadKeyNo
ReadKeyNo , i.e.
Definition: typedefs.h:3179
Keylength: 16 byte.
Definition: typedefs.h:771
ISO 14443-4 Type A; this card type is capable of transferring application protocol data units (APDU) ...
Definition: typedefs.h:2822
bool Hitag1S
HITAG 1 or S.
Definition: typedefs.h:34
bool SupportsNotify
Definition: typedefs.h:3624
brp_Desfire_WriteData_Mode
Communication settings linked to the file.
Definition: typedefs.h:3862
brp_Iso78_OpenSam_LID
Logical SAM-ID (LID)
Definition: typedefs.h:5341
Custom Virtual LED (VLED) port.
Definition: typedefs.h:2171
brp_VHL_Setup_MifareHasMadId
Definition: typedefs.h:6199
The reader supports Keri Systems cards as documented here.
Definition: typedefs.h:1658
Use this value to select an NXP MIFARE SAM AV2 or AV3.
Definition: typedefs.h:5345
References keys which are defined in respective VHL files: AES keys in MifarePlusAesKeyList Mifare ke...
Definition: typedefs.h:227
brp_CardType
Definition: typedefs.h:2790
SAM AV1 mode (1 encryption round for Tripple DES keys).
Definition: typedefs.h:6007
The reader supports Mobile Card Emulation (MCE).
Definition: typedefs.h:1808
bool SupportsWrite
Definition: typedefs.h:3628
brp_IoPort SwitchIoPort
I/O pins of the reader that can be controlled by the user.
Definition: typedefs.h:2752
The reader supports the emulation of ISO14443-4 compatible cards.
Definition: typedefs.h:1764
EM 4100/EM 4102.
Definition: typedefs.h:2882
License bit mask.
Definition: typedefs.h:3572
AES SL1 authentication.
Definition: typedefs.h:5556
bool CorruptFirmware
The reader firmware is corrupted.
Definition: typedefs.h:5884
size_t ApduCommand_len
Length of ApduCommand (in bytes).
Definition: typedefs.h:6539
bool BcdToBin
Converts a BCD number (must only contain nibbles 0-9, not A-F) to a binary number.
Definition: typedefs.h:309
For every of these filter bits, a specific data conversion mechanism is specified.
Definition: typedefs.h:292
Custom Virtual LED (VLED) port.
Definition: typedefs.h:2147
Accept only BEC/BEC2/BF3 files or ConfigCards that are encrypted with a matching customer key...
Definition: typedefs.h:3255
brp_MessageType
Event that triggered the message.
Definition: typedefs.h:518
More accurate info: The reader supports reading the PCN of HID iCLASS SR cards as documented here...
Definition: typedefs.h:1752
unsigned RgbColor2
This field is only available in case of a pulse signal.
Definition: typedefs.h:3563
bool IncompleteFirmware
Due to an aborted upload, the firmware on the reader is incomplete and not fully functional.
Definition: typedefs.h:5889
File is specified by DF name.
Definition: typedefs.h:119
iCLASS via ISO 15693
Definition: typedefs.h:2870
The reader supports MIFARE Plus EV0 cards in Security Level 3 using AES authentication as documented ...
Definition: typedefs.h:1598
brp_VHL_Setup_FileSpecifier
The method to select the file.
Definition: typedefs.h:6481
bool AdvantAddressMode
Use Advant address mode.
Definition: typedefs.h:161
DESFire native mode (default communication mode).
Definition: typedefs.h:3978
brp_KeyAccessRights_DiversificationMode DiversificationMode
Definition: typedefs.h:731
brp_Iso14b_Attrib_EOF_
End Of Frame (EOF) flag for sending data to reader.
Definition: typedefs.h:5001
The reader supports ISO 14443 Type A cards as documented here.
Definition: typedefs.h:1534
bool TTF
Low level card type / programmable decoder.
Definition: typedefs.h:22
This is a Shortcut for DisablePort GreenLed (requires only one byte intead of 2). ...
Definition: typedefs.h:2274
brp_UI_Sense_PortState
Definition: typedefs.h:6130
brp_Iso14b_Request_FWI
Frame Waiting time Integer (FWI).
Definition: typedefs.h:4683
Keylength: 8 byte.
Definition: typedefs.h:759
Custom Virtual LED (VLED) port.
Definition: typedefs.h:2155
brp_Mif_ChangeValueBackup_Mode
Access mode.
Definition: typedefs.h:5524
bool Khz125Part1
Scans for the following 125kHz cards: EM4205, EM4305, EM4100, EM4102, EM4450, Farpointe Pyramid...
Definition: typedefs.h:3068
unsigned GreatestBlockedFwVersionMajor
Binary that specifies the major number of the greatest non-blocked fw version.
Definition: typedefs.h:3488
bool Iso15693
Scans for ISO-15693-compatible cards, e.g.
Definition: typedefs.h:3092
Refers to a general purpose I/O.
Definition: typedefs.h:2107
unsigned GreatestBlockedFwVersionBuild
Binary that specifies the build number of the greatest non-blocked fw version.
Definition: typedefs.h:3496
brp_VHL_Setup_Iso15HasBlockSize
Definition: typedefs.h:6458
unsigned SmallestBlockedFwVersionMajor
Binary that specifies the major number of the smallest blocked fw version.
Definition: typedefs.h:3476
bool Hitag2M
HITAG 2 Manchester.
Definition: typedefs.h:30
brp_Mif_AuthUser_AuthMode
Authentication Mode.
Definition: typedefs.h:5473
Custom Virtual LED (VLED) port.
Definition: typedefs.h:2151
brp_Desfire_Authenticate_KeyDivMode
Specifies diversification algorithm.
Definition: typedefs.h:3740
The reader has an RGB LED that is fully customizable.
Definition: typedefs.h:1788
The reader supports MIFARE DESFire EV3 cards as documented here.
Definition: typedefs.h:1800
bool SwapNibbles
Swap the higher nibble (bits 5-7) of each byte with the lower nibble (bits 0-3).
Definition: typedefs.h:331
The reader supports QuadraKey cards as documented here.
Definition: typedefs.h:1666
References keys within the CryptoKey memory.
Definition: typedefs.h:210
Access rights and key info.
Definition: typedefs.h:665
See description above.
Definition: typedefs.h:2794
The reader supports EM 4205 cards as documented here.
Definition: typedefs.h:1622
unsigned IsoFileId
ISO file ID.
Definition: typedefs.h:4005
The reader will boot in Autoread mode and scan for cards, no matter if its configuration contains an ...
Definition: typedefs.h:3301
LBus protocol.
Definition: typedefs.h:465
brp_DivisorInteger
Divisor Send/Receive Integer (DSI/DRI)
Definition: typedefs.h:1398
Custom Virtual LED (VLED) port.
Definition: typedefs.h:2131
unsigned Version
Key version.
Definition: typedefs.h:727
bool KeyB
The key assigned to this sector/block shall be applied as key B.
Definition: typedefs.h:200
brp_buf RecvBlock
Contains the actual data read from a block.
Definition: typedefs.h:5332
brp_ProtocolID
A list of all protocols.
Definition: typedefs.h:399
unsigned AppId
Application ID - range from 0x00000000 to 0x00FFFFFF.
Definition: typedefs.h:4001
Complete the BEC transfer, but don&#39;t reboot.
Definition: typedefs.h:5932
Refers to a general purpose I/O.
Definition: typedefs.h:2091
Custom Virtual LED (VLED) port.
Definition: typedefs.h:2119
ISO-15693-compliant label.
Definition: typedefs.h:2846
The reader supports ST SRIX cards as documented here.
Definition: typedefs.h:1606
The reader supports firmware/configuration upload via BEC2 files.
Definition: typedefs.h:1796
brp_VirtualLedDefinition_Mode Mode
This byte is required to enable additional fields for the characterization of the desired LED behavio...
Definition: typedefs.h:3551
Abstract card type for reading MIFARE DESFire cards using a special VHL implementation for LEGIC read...
Definition: typedefs.h:2982
size_t WriteBlock_len
Length of WriteBlock (in bytes).
Definition: typedefs.h:5323
bool IoPortWrite
Has to be cleared to deny write access to io ports.
Definition: typedefs.h:3394
Resolvable private random address.
Definition: typedefs.h:3663
iCLASS via proprietary ISO 14443 Type B protocol derivate (Level 2 compatible)
Definition: typedefs.h:2866
The reader supports EM 4100 cards as documented here.
Definition: typedefs.h:1626
The reader supports OSDP specification version 2.17.
Definition: typedefs.h:1780
Custom Virtual LED (VLED) port.
Definition: typedefs.h:2143
brp_AutoReadMode
Definition: typedefs.h:3286
unsigned SmallestBlockedFwVersionMinor
Binary that specifies the minor number of the smallest blocked fw version.
Definition: typedefs.h:3480
SAM AV1 mode (2 encryption rounds for Tripple DES keys).
Definition: typedefs.h:6011
SAM AV1 mode only for DES keys - two encryption rounds.
Definition: typedefs.h:3926
The reader supports EM 4450 cards as documented here.
Definition: typedefs.h:1630
bool CRC16bit
Use 16-bit CRC.
Definition: typedefs.h:187
Custom Virtual LED (VLED) port.
Definition: typedefs.h:2139
brp_VHL_Setup_LegicAdrMode
Specifies the addressing mode.
Definition: typedefs.h:6316
bool IsPulse
If true , this virtual LED definition describes a pulse signal that continuously fades between 2 RGB ...
Definition: typedefs.h:3509
SAM AV1 compatible mode (AES, 3K3DES, 3DES: 2 encryption rounds).
Definition: typedefs.h:3752
brp_MobileId_Enable_Mode
Definition: typedefs.h:5718
The reader supports Farpointe Pyramid cards as documented here.
Definition: typedefs.h:1634
bool Idteck
Idteck.
Definition: typedefs.h:87
bool Synced
If this flag is set, data must be sent and received at equal bit rates.
Definition: typedefs.h:4877
brp_buf WriteBlock
Content that shall be written to blocks starting at BlockId
Definition: typedefs.h:5319
Due to an aborted upload, the firmware on the reader is incomplete and not fully functional.
Definition: typedefs.h:1732
brp_Mif_AuthE2_AuthMode
Authentication Mode.
Definition: typedefs.h:5450
Parity is used.
Definition: typedefs.h:1933
bool HidIoprox
ioProx
Definition: typedefs.h:38
brp_buf PUPI
Pseudo-Unique PICC Identifier (PUPI).
Definition: typedefs.h:4867
BRP protocol over RS-232/UART.
Definition: typedefs.h:407
brp_MifarePlusKeyMemoryType
This value references a key memory type within the reader.
Definition: typedefs.h:205
The hardware limits the HF baud rate to 424 kbps.
Definition: typedefs.h:1726
This is a Shortcut for RepeatLoop 1 which is actually a dummy operation, as the repeat block is was a...
Definition: typedefs.h:2314
The reader has a red LED.
Definition: typedefs.h:1514
The hardware limits the HF baud rate to 106 kbps.
Definition: typedefs.h:1714
bool Hitag2B
HITAG 2 Biphase.
Definition: typedefs.h:26
bool FirmwareVersionBlockedLegacy
The loaded firmware version is blacklisted.
Definition: typedefs.h:5806
The reader can read the UID of a PicoPass card.
Definition: typedefs.h:1700
brp_VHL_Setup_HasMifareKey
Definition: typedefs.h:6153
Jumps back to the corresponding StartLoop a specified number of repetitions.
Definition: typedefs.h:2228
Fire the corresponding "OnSetXxxx" event if the corresponding input port&#39;s state is set...
Definition: typedefs.h:2769
brp_RunSequenceCmd_CmdCode CmdCode
Definition: typedefs.h:2740
SAM AV1 mode only for DES keys - two encryption rounds).
Definition: typedefs.h:3954
The reader supports Mifare Ultralight cards as documented The reader supports Mifare Ultralight cards...
Definition: typedefs.h:1760
Handle Bytes in Least significant bit first order.
Definition: typedefs.h:248
brp_Desfire_SetFraming_CommMode
Defines 14443-4 communication mode to DESFire card.
Definition: typedefs.h:3974
The reader can read the UID of an ISO 14443 Type A card.
Definition: typedefs.h:1540
Enable/disable/toggle the blue LED (if available).
Definition: typedefs.h:2071
bool SupportsWriteNoResponse
Definition: typedefs.h:3632
Authenticate with Key B.
Definition: typedefs.h:5458
brp_buf AppData
Application data field.
Definition: typedefs.h:4873
MIFARE Plus L3.
Definition: typedefs.h:2834
bool HWoptions
A hardware options error occurred, device out of order.
Definition: typedefs.h:5862
bool Pack
Merges two Bytes at a time to a single one by removing the leading nibble (which has to be 0) of each...
Definition: typedefs.h:335
The port is disabled/inactive/low.
Definition: typedefs.h:6138
Do never fire the corresponding event (no matter what the corresponding input port&#39;s state is) ...
Definition: typedefs.h:2761
brp_UI_Toggle_Polarity
Definition: typedefs.h:6107
SAM AV2 mode (AES according NXP: AN 10922).
Definition: typedefs.h:3756
bool VariableSize
Definition: typedefs.h:3640
brp_buf UID
Unique ID of label.
Definition: typedefs.h:5261
bool HidProx32
HID Prox32.
Definition: typedefs.h:62
brp_Iso15_SetMode_Mode
Communication mode for label addressing.
Definition: typedefs.h:5270
bool SysReset
Has to be cleared to deny allow reboot/powerdown of system.
Definition: typedefs.h:3414
bool ConfigurationInconsistent
The reader configuration is corrupted.
Definition: typedefs.h:5766
brp_Iso14b_Attrib_SOF
Start Of Frame (SOF) flag for sending data to reader.
Definition: typedefs.h:5024
Increment the value.
Definition: typedefs.h:5504
brp_Iso14L4_SetupAPDU_FSCI
Frame Size proximity Card Integer (FSCI).
Definition: typedefs.h:5107
Definition: typedefs.h:3997
Refers to a general purpose I/O.
Definition: typedefs.h:2095
bool Bluetooth
The Bluetooth chip of the reader is defective, device out of order.
Definition: typedefs.h:5776
brp_VHL_Setup_Iso14HasApduTimeout
Definition: typedefs.h:6567
unsigned Value
Value of counter (Baltech internal use)
Definition: typedefs.h:5917
brp_FileType
Filetypes supported by VHL.
Definition: typedefs.h:115
brp_Iso14b_Request_TimeSlots
Number of time slots which should be used for requesting PICCs.
Definition: typedefs.h:4560
brp_Sys_CfgLoadFinish_FinalizeAction
Defines the reader&#39;s behaviour on error/success.
Definition: typedefs.h:5922
unsigned WriteKeyIdx
Index of the write key on the reader If omitted and WriteKeyNo is equal to ReadKeyNo ...
Definition: typedefs.h:3210
bool Rf13MHzLegacy
The 13.56 MHz RFID interface of the reader is defective, device out of order.
Definition: typedefs.h:5856
The customer key and the Config Security Code have to match for this BEC/BEC2/BF3 file or ConfigCard ...
Definition: typedefs.h:3263
SAM AV1 mode (3DES: 1 encryption round).
Definition: typedefs.h:3748
Bluetooth MCE; Mobile Card Emulation over Bluetooth.
Definition: typedefs.h:2962
This byte defines how a Legic segment shall be accessed.
Definition: typedefs.h:157
Fire the corresponding "OnClearXxxx" event if the corresponding input port&#39;s state is cleared...
Definition: typedefs.h:2765
bool Recv424
When this flag is set, the PICC can receive data with a bit rate of up to 424 kbit/s.
Definition: typedefs.h:4897
brp_Mif_ChangeValue_Mode
Access mode.
Definition: typedefs.h:5496
bool VhlFormat
Has to be cleared to deny formattings cards via VHL.
Definition: typedefs.h:3366
This word defines the CRC address according to the addressing mode selected in SegmentIdentificationA...
Definition: typedefs.h:183
Select the file by DF name.
Definition: typedefs.h:6485
Decrements a value block by the given value and stores the result in the Transfer Buffer...
Definition: typedefs.h:5616
Key diversification according to NXP AN10922.
Definition: typedefs.h:702
brp_Ultralight_AuthE2_DivMode
Specifies diversification algorithm.
Definition: typedefs.h:5999
brp_buf IsoDfName
ISO DF filename (optional, 0..16 bytes)
Definition: typedefs.h:4009
No Parity is used.
Definition: typedefs.h:1929
The reader supports Jewel cards as documented here.
Definition: typedefs.h:1610
bool BatteryManagement
The battery management system of the reader is defective, device out of order.
Definition: typedefs.h:5794
Combined Decrement and Transfer.
Definition: typedefs.h:5628
bool FactorySettings
An error occurred during a factory reset, leaving the reader without any settings instead of restorin...
Definition: typedefs.h:5759
Useful if a lot of operations need to be performed with the same label since the UID is not transferr...
Definition: typedefs.h:5282
unsigned BlockAddress
Block address of the sector that is switched to the targeted security level.
Definition: typedefs.h:5683
Enable/disable/toggle the beeper (if available).
Definition: typedefs.h:2055
The reader has a green LED.
Definition: typedefs.h:1510
unsigned DivIdx
Index for data converter rule: Possible values:
Definition: typedefs.h:737
bool NewerReaderChipFirmware
The reader chip has not accepted the reader chip firmware included in the latest firmware update...
Definition: typedefs.h:5749
Accept any kind of BEC/BEC2/BF3 files or ConfigCards, even unencrypted ones.
Definition: typedefs.h:3251
size_t NFCID_len
Length of NFCID (in bytes).
Definition: typedefs.h:4371
brp_VHL_Setup_Iso15HasFirstBlock
Definition: typedefs.h:6361
brp_Iso14b_Request_FSCI FSCI
Frame Size proximity Card Integer (FSCI).
Definition: typedefs.h:4905
bool ConfigRead
Has to be cleared to deny read access to configuration keys/values.
Definition: typedefs.h:3410
unsigned ADC
Application Data Coding supported by the PICC.
Definition: typedefs.h:4924
brp_Mif_ValueSL3_Cmd
Selects a value operation.
Definition: typedefs.h:5608
brp_Desfire_AuthExtKey_CryptoMode
Sets the encryption algorithm.
Definition: typedefs.h:3801
The reader supports 125 kHz cards.
Definition: typedefs.h:1530
If execution of the sequence was aborted, jump to this label and run the following commands until End...
Definition: typedefs.h:2250
Custom Virtual LED (VLED) port.
Definition: typedefs.h:2159
BRP protocol over RS485 connection.
Definition: typedefs.h:411
bool GuiAccess
Has to be cleared to deny access to keypad/lcd.
Definition: typedefs.h:3390
bool ExtendedAccess
Has to be cleared to deny allow access to the extended reader partition.
Definition: typedefs.h:3346
Fire the corresponding event always (no matter what the corresponding input port&#39;s state is) ...
Definition: typedefs.h:2773
brp_buf Parameter
The length of this block depends on the length of the command.
Definition: typedefs.h:392
bool HidProx
HID Proximity.
Definition: typedefs.h:42
Definition: typedefs.h:5909
Align to the right.
Definition: typedefs.h:271
Custom Virtual LED (VLED) port.
Definition: typedefs.h:2163
brp_KeyAccessRights_KeySettings KeySettings
Access rights and key info.
Definition: typedefs.h:723
The initial and final port state is disabled/inactive/low.
Definition: typedefs.h:6111
This is a autoread protocol that sends the ID read by autoread mode without any protocol overhead...
Definition: typedefs.h:427
brp_BlePeriph_IsConnected_AddressType
Remote device address type.
Definition: typedefs.h:3651
brp_VHL_Setup_LegicHasEnStamp
Definition: typedefs.h:6268
bool WiFi
The WiFi chip of the reader is defective, device out of order.
Definition: typedefs.h:5782
bool Ble
BLE license.
Definition: typedefs.h:3580
Restore/load the value.
Definition: typedefs.h:5508
Mobile ID is enabled.
Definition: typedefs.h:5722
The hardware limits the HF baud rate to 212 kbps.
Definition: typedefs.h:1720
Decrement the value.
Definition: typedefs.h:5500
The customer key and the Config Security Code have to match for this BEC/BEC2/BF3 file or ConfigCard ...
Definition: typedefs.h:3267
Restore/load the value.
Definition: typedefs.h:5536
bool Rf13MHz
The 13.56 MHz RFID interface for ISO 14443/ISO 15693 card systems is defective, device out of order...
Definition: typedefs.h:5842
brp_Desfire_ChangeExtKey_MasterKeyType
These bits must only be set if the card&#39;s Master Key is changed.
Definition: typedefs.h:3890
A SAM AV3 card is inserted.
Definition: typedefs.h:1776
brp_Desfire_ChangeKey_NewKeyDivMode
Specifies diversification algorithm.
Definition: typedefs.h:3918
unsigned Param
This field represents a time (either in milliseconds or seconds).
Definition: typedefs.h:2748
bool VhlRead
Has to be cleared to deny reading cards via VHL.
Definition: typedefs.h:3374
MIFARE Classic (1k and 4k variants)
Definition: typedefs.h:2798
iCLASS via standard-compliant ISO 14443 Type B protocol (Level 3 compatible)
Definition: typedefs.h:2862
bool Ethernet
The Ethernet interface of the reader is defective, device out of order.
Definition: typedefs.h:5824
unsigned FileSize
**Only needed to run VHL.Format .
Definition: typedefs.h:3232
brp_Felica_GenericCmd_FastBaud
Baudrate PCD-PICC.
Definition: typedefs.h:4317
bool BinToBcd
Converts a binary Number to a BCD encoded number.
Definition: typedefs.h:327
size_t RecvBlock_len
Length of RecvBlock (in bytes).
Definition: typedefs.h:5336
A bitmask containing the physical LEDs you want to switch.
Definition: typedefs.h:1902
bool Keyboard
The keyboard of the reader is defective, device out of order.
Definition: typedefs.h:5800
Custom Virtual LED (VLED) port.
Definition: typedefs.h:2167
Low-level card type/programmable decoder.
Definition: typedefs.h:2934
brp_AutoRunCommand_RunMode
Definition: typedefs.h:348
brp_RunSequenceCmd_CmdCode
Definition: typedefs.h:2216
bool RequireContinuousIv
Initialvector of CBC encryption is not reset between commands.
Definition: typedefs.h:3451
bool FlashFileSystemWrite
Has to be cleared to deny write access to flash file system.
Definition: typedefs.h:3350
This bitmask can be combined with a reference to a key index in the readers keylist and specifies mor...
Definition: typedefs.h:192
HITAG 2 Biphase.
Definition: typedefs.h:2930
bool IClassIso14B
Can be used instead of iCLASS to increase scanning speed.
Definition: typedefs.h:3084
unsigned GreatestBlockedFwVersionMinor
Binary that specifies the minor number of the greatest non-blocked fw version.
Definition: typedefs.h:3492
LEGIC neon file.
Definition: typedefs.h:2986
bool HfLowlevelAccess
Has to be cleared to deny allow to access HF via low level commands.
Definition: typedefs.h:3386
The reader supports SecuraKey cards as documented here.
Definition: typedefs.h:1670
bool IsDivInfo
The value for diversification data can be found in Project/DiversificationData.
Definition: typedefs.h:673
The reader returned a log message.
Definition: typedefs.h:550
unsigned Page
Project crypto memory page (range 0..0x0F)
Definition: typedefs.h:746
The reader supports Hitag 2 Manchester cards as documented here.
Definition: typedefs.h:1682
size_t IsoDfName_len
Length of IsoDfName (in bytes).
Definition: typedefs.h:4013
bool BinToAscii
Convert Binarydata to ASCII by converting the ASCII characters 0x00-0x09 to 0x30-0x39 and 0x0A-0x0F t...
Definition: typedefs.h:313
bool AutoreadAccess
Has to be cleared to deny control autoread task.
Definition: typedefs.h:3334
Use this value to select a SAM different from those named above.
Definition: typedefs.h:5353
The firmware can be updated via a serial interface (RS-232/UART or virtual COM port).
Definition: typedefs.h:1736
Infineon my-d proximity (SLE55); this is a legacy value that is no longer returned since firmware ver...
Definition: typedefs.h:2818
The reader supports PKI-encrypted communication with the host.
Definition: typedefs.h:1744
unsigned Size
Specifies the size of the characteristic in bytes.
Definition: typedefs.h:3646
This word defines the start address according to the addressing mode selected in SegmentIdentificatio...
Definition: typedefs.h:172
bool Recv848
When this flag is set, the PICC can receive data with a bit rate of up to 848 kbit/s.
Definition: typedefs.h:4893
The reader supports 13.56 MHz cards.
Definition: typedefs.h:1526
Custom Virtual LED (VLED) port.
Definition: typedefs.h:2135
The port is enabled/active/high.
Definition: typedefs.h:6134
File is specified by 2 byte FID.
Definition: typedefs.h:123
unsigned Length
Length of byte sequence within the DESFire file to map into the VHL file.
Definition: typedefs.h:3193
MIFARE native mode (default communication mode).
Definition: typedefs.h:5699
brp_buf ApduCommand
APDU command by which to select the file.
Definition: typedefs.h:6535
bool Unpack
Splits the high and the low nibble of each byte into two separate bytes, where the high nibble is set...
Definition: typedefs.h:317
brp_Iso14b_Attrib_TR0
PICC&#39;s minimum delay before responding after the end of a command sent by PCD.
Definition: typedefs.h:4945
unsigned ChangeKeyIdx
**Only needed to run VHL.Format .
Definition: typedefs.h:3226
Non-resolvable private random address.
Definition: typedefs.h:3667
An HID SAM card is inserted.
Definition: typedefs.h:1586
brp_Mif_VirtualCardSelect_FciType
Type of File Control Information returned.
Definition: typedefs.h:5651
bool Recv212
When this flag is set, the PICC can receive data with a bit rate of up to 212 kbit/s.
Definition: typedefs.h:4901
bool SetAccessConditionMask2
Has to be cleared to deny set ac 2.
Definition: typedefs.h:3418
bool SecuraKey
SecuraKey.
Definition: typedefs.h:103
Retrieve the state of the custom input 1.
Definition: typedefs.h:2067
unsigned CommandCode
Definition: typedefs.h:388
unsigned RgbColor
This is the color of the VLED port in the RGB color space (0x00RRGGBB).
Definition: typedefs.h:3555
unsigned ID
ID of statistics counter (Baltech internal use)
Definition: typedefs.h:5913
LEGIC advant ISO 15693.
Definition: typedefs.h:2850
bool HidIndalaSecure
Indala ASP+.
Definition: typedefs.h:95
Keylength: 16 byte.
Definition: typedefs.h:763
unsigned SectorKeyIdx
Crypto Memory Index (SAM or CryptoMemory) of the sector key.
Definition: typedefs.h:5690
Copies the value block content to the TransferBuffer.
Definition: typedefs.h:5632
Use this value to select an HID SE Processor (also known as iClass SAM).
Definition: typedefs.h:5349
Transfers the content of the Transfer Buffer to the specified address.
Definition: typedefs.h:5620
bool VhlExchangeapdu
Has to be cleared to deny running VHL APDU Exchange.
Definition: typedefs.h:3362
Authenticate with Key B.
Definition: typedefs.h:5481
HITAG 1 or S.
Definition: typedefs.h:2922
A card or a phone with an active Mobile ID app was presented to the reader.
Definition: typedefs.h:522
HID Indala ASP+.
Definition: typedefs.h:2950
FIPS201 Personal Identity Verification (PIV)
Definition: typedefs.h:2978
The tamper alarm was activated.
Definition: typedefs.h:526
brp_VHL_Setup_LegicHasAdrMode
Definition: typedefs.h:6291
bool AsciiToBin
Convert ASCII to Binarydata by converting the ASCII characters 0x30-0x39 to 0x00-0x09 and 0x41-0x49 (...
Definition: typedefs.h:339
The reader can be used as Bluetooth Peripheral.
Definition: typedefs.h:1816
bool FactoryReset
Has to be cleared to deny resetting system to factory settings.
Definition: typedefs.h:3442
bool Bf2Upload
Has to be cleared to deny allow to upload firmware.
Definition: typedefs.h:3342
Custom Virtual LED (VLED) port.
Definition: typedefs.h:2115
bool EM4450
EM4450.
Definition: typedefs.h:70
brp_Desfire_ReadData_Mode
Communication settings linked to the file.
Definition: typedefs.h:3834
bool IClass
Scans for iCLASS and iCLASS SR cards.
Definition: typedefs.h:3078
USB devices will register as keyboard if this value is active.
Definition: typedefs.h:435
brp_CryptoAlgorithm
This byte defines the crypto algorithm that shall be used when working with the key that is following...
Definition: typedefs.h:755
This is a second Autoread protocol that sends the ID read by Autoread mode without any protocol overh...
Definition: typedefs.h:473
The reader supports ISO 14443 Type B cards as documented here.
Definition: typedefs.h:1544
Selects all available protocols.
Definition: typedefs.h:403
Definition: typedefs.h:5257
unsigned DeviceCode
Definition: typedefs.h:384
A SAM AV2 card is inserted.
Definition: typedefs.h:1582
The reader supports Hitag 1 and Hitag S cards as documented here.
Definition: typedefs.h:1678
Generic ISO 14443-3 Type A without ISO 7816-4 support.
Definition: typedefs.h:2802
The reader supports AES-encrypted communication with the host.
Definition: typedefs.h:1740
brp_Parity
Specifies the Parity-bit mode which is used for RS-232/UART protocols.
Definition: typedefs.h:1925
brp_VHL_Setup_FileSpecifier FileSpecifier
The method to select the file.
Definition: typedefs.h:6515
To only read the application data of the segment, use this mode.
Definition: typedefs.h:6346
Specifies a minimum of security requirements, when working in this security level.
Definition: typedefs.h:3447
References keys which are stored in reader chip memory: 32 keys (index 0..31) are available...
Definition: typedefs.h:221
bool UnexpectedRebootsLegacy
At least 1 unexpected reboot has occurred.
Definition: typedefs.h:5755
bool EM4205
EM4205/EM4305.
Definition: typedefs.h:78
HID Indala ASP.
Definition: typedefs.h:2906
The reader supports ISO 14443-4 cards as documented here.
Definition: typedefs.h:1614
size_t Path_len
Length of Path (in bytes).
Definition: typedefs.h:6531
The reader supports Indala FlexSecur cards as documented here.
Definition: typedefs.h:1662
Parity is used.
Definition: typedefs.h:1937
Select the file using an APDU command.
Definition: typedefs.h:6495
The reader supports FeliCa cards as documented here.
Definition: typedefs.h:1564
The reader can read the UID of an ISO 15693 card.
Definition: typedefs.h:1560
The reader has a SAM slot.
Definition: typedefs.h:1578
brp_Ultralight_AuthUser_CryptoMode
Sets the encryption algorithm.
Definition: typedefs.h:6032
Complete the BEC transfer and do an implicit reboot.
Definition: typedefs.h:5938
brp_Iso14b_Attrib_TR1
Minimum delay between subcarrier modulation start and beginning of data transmission.
Definition: typedefs.h:4973
brp_VHL_Setup_HasDesfireFileDesc
Definition: typedefs.h:6245
Commit will be performed when writing to address 0xFFFF.
Definition: typedefs.h:3143
LEGIC advant ISO 14443 Type A.
Definition: typedefs.h:2830
brp_Mif_SetFraming_CommMode
Defines 14443-4 communication mode for MIFARE Plus EV1 cards.
Definition: typedefs.h:5695
Handle Bytes in Most significant bit first order.
Definition: typedefs.h:252
Same as Enabled ; however, the reader will stop Autoread mode as soon as it has detected (and read) a...
Definition: typedefs.h:3305
bool RTC
The real-time clock is defective, device out of order.
Definition: typedefs.h:5868
bool HostToHostAccess
Has to be cleared to deny access to commands that allow host-to-host communication.
Definition: typedefs.h:3330
The reader will boot in Autoread mode only if its configuration contains at least 1 Autoread RFID int...
Definition: typedefs.h:3309
brp_buf NFCID
ID of label.
Definition: typedefs.h:4367
bool SingleLed
Single LED of the reader.
Definition: typedefs.h:1920
bool CryptoAccess
Has to be cleared to deny allow access to the encryption unit.
Definition: typedefs.h:3338
unsigned IsoFid
**Only needed to run VHL.Format .
Definition: typedefs.h:3238
bool Quadrakey
QuadraKey.
Definition: typedefs.h:54
HID Proximity.
Definition: typedefs.h:2914
brp_Iso14b_Attrib_FSDI
Frame Size proximity coupling Device Integer (FSDI) value.
Definition: typedefs.h:5049
To read the segment stamp , use this mode.
Definition: typedefs.h:6322
bool RtcWrite
Has to be cleared to deny write access to RTC.
Definition: typedefs.h:3358
brp_Iso14b_Request_SFGI
Start-up Frame Guard time Integer (SFGI).
Definition: typedefs.h:4775
brp_VHL_Setup_Iso15HasBlockCount
Definition: typedefs.h:6384
Enable/disable/toggle the green LED (if available).
Definition: typedefs.h:2047
The reader supports Mobile ID as documented here.
Definition: typedefs.h:1804
Combined Increment and Transfer.
Definition: typedefs.h:5624
bool ConfCardPresented
You&#39;ve run a VHL.Select command with AcceptConfCard set to true after presenting a ConfigCard to the ...
Definition: typedefs.h:5818
brp_FeatureID
Definition: typedefs.h:1506
brp_IoPort
I/O pins of the reader that can be controlled by the user.
Definition: typedefs.h:2043
The reader has a blue LED.
Definition: typedefs.h:1690
brp_Felica_Request_FastBaud
Baudrate PCD-PICC.
Definition: typedefs.h:4340
Open Supervised Standard Protocol.
Definition: typedefs.h:477
brp_Iso14b_Request_SFGI SFGI
Start-up Frame Guard time Integer (SFGI).
Definition: typedefs.h:4940
The reader supports MIFARE DESFire EV2 cards as documented here.
Definition: typedefs.h:1768
brp_KeyAccessRights_DiversificationMode
Definition: typedefs.h:694
SAM AV1 mode for all key types / one encryption round for DES keys.
Definition: typedefs.h:3950
Enable the port ID stored in the Field Param.
Definition: typedefs.h:2220
configures the pins which are usually used by the Wiegand / RawSerial /...
Definition: typedefs.h:445
HITAG 2 Manchester.
Definition: typedefs.h:2926
bool Hid
Standard Prox license:
Definition: typedefs.h:3603
bool Reverse
Swap the first byte with the last one, the second one with the next to last one and so on...
Definition: typedefs.h:343
brp_MaxBaudrateIso14443
Definition: typedefs.h:570
Increments a value block by the given value and stores the result in the Transfer Buffer...
Definition: typedefs.h:5612
Do not run Autoread at all.
Definition: typedefs.h:3290
Enable/disable/toggle the relay (if available).
Definition: typedefs.h:2059
bool HidOnlyForSE
SE Prox license:
Definition: typedefs.h:3595
unsigned brp_DesfireKeyIdx
Definition: typedefs.h:111
Commit will be performed automatically.
Definition: typedefs.h:3139
bool Display
The display of the reader is defective, device out of order.
Definition: typedefs.h:5812
brp_buf Name
The name of the DF to be selected (1..16 bytes)
Definition: typedefs.h:6519
Definition: typedefs.h:5679
Align to the left.
Definition: typedefs.h:275
Refers to a general purpose I/O.
Definition: typedefs.h:2099
For Ultralight-C authentication, a Tripple DES key has to be specified.
Definition: typedefs.h:6036
Wait exactly the amount of seconds specified in Param before going on.
Definition: typedefs.h:2236
brp_VHL_Setup_Iso15OptionFlag
Option flag value for read/write operations.
Definition: typedefs.h:6430
bool EM4100
EM4100/EM4102.
Definition: typedefs.h:74
Cancel the BEC transfer and undo all configuration changes since Sys.CfgLoadPrepare.
Definition: typedefs.h:5926
The following label commands are sent without an UID (broadcast).
Definition: typedefs.h:5274
This is a ShortCut for RepeatLoop 2.
Definition: typedefs.h:2318
ISO 14443-4 Type A compliant with ISO7816-4; this is a legacy value that is no longer returned since ...
Definition: typedefs.h:2806
brp_Desfire_AuthExtKey_SecureMessaging
Sets the secure messaging mode.
Definition: typedefs.h:3773
bool ConfigReset
Has to be cleared to deny reset configuration keys/while configuration.
Definition: typedefs.h:3402
The reader supports G-Prox cards as documented here.
Definition: typedefs.h:1674
Retrieve the state of the custom input 0.
Definition: typedefs.h:2063
The reader can read the UID of a FeliCa card.
Definition: typedefs.h:1570
LEGIC advant (ISO 14443 Type A/ISO 15693); this is a legacy value - it has been replaced by LEGICAdva...
Definition: typedefs.h:2842
bool ContainsTransitionTime
If true , this virtual LED definition contains an individual transition time, which is applied to thi...
Definition: typedefs.h:3505
Enable/disable/toggle the red LED (if available).
Definition: typedefs.h:2051
bool EnableCRC
CRC check is enabled for this fragment.
Definition: typedefs.h:176
Fido 2.1.
Definition: typedefs.h:2974
General info: The reader supports reading the PCN of HID iCLASS cards as documented here...
Definition: typedefs.h:1748
bool Send848
When this flag is set, the PICC can send data with a bit rate of up to 848 kbit/s.
Definition: typedefs.h:4881
SAM AV1 mode for all key types / one encryption round for DES keys.
Definition: typedefs.h:3922
The user has pressed a certain function key, e.g.
Definition: typedefs.h:544
unsigned DSFID
DSFID of label, only available, if DSFID bit in Mode has been set.
Definition: typedefs.h:5265
For Ultralight-EV1 password diversification (NXP AN12694), an AES key has to be specified.
Definition: typedefs.h:6040
Use this value only if the reader has 2 SAM slots, and both SAMs are different from those named above...
Definition: typedefs.h:5360
bool Send212
When this flag is set, the PICC can send data with a bit rate of up to 212 kbit/s.
Definition: typedefs.h:4889
Definition: typedefs.h:5315
Chip Card Interface Device (CCID).
Definition: typedefs.h:469
Abstract card type for reading SIO Elements.
Definition: typedefs.h:2970
Wait exactly the amount of ms specified in the field Param before going on.
Definition: typedefs.h:2232
brp_VHL_Setup_Iso15HasOptionFlag
Definition: typedefs.h:6407
LEGIC prime; this is a legacy value - it has been replaced by LEGICPrime.
Definition: typedefs.h:2838
This is a Shortcut for WaitMs 100.
Definition: typedefs.h:2374
bool ExtSamAccess
Has to be cleared to deny access to SAM over 7816-3 commands ( Iso78 command group) ...
Definition: typedefs.h:3382
bool IsDivInfoVhl
The value for diversification data can be found in VhlCfg/File/DesfireDiversificationData.
Definition: typedefs.h:677
brp_buf Path
A list of one or more 16-bit file IDs.
Definition: typedefs.h:6527
The customer key and the Config Security Code have to match for this BEC/BEC2/BF3 file or ConfigCard ...
Definition: typedefs.h:3259
Activates only the LEDs on the left side.
Definition: typedefs.h:3527
ISO 7816 compatible framing (only MIFARE Plus EV1)
Definition: typedefs.h:5703
bool SupportsRead
Definition: typedefs.h:3636
uid_len(1), card type(1) and memory size(1).
Definition: typedefs.h:5663
brp_FireEventAtPowerup
In Autoread mode this values are specifing the states that shall be assumed for input ports before re...
Definition: typedefs.h:2757
Disable the port ID of the Field Param.
Definition: typedefs.h:2224
Retrieve the state of the tamper alarm.
Definition: typedefs.h:2075
The reader supports inter-industry ISO 14443-4 cards as documented here.
Definition: typedefs.h:1618
ISO 14443-3 Type B without ISO 7816-4 support.
Definition: typedefs.h:2854
brp_Mif_AuthE2Extended_AuthLevel
Desired authentication level.
Definition: typedefs.h:5552
bool Configuration
The reader configuration is corrupted.
Definition: typedefs.h:5879
bool Secure
The key assigned to this sector shall not be taken from the VHL file.
Definition: typedefs.h:196
The reader can switch a relay.
Definition: typedefs.h:1522
Definition: typedefs.h:3608
brp_Mif_AuthUserExtended_AuthLevel
Desired authentication level.
Definition: typedefs.h:5580
unsigned Idx
Project crypto memory index within page (range 0x80..0xBF)
Definition: typedefs.h:750
Default settings (Actual behavior is usage-dependent).
Definition: typedefs.h:3247
bool ConfigWrite
Has to be cleared to deny write access to configuration keys/values.
Definition: typedefs.h:3406
bool SetKey3
Has to be cleared to deny set security key 3.
Definition: typedefs.h:3430
Farpointe Pyramid.
Definition: typedefs.h:2890
EM 4205/EM 4305.
Definition: typedefs.h:2878
brp_Alignment
This is the desired data alignment.
Definition: typedefs.h:267
A previously presented card has been removed.
Definition: typedefs.h:540
bool SetAccessConditionMask0
Has to be cleared to deny set ac 0.
Definition: typedefs.h:3426
bool SetAccessConditionMask1
Has to be cleared to deny set ac 1.
Definition: typedefs.h:3422
brp_VHL_Setup_Iso14HasFileLen
Definition: typedefs.h:6544
unsigned FileNo
The DESFire file number to access.
Definition: typedefs.h:3163
bool Send424
When this flag is set, the PICC can send data with a bit rate of up to 424 kbit/s.
Definition: typedefs.h:4885
Authenticate with Key A.
Definition: typedefs.h:5454
Authenticate with Key A.
Definition: typedefs.h:5477
unsigned TransitionTime
This field defines the transition time which is applied whenever this virtual LED is enabled...
Definition: typedefs.h:3567
The reader supports Hitag 2 Biphase cards as documented here.
Definition: typedefs.h:1686
Select the file by path, i.e.
Definition: typedefs.h:6491
bool RequireEncrypted
Commands are transferred encrypted.
Definition: typedefs.h:3455
brp_Iso14b_Request_ProtType ProtType
When this bit is set, the PICC supports ISO14443-4.
Definition: typedefs.h:4909
Definition: typedefs.h:5328
BRP protocol over HID (Human Interface Device) Protocol.
Definition: typedefs.h:415
bool Rf125kHz
The 125 kHz RFID interface of the reader is defective, device out of order.
Definition: typedefs.h:5836
bool ContainsPhysicalLedSelection
If true , this virtual LED definition contains the field PhysicalLedSelection.
Definition: typedefs.h:3514
brp_AuthReqUpload
Specifies the authentication level the BEC/BEC2/BF3 file or ConfigCard has to fulfill to be accepted...
Definition: typedefs.h:3243
brp_TemplateBitorder
This is the bit order for the CutNibbles command.
Definition: typedefs.h:244
The reader has a beeper.
Definition: typedefs.h:1518
brp_VHL_Setup_DesfireHasAppId
Definition: typedefs.h:6222
bool Khz125Part2
Scans for the following 125kHz cards: SecuraKey, G-Prox, Indala ASP+, Cotag, Idteck.
Definition: typedefs.h:3060
Refers to a general purpose I/O.
Definition: typedefs.h:2087
MIFARE Ultralight.
Definition: typedefs.h:2810
unsigned ReadKeyIdx
Index of the read key on the reader.
Definition: typedefs.h:3201
A single include header file, that includes all header files necessary for the BRP library...
bool Iso14443A
Scans for ISO 14443 Type A compatible cards, e.g.
Definition: typedefs.h:3096
bool CID
If this flag is set, the PPIC supports CID.
Definition: typedefs.h:4932
BLE HCI Protocol.
Definition: typedefs.h:481
brp_Iso14b_Request_FSCI
Frame Size proximity Card Integer (FSCI).
Definition: typedefs.h:4598
bool Rf13MHzLegic
The 13.56 Mhz RFID interface for LEGIC cards is defective, device out of order.
Definition: typedefs.h:5848
bool RightLed
LED(s) on the right side of the reader.
Definition: typedefs.h:1914
brp_Iso14b_Request_ProtType
When this bit is set, the PICC supports ISO14443-4.
Definition: typedefs.h:4656
bool RequireMac
A Cryptographic Signature is attached to every command.
Definition: typedefs.h:3459
This is a ShortCut for EnablePort GreenLed , if GreenLed is enabled otherwise DisablePort GreenLed...
Definition: typedefs.h:2294
Refers to a general purpose I/O.
Definition: typedefs.h:2103
bool SupportsIndicate
Definition: typedefs.h:3620
The initial and final port state is enabled/active/high.
Definition: typedefs.h:6115
brp_Desfire_ChangeKey_CurKeyDivMode
Specifies diversification algorithm.
Definition: typedefs.h:3946
The reader supports MIFARE Plus EV1 cards in Security Level 3 using AES authentication as documented ...
Definition: typedefs.h:1772
This is a ShortCut for EnablePort GreenLed (requires only one byte intead of 2).
Definition: typedefs.h:2254
brp_VirtualLedDefinition_PhysicalLedSelection PhysicalLedSelection
This field defines which physical LEDs are to be activated when the corresponding VLED port is enable...
Definition: typedefs.h:3559
SAM AV2 mode (AES according to NXP: AN 10922).
Definition: typedefs.h:6015
The reader supports Cotag cards as documented here.
Definition: typedefs.h:1694
The reader supports HID ioProx tags as documented here.
Definition: typedefs.h:1650
unsigned char * brp_buf
represents a pointer to a protocol data buffer.
Definition: common.h:61
brp_DesfireFileDescription_FileCommunicationSecurity FileCommunicationSecurity
Communication settings that define if data is to be MAC&#39;ed or encrypted before it&#39;s transmitted to th...
Definition: typedefs.h:3167
AES SL3 authentication.
Definition: typedefs.h:5560
bool ExtendedLED
The RGB LED features of the reader are defective.
Definition: typedefs.h:5830
This byte is required to enable additional fields for the characterization of the desired LED behavio...
Definition: typedefs.h:3501
The reader supports Bluetooth Low Energy (BLE).
Definition: typedefs.h:1784
bool RequireSessionKey
3-pass authentication and sessionkey generation
Definition: typedefs.h:3463
brp_Baudrate
The Baudrate specifies the performance of an RS-232/UART based interface in bits per second...
Definition: typedefs.h:1955
The reader supports MIFARE DESFire EV1 cards as documented here.
Definition: typedefs.h:1602
File is specified by APDU Select command that has to be executed to activate a file.
Definition: typedefs.h:127
This is a autoread protocol that sends the ID read by autoread mode via Wiegand protocol.
Definition: typedefs.h:431
The reader can read the UID of an ISO 14443 Type B card.
Definition: typedefs.h:1550
brp_Iso14a_RequestATS_FSDI
Frame Size proximity coupling Device Integer (FSDI) value.
Definition: typedefs.h:4502
brp_Desfire_ExecCommand_CryptoMode
Type of encryption.
Definition: typedefs.h:3684
More accurate info: The reader supports reading the PCN of HID iCLASS SE and Seos cards as documented...
Definition: typedefs.h:1756
bool Dataflash
The data flash chip is defective, device out of order.
Definition: typedefs.h:5874
bool Pyramid
Farpointe Pyramid.
Definition: typedefs.h:66
The reader supports Indala cards as documented here.
Definition: typedefs.h:1654
The reader supports MIFARE Classic cards and MIFARE Plus cards in Security Level 1 using MIFARE CRYPT...
Definition: typedefs.h:1594
The reader supports HID AWID tags as documented here.
Definition: typedefs.h:1642
bool NAD
If this flag is set, the PPIC supports NAD.
Definition: typedefs.h:4928
bool GProx
G-Prox.
Definition: typedefs.h:99
The reader supports IDTECK cards as documented here.
Definition: typedefs.h:1704
brp_Iso14b_Request_FWI FWI
Frame Waiting time Integer (FWI).
Definition: typedefs.h:4917
size_t Name_len
Length of Name (in bytes).
Definition: typedefs.h:6523
Refers to a general purpose I/O.
Definition: typedefs.h:2079
Definition: typedefs.h:6511
Custom Virtual LED (VLED) port.
Definition: typedefs.h:2127
bool IoPortRead
Has to be cleared to deny read access to io ports.
Definition: typedefs.h:3398
bool HidIndala
Indala ASP.
Definition: typedefs.h:50
unsigned RepeatCnt
The number of repetitions of the code block between the matching tLoop this atLoop mand...
Definition: typedefs.h:2744
Definition: typedefs.h:4863
brp_AutoRunCommand_RunMode RunMode
Definition: typedefs.h:380
Definition: typedefs.h:4363
bool SetKey2
Has to be cleared to deny set security key 2.
Definition: typedefs.h:3434
bool FirmwareVersionBlocked
The loaded firmware version is blacklisted.
Definition: typedefs.h:5770
bool LeftLed
LED(s) on the left side of the reader.
Definition: typedefs.h:1908
References keys within a SAM, only available on SAM based readers: key index from 0x00 to 0x7F...
Definition: typedefs.h:215
MIFARE Plus L2 (2k and 4k variants)
Definition: typedefs.h:2826
The reader supports LEGIC cards as documented here.
Definition: typedefs.h:1574
bool VhlSelect
Has to be cleared to deny detection of cards via VHL.
Definition: typedefs.h:3378
brp_buf CharacteristicUUID
Specifies the UUID (16 or 128 bits) of the BLE characteristic.
Definition: typedefs.h:3612
bool FlashFileSystemRead
Has to be cleared to deny read access to flash file system.
Definition: typedefs.h:3354
unsigned FirmwareID
BCD number that specifies a firmware ID.
Definition: typedefs.h:3472
Every Feature in this list can be disabled by not setting the corresponding bit.
Definition: typedefs.h:3326
brp_VHL_Setup_MifareHasAsKeyA
Definition: typedefs.h:6176
bool SetKey1
Has to be cleared to deny set security key 1.
Definition: typedefs.h:3438
The reader supports PicoPass cards as documented here.
Definition: typedefs.h:1590
bool BleLicRequired
BLE license required.
Definition: typedefs.h:3586
brp_Desfire_Authenticate_SecureMessaging
Sets the secure messaging mode.
Definition: typedefs.h:3712
Mobile ID is disabled.
Definition: typedefs.h:5726
A PIN was entered via the reader&#39;s keyboard.
Definition: typedefs.h:534
The tamper alarm was deactivated.
Definition: typedefs.h:530
brp_DesfireFileDescription_FileCommunicationSecurity
Communication settings that define if data is to be MAC&#39;ed or encrypted before it&#39;s transmitted to th...
Definition: typedefs.h:3101
The following label commands are sent including the UID given in UID.
Definition: typedefs.h:5278
unsigned WriteKeyNo
WriteKeyNo , i.e.
Definition: typedefs.h:3185
unsigned SmallestBlockedFwVersionBuild
Binary that specifies the build number of the smallest blocked fw version.
Definition: typedefs.h:3484
Activates only the LEDs on the right side.
Definition: typedefs.h:3523
The reader supports HID Prox32 tags as documented here.
Definition: typedefs.h:1638
The debug interface may be used to look into the readers internals via a Terminal.
Definition: typedefs.h:423
brp_DesfireFileDescription_FileType FileType
Type of file to read.
Definition: typedefs.h:3173
Custom Virtual LED (VLED) port.
Definition: typedefs.h:2111
The reader supports HID Prox tags as documented here.
Definition: typedefs.h:1646
Indicates that the reader is connected to an IF Converter that connects to a server via Ethernet as H...
Definition: typedefs.h:485
The reader has an RGB LED that is customizable to a limited extend.
Definition: typedefs.h:1792
ISO 14443-4 Type B with ISO 7816-4 support.
Definition: typedefs.h:2858
unsigned Offset
Number of the first byte in the DESFire file to map into the VHL file.
Definition: typedefs.h:3189
brp_VirtualLedDefinition_PhysicalLedSelection
This field defines which physical LEDs are to be activated when the corresponding VLED port is enable...
Definition: typedefs.h:3519
bool Tamper
The tamper alarm is defective.
Definition: typedefs.h:5788
MIFARE DESFire (2k, 4k, and 8k variants)
Definition: typedefs.h:2814
size_t CharacteristicUUID_len
Length of CharacteristicUUID (in bytes).
Definition: typedefs.h:3616
The reader has a tamper alarm.
Definition: typedefs.h:1708
brp_DesfireFileDescription_FileType
Type of file to read.
Definition: typedefs.h:3131
BRP protocol over TCP/IP.
Definition: typedefs.h:419
unsigned AccessRightsLowByte
**Only needed to run VHL.Format .
Definition: typedefs.h:3216
bool StampSearch
Use Stamp search to identify the desired segment.
Definition: typedefs.h:165
The reader supports the Bluetooth Host Controller Interface (HCI).
Definition: typedefs.h:1812
brp_Iso14L4_SetupAPDU_FWI
Frame Waiting time Integer (FWI).
Definition: typedefs.h:5169