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-40300"
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 {
492 static inline bool brp_ProtocolID_is_valid(int val) {
493  switch (val) {
494  case 0: /* All*/
495  case 3: /* BrpSerial*/
496  case 4: /* BrpRs485*/
497  case 5: /* BrpHid*/
498  case 9: /* DebugInterface*/
499  case 16: /* Snet*/
500  case 17: /* Bpa9*/
501  case 32: /* Wiegand*/
502  case 33: /* Omron*/
503  case 34: /* ClkData*/
504  case 35: /* RawSerial*/
505  case 36: /* LowLevelIoPorts*/
506  case 40: /* HttpsClient*/
507  case 41: /* Papercut*/
508  case 43: /* KeyboardEmulation*/
509  case 50: /* LBus*/
510  case 54: /* Ccid*/
511  case 55: /* RawSerial2*/
512  case 56: /* Osdp*/
513  case 59: /* BleHci*/
514  case 134: /* BrpTcp*/
515  return true;
516  default:
517  return false;
518  }
519 }
523 typedef enum {
558 static inline bool brp_MessageType_is_valid(int val) {
559  switch (val) {
560  case 0: /* Card*/
561  case 1: /* AlarmOn*/
562  case 2: /* AlarmOff*/
563  case 3: /* Keyboard*/
564  case 4: /* CardRemoval*/
565  case 5: /* FunctionKey*/
566  case 6: /* Logs*/
567  return true;
568  default:
569  return false;
570  }
571 }
575 typedef enum {
642 static inline bool brp_MaxBaudrateIso14443_is_valid(int val) {
643  switch (val) {
644  case 0: /* Dri106Dsi106*/
645  case 1: /* Dri212Dsi106*/
646  case 2: /* Dri424Dsi106*/
647  case 3: /* Dri848Dsi106*/
648  case 4: /* Dri106Dsi212*/
649  case 5: /* Dri212Dsi212*/
650  case 6: /* Dri424Dsi212*/
651  case 7: /* Dri848Dsi212*/
652  case 8: /* Dri106Dsi424*/
653  case 9: /* Dri212Dsi424*/
654  case 10: /* Dri424Dsi424*/
655  case 11: /* Dri848Dsi424*/
656  case 12: /* Dri106Dsi848*/
657  case 13: /* Dri212Dsi848*/
658  case 14: /* Dri424Dsi848*/
659  case 15: /* Dri848Dsi848*/
660  return true;
661  default:
662  return false;
663  }
664 }
670 typedef struct {
674  bool IsVersion;
678  bool IsDivInfo;
690  bool DenyWrite;
694  bool DenyRead;
699 typedef enum {
710 static inline bool brp_KeyAccessRights_DiversificationMode_is_valid(int val) {
711  switch (val) {
712  case 0: /* NoDiversification*/
713  case 2: /* ModeAv2*/
714  return true;
715  default:
716  return false;
717  }
718 }
722 typedef struct {
732  unsigned Version;
742  unsigned DivIdx;
747 typedef struct {
751  unsigned Page;
755  unsigned Idx;
760 typedef enum {
783 static inline bool brp_CryptoAlgorithm_is_valid(int val) {
784  switch (val) {
785  case 1: /* DES*/
786  case 2: /* TripleDES*/
787  case 3: /* ThreeKeyTripleDES*/
788  case 4: /* AES*/
789  case 5: /* MifareClassic*/
790  return true;
791  default:
792  return false;
793  }
794 }
795 #ifdef BALTECH_SDK_INTERNAL
796 
799 typedef enum {
803  brp_DHWCtrlGpioPort_A = 0,
807  brp_DHWCtrlGpioPort_B = 1,
811  brp_DHWCtrlGpioPort_C = 2,
815  brp_DHWCtrlGpioPort_D = 3,
819  brp_DHWCtrlGpioPort_E = 4,
823  brp_DHWCtrlGpioPort_F = 5,
827  brp_DHWCtrlGpioPort_G = 6,
831  brp_DHWCtrlGpioPort_H = 7,
835  brp_DHWCtrlGpioPort_I = 8,
839  brp_DHWCtrlGpioPort_J = 9,
843  brp_DHWCtrlGpioPort_K = 10,
847  brp_DHWCtrlGpioPort_L = 11,
851  brp_DHWCtrlGpioPort_M = 12,
855  brp_DHWCtrlGpioPort_N = 13,
859  brp_DHWCtrlGpioPort_O = 14,
863  brp_DHWCtrlGpioPort_P = 15,
867  brp_DHWCtrlGpioPort_Q = 16,
871  brp_DHWCtrlGpioPort_R = 17,
875  brp_DHWCtrlGpioPort_S = 18,
879  brp_DHWCtrlGpioPort_T = 19,
883  brp_DHWCtrlGpioPort_U = 20,
887  brp_DHWCtrlGpioPort_V = 21,
891  brp_DHWCtrlGpioPort_W = 22,
895  brp_DHWCtrlGpioPort_X = 23,
899  brp_DHWCtrlGpioPort_Y = 24,
903  brp_DHWCtrlGpioPort_Z = 25,
904  brp_DHWCtrlGpioPort_undefined = -1
905 } brp_DHWCtrlGpioPort;
906 static inline bool brp_DHWCtrlGpioPort_is_valid(int val) {
907  switch (val) {
908  case 0: /* A*/
909  case 1: /* B*/
910  case 2: /* C*/
911  case 3: /* D*/
912  case 4: /* E*/
913  case 5: /* F*/
914  case 6: /* G*/
915  case 7: /* H*/
916  case 8: /* I*/
917  case 9: /* J*/
918  case 10: /* K*/
919  case 11: /* L*/
920  case 12: /* M*/
921  case 13: /* N*/
922  case 14: /* O*/
923  case 15: /* P*/
924  case 16: /* Q*/
925  case 17: /* R*/
926  case 18: /* S*/
927  case 19: /* T*/
928  case 20: /* U*/
929  case 21: /* V*/
930  case 22: /* W*/
931  case 23: /* X*/
932  case 24: /* Y*/
933  case 25: /* Z*/
934  return true;
935  default:
936  return false;
937  }
938 }
942 typedef struct {
948  brp_DHWCtrlGpioPort Port;
952  unsigned Number;
953 } brp_DHWCtrlGpioPin;
957 typedef enum {
961  brp_DHWCtrlPinName_SpiSck = 0,
965  brp_DHWCtrlPinName_SpiMosi = 1,
969  brp_DHWCtrlPinName_SpiMiso = 2,
973  brp_DHWCtrlPinName_EthTxd0 = 16,
977  brp_DHWCtrlPinName_EthTxd1 = 17,
981  brp_DHWCtrlPinName_EthTxEn = 18,
985  brp_DHWCtrlPinName_EthRxd0 = 19,
989  brp_DHWCtrlPinName_EthRxd1 = 20,
993  brp_DHWCtrlPinName_EthCrsDv = 21,
997  brp_DHWCtrlPinName_EthRefClk = 22,
1001  brp_DHWCtrlPinName_EthMdc = 23,
1005  brp_DHWCtrlPinName_EthMdio = 24,
1009  brp_DHWCtrlPinName_SdmmcClk = 48,
1013  brp_DHWCtrlPinName_SdmmcCmd = 49,
1017  brp_DHWCtrlPinName_SdmmcDat0 = 50,
1021  brp_DHWCtrlPinName_SdmmcDat1 = 51,
1025  brp_DHWCtrlPinName_SdmmcDat2 = 52,
1029  brp_DHWCtrlPinName_SdmmcDat3 = 53,
1033  brp_DHWCtrlPinName_SdmmcDat4 = 54,
1037  brp_DHWCtrlPinName_SdmmcDat5 = 55,
1041  brp_DHWCtrlPinName_SdmmcDat6 = 56,
1045  brp_DHWCtrlPinName_SdmmcDat7 = 57,
1049  brp_DHWCtrlPinName_UsbDp = 64,
1053  brp_DHWCtrlPinName_UsbDm = 65,
1054  brp_DHWCtrlPinName_undefined = -1
1055 } brp_DHWCtrlPinName;
1056 static inline bool brp_DHWCtrlPinName_is_valid(int val) {
1057  switch (val) {
1058  case 0: /* SpiSck*/
1059  case 1: /* SpiMosi*/
1060  case 2: /* SpiMiso*/
1061  case 16: /* EthTxd0*/
1062  case 17: /* EthTxd1*/
1063  case 18: /* EthTxEn*/
1064  case 19: /* EthRxd0*/
1065  case 20: /* EthRxd1*/
1066  case 21: /* EthCrsDv*/
1067  case 22: /* EthRefClk*/
1068  case 23: /* EthMdc*/
1069  case 24: /* EthMdio*/
1070  case 48: /* SdmmcClk*/
1071  case 49: /* SdmmcCmd*/
1072  case 50: /* SdmmcDat0*/
1073  case 51: /* SdmmcDat1*/
1074  case 52: /* SdmmcDat2*/
1075  case 53: /* SdmmcDat3*/
1076  case 54: /* SdmmcDat4*/
1077  case 55: /* SdmmcDat5*/
1078  case 56: /* SdmmcDat6*/
1079  case 57: /* SdmmcDat7*/
1080  case 64: /* UsbDp*/
1081  case 65: /* UsbDm*/
1082  return true;
1083  default:
1084  return false;
1085  }
1086 }
1090 typedef struct {
1096  brp_DHWCtrlPinName Name;
1102  brp_DHWCtrlGpioPin Pin;
1103 } brp_DHWCtrlPinMapEntry;
1107 typedef enum {
1111  brp_DHWCtrlPeripheralCategory_Eth = 0,
1115  brp_DHWCtrlPeripheralCategory_UsbHost = 32,
1119  brp_DHWCtrlPeripheralCategory_Flash = 48,
1123  brp_DHWCtrlPeripheralCategory_Spi = 64,
1124  brp_DHWCtrlPeripheralCategory_undefined = -1
1125 } brp_DHWCtrlPeripheralCategory;
1126 static inline bool brp_DHWCtrlPeripheralCategory_is_valid(int val) {
1127  switch (val) {
1128  case 0: /* Eth*/
1129  case 32: /* UsbHost*/
1130  case 48: /* Flash*/
1131  case 64: /* Spi*/
1132  return true;
1133  default:
1134  return false;
1135  }
1136 }
1140 typedef enum {
1144  brp_DHWCtrlGpioLevel_Low = 0,
1148  brp_DHWCtrlGpioLevel_High = 1,
1149  brp_DHWCtrlGpioLevel_undefined = -1
1150 } brp_DHWCtrlGpioLevel;
1151 static inline bool brp_DHWCtrlGpioLevel_is_valid(int val) {
1152  switch (val) {
1153  case 0: /* Low*/
1154  case 1: /* High*/
1155  return true;
1156  default:
1157  return false;
1158  }
1159 }
1163 typedef enum {
1167  brp_DHWCtrlUsbPortState_Disconnected = 0,
1171  brp_DHWCtrlUsbPortState_Connected = 1,
1172  brp_DHWCtrlUsbPortState_undefined = -1
1173 } brp_DHWCtrlUsbPortState;
1174 static inline bool brp_DHWCtrlUsbPortState_is_valid(int val) {
1175  switch (val) {
1176  case 0: /* Disconnected*/
1177  case 1: /* Connected*/
1178  return true;
1179  default:
1180  return false;
1181  }
1182 }
1186 typedef enum {
1190  brp_DHWCtrlUsbTransferAttr_Bulk = 0,
1194  brp_DHWCtrlUsbTransferAttr_Interrupt = 1,
1198  brp_DHWCtrlUsbTransferAttr_Iso = 2,
1199  brp_DHWCtrlUsbTransferAttr_undefined = -1
1200 } brp_DHWCtrlUsbTransferAttr;
1201 static inline bool brp_DHWCtrlUsbTransferAttr_is_valid(int val) {
1202  switch (val) {
1203  case 0: /* Bulk*/
1204  case 1: /* Interrupt*/
1205  case 2: /* Iso*/
1206  return true;
1207  default:
1208  return false;
1209  }
1210 }
1214 typedef enum {
1218  brp_DHWCtrlEthLinkState_Down = 0,
1222  brp_DHWCtrlEthLinkState_Up = 1,
1223  brp_DHWCtrlEthLinkState_undefined = -1
1224 } brp_DHWCtrlEthLinkState;
1225 static inline bool brp_DHWCtrlEthLinkState_is_valid(int val) {
1226  switch (val) {
1227  case 0: /* Down*/
1228  case 1: /* Up*/
1229  return true;
1230  default:
1231  return false;
1232  }
1233 }
1237 typedef enum {
1241  brp_DHWCtrlEtherType_IPv4 = 2048,
1245  brp_DHWCtrlEtherType_ARP = 2054,
1249  brp_DHWCtrlEtherType_ReverseARP = 32821,
1253  brp_DHWCtrlEtherType_IPv6 = 34525,
1257  brp_DHWCtrlEtherType_VlanTagged = 33024,
1261  brp_DHWCtrlEtherType_ServiceVlanTagged = 34984,
1265  brp_DHWCtrlEtherType_LACP = 34825,
1269  brp_DHWCtrlEtherType_MplsUnicast = 34887,
1273  brp_DHWCtrlEtherType_MplsMulticast = 34888,
1277  brp_DHWCtrlEtherType_LLDP = 35020,
1281  brp_DHWCtrlEtherType_MACsec = 35045,
1285  brp_DHWCtrlEtherType_Loopback = 36864,
1286  brp_DHWCtrlEtherType_undefined = -1
1287 } brp_DHWCtrlEtherType;
1288 static inline bool brp_DHWCtrlEtherType_is_valid(int val) {
1289  switch (val) {
1290  case 2048: /* IPv4*/
1291  case 2054: /* ARP*/
1292  case 32821: /* ReverseARP*/
1293  case 33024: /* VlanTagged*/
1294  case 34525: /* IPv6*/
1295  case 34825: /* LACP*/
1296  case 34887: /* MplsUnicast*/
1297  case 34888: /* MplsMulticast*/
1298  case 34984: /* ServiceVlanTagged*/
1299  case 35020: /* LLDP*/
1300  case 35045: /* MACsec*/
1301  case 36864: /* Loopback*/
1302  return true;
1303  default:
1304  return false;
1305  }
1306 }
1310 typedef enum {
1314  brp_DHWCtrlSpiSettings_Cpol_IdleLow = 0,
1318  brp_DHWCtrlSpiSettings_Cpol_IdleHigh = 1,
1319  brp_DHWCtrlSpiSettings_Cpol_undefined = -1
1320 } brp_DHWCtrlSpiSettings_Cpol;
1321 static inline bool brp_DHWCtrlSpiSettings_Cpol_is_valid(int val) {
1322  switch (val) {
1323  case 0: /* IdleLow*/
1324  case 1: /* IdleHigh*/
1325  return true;
1326  default:
1327  return false;
1328  }
1329 }
1333 typedef enum {
1337  brp_DHWCtrlSpiSettings_Cpha_SampleOnFirstEdge = 0,
1341  brp_DHWCtrlSpiSettings_Cpha_SampleOnSecondEdge = 1,
1342  brp_DHWCtrlSpiSettings_Cpha_undefined = -1
1343 } brp_DHWCtrlSpiSettings_Cpha;
1344 static inline bool brp_DHWCtrlSpiSettings_Cpha_is_valid(int val) {
1345  switch (val) {
1346  case 0: /* SampleOnFirstEdge*/
1347  case 1: /* SampleOnSecondEdge*/
1348  return true;
1349  default:
1350  return false;
1351  }
1352 }
1356 typedef enum {
1360  brp_DHWCtrlSpiSettings_BitOrder_MsbFirst = 0,
1364  brp_DHWCtrlSpiSettings_BitOrder_LsbFirst = 1,
1365  brp_DHWCtrlSpiSettings_BitOrder_undefined = -1
1366 } brp_DHWCtrlSpiSettings_BitOrder;
1367 static inline bool brp_DHWCtrlSpiSettings_BitOrder_is_valid(int val) {
1368  switch (val) {
1369  case 0: /* MsbFirst*/
1370  case 1: /* LsbFirst*/
1371  return true;
1372  default:
1373  return false;
1374  }
1375 }
1379 typedef struct {
1383  unsigned ClockHz;
1387  brp_DHWCtrlSpiSettings_Cpol Cpol;
1391  brp_DHWCtrlSpiSettings_Cpha Cpha;
1395  brp_DHWCtrlSpiSettings_BitOrder BitOrder;
1396 } brp_DHWCtrlSpiSettings;
1397 #endif // BALTECH_SDK_INTERNAL
1398 
1403 typedef enum {
1422 static inline bool brp_DivisorInteger_is_valid(int val) {
1423  switch (val) {
1424  case 0: /* Kbps106*/
1425  case 1: /* Kbps212*/
1426  case 2: /* Kbps424*/
1427  case 3: /* Kbps848*/
1428  return true;
1429  default:
1430  return false;
1431  }
1432 }
1433 #ifdef BALTECH_SDK_INTERNAL
1434 
1437 typedef unsigned brp_Time;
1441 typedef struct {
1445  bool Gpio7;
1449  bool Gpio6;
1453  bool Gpio5;
1457  bool Gpio4;
1461  bool Gpio3;
1465  bool Gpio2;
1469  bool Gpio1;
1473  bool Gpio0;
1477  bool TamperAlarm;
1481  bool BlueLed;
1485  bool Input1;
1489  bool Input0;
1493  bool Relay;
1497  bool Beeper;
1501  bool RedLed;
1505  bool GreenLed;
1506 } brp_IoPortBitmask;
1507 #endif // BALTECH_SDK_INTERNAL
1508 
1511 typedef enum {
1823 } brp_FeatureID;
1824 static inline bool brp_FeatureID_is_valid(int val) {
1825  switch (val) {
1826  case 1: /* GreenLed*/
1827  case 2: /* RedLed*/
1828  case 3: /* Beeper*/
1829  case 4: /* Relay*/
1830  case 5: /* MHz13*/
1831  case 6: /* Khz125*/
1832  case 7: /* Iso14443A*/
1833  case 8: /* Iso14443AUidOnly*/
1834  case 9: /* Iso14443B*/
1835  case 10: /* Iso14443BUidOnly*/
1836  case 11: /* Iso15693*/
1837  case 12: /* Iso15693UidOnly*/
1838  case 13: /* Felica*/
1839  case 14: /* FelicaUidOnly*/
1840  case 15: /* Legic*/
1841  case 16: /* Sam*/
1842  case 17: /* SamAv2*/
1843  case 18: /* SamHid*/
1844  case 19: /* Picopass*/
1845  case 35: /* MifareClassic*/
1846  case 36: /* MifarePlusEv0*/
1847  case 37: /* MifareDESFireEv1*/
1848  case 38: /* Srix*/
1849  case 39: /* Jewel*/
1850  case 40: /* ISO14443L4*/
1851  case 41: /* InterIndustry*/
1852  case 42: /* EM4205*/
1853  case 43: /* EM4100*/
1854  case 44: /* EM4450*/
1855  case 45: /* FarpointePyramid*/
1856  case 46: /* HidProx32*/
1857  case 47: /* HidAwid*/
1858  case 48: /* HidProx*/
1859  case 49: /* HidIoProx*/
1860  case 50: /* Indala*/
1861  case 51: /* Keri*/
1862  case 52: /* IndalaSecure*/
1863  case 53: /* Quadrakey*/
1864  case 54: /* SecuraKey*/
1865  case 55: /* GProx*/
1866  case 56: /* Hitag1S*/
1867  case 57: /* Hitag2M*/
1868  case 58: /* Hitag2B*/
1869  case 59: /* BlueLed*/
1870  case 60: /* Cotag*/
1871  case 61: /* PicopassUidOnly*/
1872  case 62: /* IdTeck*/
1873  case 63: /* Tamper*/
1874  case 64: /* MaxHfBaudrate106kbps*/
1875  case 65: /* MaxHfBaudrate212kbps*/
1876  case 66: /* MaxHfBaudrate424kbps*/
1877  case 67: /* FirmwareLoader*/
1878  case 68: /* FwUploadViaBrpOverSer*/
1879  case 69: /* AesHostProtocolEncryption*/
1880  case 70: /* PkiHostProtocolEncryption*/
1881  case 71: /* HidIClass*/
1882  case 72: /* HidIClassSr*/
1883  case 73: /* HidIClassSeAndSeos*/
1884  case 74: /* MifareUltralight*/
1885  case 75: /* CardEmulationISO14443L4*/
1886  case 76: /* MifareDESFireEv2*/
1887  case 77: /* MifarePlusEv1*/
1888  case 78: /* SamAv3*/
1889  case 79: /* OsdpV217*/
1890  case 80: /* Bluetooth*/
1891  case 81: /* RgbLed*/
1892  case 82: /* RgbLedLimited*/
1893  case 83: /* Bec2Upload*/
1894  case 84: /* MifareDESFireEv3*/
1895  case 85: /* MobileId*/
1896  case 86: /* MobileCardEmulation*/
1897  case 87: /* BleHci*/
1898  case 88: /* BlePeripheral*/
1899  return true;
1900  default:
1901  return false;
1902  }
1903 }
1907 typedef struct {
1913  bool LeftLed;
1919  bool RightLed;
1926 } brp_LedBitMask;
1930 typedef enum {
1944 } brp_Parity;
1945 static inline bool brp_Parity_is_valid(int val) {
1946  switch (val) {
1947  case 69: /* Even*/
1948  case 78: /* None_*/
1949  case 79: /* Odd*/
1950  return true;
1951  default:
1952  return false;
1953  }
1954 }
1960 typedef enum {
2022 } brp_Baudrate;
2023 static inline bool brp_Baudrate_is_valid(int val) {
2024  switch (val) {
2025  case 3: /* Baud300*/
2026  case 6: /* Baud600*/
2027  case 12: /* Baud1200*/
2028  case 24: /* Baud2400*/
2029  case 48: /* Baud4800*/
2030  case 96: /* Baud9600*/
2031  case 144: /* Baud14400*/
2032  case 192: /* Baud19200*/
2033  case 288: /* Baud28800*/
2034  case 384: /* Baud38400*/
2035  case 576: /* Baud57600*/
2036  case 1152: /* Baud115200*/
2037  case 5000: /* Baud500000*/
2038  case 5760: /* Baud576000*/
2039  case 9216: /* Baud921600*/
2040  return true;
2041  default:
2042  return false;
2043  }
2044 }
2048 typedef enum {
2178 } brp_IoPort;
2179 static inline bool brp_IoPort_is_valid(int val) {
2180  switch (val) {
2181  case 0: /* GreenLed*/
2182  case 1: /* RedLed*/
2183  case 2: /* Beeper*/
2184  case 3: /* Relay*/
2185  case 4: /* Input0*/
2186  case 5: /* Input1*/
2187  case 6: /* BlueLed*/
2188  case 7: /* TamperAlarm*/
2189  case 8: /* Gpio0*/
2190  case 9: /* Gpio1*/
2191  case 10: /* Gpio2*/
2192  case 11: /* Gpio3*/
2193  case 12: /* Gpio4*/
2194  case 13: /* Gpio5*/
2195  case 14: /* Gpio6*/
2196  case 15: /* Gpio7*/
2197  case 64: /* CustomVled0*/
2198  case 65: /* CustomVled1*/
2199  case 66: /* CustomVled2*/
2200  case 67: /* CustomVled3*/
2201  case 68: /* CustomVled4*/
2202  case 69: /* CustomVled5*/
2203  case 70: /* CustomVled6*/
2204  case 71: /* CustomVled7*/
2205  case 72: /* CustomVled8*/
2206  case 73: /* CustomVled9*/
2207  case 74: /* CustomVled10*/
2208  case 75: /* CustomVled11*/
2209  case 76: /* CustomVled12*/
2210  case 77: /* CustomVled13*/
2211  case 78: /* CustomVled14*/
2212  case 79: /* CustomVled15*/
2213  return true;
2214  default:
2215  return false;
2216  }
2217 }
2221 typedef enum {
2630 static inline bool brp_RunSequenceCmd_CmdCode_is_valid(int val) {
2631  switch (val) {
2632  case 1: /* EnablePort*/
2633  case 2: /* DisablePort*/
2634  case 5: /* RepeatLoop*/
2635  case 8: /* WaitMs*/
2636  case 9: /* WaitSec*/
2637  case 16: /* EnablePortGreenLed*/
2638  case 17: /* EnablePortRedLed*/
2639  case 18: /* EnablePortBeeper*/
2640  case 19: /* EnablePortRelay*/
2641  case 22: /* EnablePortBlue*/
2642  case 32: /* DisablePortGreenLed*/
2643  case 33: /* DisablePortRedLed*/
2644  case 34: /* DisablePortBeeper*/
2645  case 35: /* DisablePortRelay*/
2646  case 38: /* DisablePortBlue*/
2647  case 48: /* InvertPortGreenLed*/
2648  case 49: /* InvertPortRedLed*/
2649  case 50: /* InvertPortBeeper*/
2650  case 51: /* InvertPortRelay*/
2651  case 54: /* InvertPortBlue*/
2652  case 81: /* Repeat1Times*/
2653  case 82: /* RepeatLoop2Times*/
2654  case 83: /* RepeatLoop3Times*/
2655  case 84: /* RepeatLoop4Times*/
2656  case 85: /* RepeatLoop5Times*/
2657  case 86: /* RepeatLoop6Times*/
2658  case 87: /* RepeatLoop7Times*/
2659  case 88: /* RepeatLoop8Times*/
2660  case 89: /* RepeatLoop9Times*/
2661  case 90: /* RepeatLoop10Times*/
2662  case 91: /* RepeatLoop11Times*/
2663  case 92: /* RepeatLoop12Times*/
2664  case 93: /* RepeatLoop13Times*/
2665  case 94: /* RepeatLoop14Times*/
2666  case 95: /* RepeatLoop15Times*/
2667  case 129: /* Wait100Ms*/
2668  case 130: /* Wait200Ms*/
2669  case 131: /* Wait300Ms*/
2670  case 132: /* Wait400Ms*/
2671  case 133: /* Wait500Ms*/
2672  case 134: /* Wait600Ms*/
2673  case 135: /* Wait700Ms*/
2674  case 136: /* Wait800Ms*/
2675  case 137: /* Wait900Ms*/
2676  case 138: /* Wait1000Ms*/
2677  case 139: /* Wait1100Ms*/
2678  case 140: /* Wait1200Ms*/
2679  case 141: /* Wait1300Ms*/
2680  case 142: /* Wait1400Ms*/
2681  case 143: /* Wait1500Ms*/
2682  case 144: /* Wait1600Ms*/
2683  case 145: /* Wait1700Ms*/
2684  case 146: /* Wait1800Ms*/
2685  case 147: /* Wait1900Ms*/
2686  case 148: /* Wait2000Ms*/
2687  case 149: /* Wait2100Ms*/
2688  case 150: /* Wait2200Ms*/
2689  case 151: /* Wait2300Ms*/
2690  case 152: /* Wait2400Ms*/
2691  case 153: /* Wait2500Ms*/
2692  case 154: /* Wait2600Ms*/
2693  case 155: /* Wait2700Ms*/
2694  case 156: /* Wait2800Ms*/
2695  case 157: /* Wait2900Ms*/
2696  case 158: /* Wait3000Ms*/
2697  case 159: /* Wait3100Ms*/
2698  case 160: /* Wait3200Ms*/
2699  case 161: /* Wait3300Ms*/
2700  case 162: /* Wait3400Ms*/
2701  case 163: /* Wait3500Ms*/
2702  case 164: /* Wait3600Ms*/
2703  case 165: /* Wait3700Ms*/
2704  case 166: /* Wait3800Ms*/
2705  case 167: /* Wait3900Ms*/
2706  case 168: /* Wait4000Ms*/
2707  case 169: /* Wait4100Ms*/
2708  case 170: /* Wait4200Ms*/
2709  case 171: /* Wait4300Ms*/
2710  case 172: /* Wait4400Ms*/
2711  case 173: /* Wait4500Ms*/
2712  case 174: /* Wait4600Ms*/
2713  case 175: /* Wait4700Ms*/
2714  case 176: /* Wait4800Ms*/
2715  case 177: /* Wait4900Ms*/
2716  case 178: /* Wait5000Ms*/
2717  case 179: /* Wait5100Ms*/
2718  case 180: /* Wait5200Ms*/
2719  case 181: /* Wait5300Ms*/
2720  case 182: /* Wait5400Ms*/
2721  case 183: /* Wait5500Ms*/
2722  case 184: /* Wait5600Ms*/
2723  case 185: /* Wait5700Ms*/
2724  case 186: /* Wait5800Ms*/
2725  case 187: /* Wait5900Ms*/
2726  case 188: /* Wait6000Ms*/
2727  case 189: /* Wait6100Ms*/
2728  case 190: /* Wait6200Ms*/
2729  case 191: /* Wait6300Ms*/
2730  case 241: /* EndOfSequence*/
2731  case 242: /* StartLoop*/
2732  case 243: /* OnStop*/
2733  return true;
2734  default:
2735  return false;
2736  }
2737 }
2741 typedef struct {
2749  unsigned RepeatCnt;
2753  unsigned Param;
2762 typedef enum {
2781 static inline bool brp_FireEventAtPowerup_is_valid(int val) {
2782  switch (val) {
2783  case 0: /* Never*/
2784  case 1: /* IfClear*/
2785  case 2: /* IfSet*/
2786  case 3: /* Always*/
2787  return true;
2788  default:
2789  return false;
2790  }
2791 }
2795 typedef enum {
2993 } brp_CardType;
2994 static inline bool brp_CardType_is_valid(int val) {
2995  switch (val) {
2996  case 0: /* Default*/
2997  case 16: /* MifareClassic*/
2998  case 17: /* Iso14443aGeneric*/
2999  case 18: /* Iso14443aInterIndustryLegacy*/
3000  case 19: /* MifareUltraLight*/
3001  case 20: /* MifareDesfire*/
3002  case 21: /* InfineonSle55*/
3003  case 22: /* Iso14443aIntIndustry*/
3004  case 23: /* MifarePlusL2*/
3005  case 24: /* LEGICAdvantIso14443a*/
3006  case 25: /* MifarePlusL3*/
3007  case 32: /* LEGICPrimeLegacy*/
3008  case 33: /* LEGICAdvantLegacy*/
3009  case 48: /* Iso15693*/
3010  case 50: /* LEGICAdvantIso15693*/
3011  case 64: /* Iso14443bUnknown*/
3012  case 65: /* Iso14443bIntIndustry*/
3013  case 66: /* IClassIso14B*/
3014  case 80: /* IClassIso14B2*/
3015  case 96: /* IClass*/
3016  case 112: /* Felica*/
3017  case 128: /* EM4205*/
3018  case 129: /* EM4100*/
3019  case 131: /* EM4450*/
3020  case 132: /* Pyramid*/
3021  case 133: /* HidProx32*/
3022  case 134: /* Keri*/
3023  case 135: /* Quadrakey*/
3024  case 136: /* HidIndala*/
3025  case 137: /* HidAwid*/
3026  case 138: /* HidProx*/
3027  case 139: /* HidIoprox*/
3028  case 140: /* Hitag1S*/
3029  case 141: /* Hitag2M*/
3030  case 142: /* Hitag2B*/
3031  case 143: /* TTF*/
3032  case 144: /* STSRIX*/
3033  case 160: /* SecuraKey*/
3034  case 161: /* GProx*/
3035  case 162: /* HidIndalaSecure*/
3036  case 163: /* Cotag*/
3037  case 164: /* Idteck*/
3038  case 176: /* BluetoothMce*/
3039  case 192: /* LEGICPrime*/
3040  case 224: /* HidSio*/
3041  case 228: /* Fido*/
3042  case 229: /* Piv*/
3043  case 230: /* DesfireForLegic*/
3044  case 231: /* LEGICNeon*/
3045  return true;
3046  default:
3047  return false;
3048  }
3049 }
3053 typedef struct {
3069  bool Srix;
3077  bool Felica;
3083  bool IClass;
3097  bool Iso15693;
3106 typedef enum {
3121 static inline bool brp_DesfireFileDescription_FileCommunicationSecurity_is_valid(int val) {
3122  switch (val) {
3123  case 0: /* Plain*/
3124  case 1: /* Mac*/
3125  case 3: /* Encrypted*/
3126  return true;
3127  default:
3128  return false;
3129  }
3130 }
3136 typedef enum {
3151 static inline bool brp_DesfireFileDescription_FileType_is_valid(int val) {
3152  switch (val) {
3153  case 0: /* Standard*/
3154  case 1: /* Backup*/
3155  case 2: /* BackupManualCommit*/
3156  return true;
3157  default:
3158  return false;
3159  }
3160 }
3164 typedef struct {
3168  unsigned FileNo;
3184  unsigned ReadKeyNo;
3190  unsigned WriteKeyNo;
3194  unsigned Offset;
3198  unsigned Length;
3206  unsigned ReadKeyIdx;
3215  unsigned WriteKeyIdx;
3231  unsigned ChangeKeyIdx;
3237  unsigned FileSize;
3243  unsigned IsoFid;
3248 typedef enum {
3275 static inline bool brp_AuthReqUpload_is_valid(int val) {
3276  switch (val) {
3277  case 0: /* Default*/
3278  case 1: /* None_*/
3279  case 2: /* CustomerKey*/
3280  case 3: /* ConfigSecurityCode*/
3281  case 4: /* Version*/
3282  case 5: /* GreaterVersion*/
3283  return true;
3284  default:
3285  return false;
3286  }
3287 }
3291 typedef enum {
3317 static inline bool brp_AutoReadMode_is_valid(int val) {
3318  switch (val) {
3319  case 0: /* Disabled*/
3320  case 1: /* Enabled*/
3321  case 2: /* EnableOnce*/
3322  case 255: /* EnableIfDefinedRules*/
3323  return true;
3324  default:
3325  return false;
3326  }
3327 }
3331 typedef struct {
3363  bool RtcWrite;
3375  bool VhlWrite;
3379  bool VhlRead;
3419  bool SysReset;
3435  bool SetKey3;
3439  bool SetKey2;
3443  bool SetKey1;
3452 typedef struct {
3473 typedef struct {
3477  unsigned FirmwareID;
3506 typedef struct {
3514  bool IsPulse;
3524 typedef enum {
3539 static inline bool brp_VirtualLedDefinition_PhysicalLedSelection_is_valid(int val) {
3540  switch (val) {
3541  case 1: /* Right*/
3542  case 2: /* Left*/
3543  case 3: /* All*/
3544  return true;
3545  default:
3546  return false;
3547  }
3548 }
3552 typedef struct {
3560  unsigned RgbColor;
3568  unsigned RgbColor2;
3572  unsigned TransitionTime;
3577 typedef struct {
3585  bool Ble;
3608  bool Hid;
3613 typedef struct {
3651  unsigned Size;
3656 typedef enum {
3675 static inline bool brp_BlePeriph_IsConnected_AddressType_is_valid(int val) {
3676  switch (val) {
3677  case 0: /* Public*/
3678  case 1: /* RandomStatic*/
3679  case 2: /* RandomResolvable*/
3680  case 3: /* RandomNonResolvable*/
3681  return true;
3682  default:
3683  return false;
3684  }
3685 }
3689 typedef enum {
3704 static inline bool brp_Desfire_ExecCommand_CryptoMode_is_valid(int val) {
3705  switch (val) {
3706  case 0: /* Plain*/
3707  case 1: /* MAC*/
3708  case 3: /* Encrypted*/
3709  return true;
3710  default:
3711  return false;
3712  }
3713 }
3717 typedef enum {
3732 static inline bool brp_Desfire_Authenticate_SecureMessaging_is_valid(int val) {
3733  switch (val) {
3734  case 0: /* EV1*/
3735  case 1: /* Native*/
3736  case 2: /* EV2*/
3737  return true;
3738  default:
3739  return false;
3740  }
3741 }
3745 typedef enum {
3764 static inline bool brp_Desfire_Authenticate_KeyDivMode_is_valid(int val) {
3765  switch (val) {
3766  case 0: /* NoDiv*/
3767  case 1: /* SamAV1OneRound*/
3768  case 2: /* SamAV1TwoRounds*/
3769  case 3: /* SamAV2*/
3770  return true;
3771  default:
3772  return false;
3773  }
3774 }
3778 typedef enum {
3793 static inline bool brp_Desfire_AuthExtKey_SecureMessaging_is_valid(int val) {
3794  switch (val) {
3795  case 0: /* EV1*/
3796  case 1: /* Native*/
3797  case 2: /* EV2*/
3798  return true;
3799  default:
3800  return false;
3801  }
3802 }
3806 typedef enum {
3825 static inline bool brp_Desfire_AuthExtKey_CryptoMode_is_valid(int val) {
3826  switch (val) {
3827  case 1: /* DES*/
3828  case 2: /* TripleDES*/
3829  case 3: /* ThreeKeyTripleDES*/
3830  case 4: /* AES*/
3831  return true;
3832  default:
3833  return false;
3834  }
3835 }
3839 typedef enum {
3854 static inline bool brp_Desfire_ReadData_Mode_is_valid(int val) {
3855  switch (val) {
3856  case 0: /* Plain*/
3857  case 1: /* MAC*/
3858  case 3: /* Encrypted*/
3859  return true;
3860  default:
3861  return false;
3862  }
3863 }
3867 typedef enum {
3882 static inline bool brp_Desfire_WriteData_Mode_is_valid(int val) {
3883  switch (val) {
3884  case 0: /* Plain*/
3885  case 1: /* MAC*/
3886  case 3: /* Encrypted*/
3887  return true;
3888  default:
3889  return false;
3890  }
3891 }
3895 typedef enum {
3910 static inline bool brp_Desfire_ChangeExtKey_MasterKeyType_is_valid(int val) {
3911  switch (val) {
3912  case 0: /* DESorTripleDES*/
3913  case 1: /* ThreeKeyTripleDES*/
3914  case 2: /* AES*/
3915  return true;
3916  default:
3917  return false;
3918  }
3919 }
3923 typedef enum {
3938 static inline bool brp_Desfire_ChangeKey_NewKeyDivMode_is_valid(int val) {
3939  switch (val) {
3940  case 0: /* SamAv1OneRound*/
3941  case 1: /* SamAv1TwoRounds*/
3942  case 2: /* SamAv2*/
3943  return true;
3944  default:
3945  return false;
3946  }
3947 }
3951 typedef enum {
3966 static inline bool brp_Desfire_ChangeKey_CurKeyDivMode_is_valid(int val) {
3967  switch (val) {
3968  case 0: /* SamAv1OneRound*/
3969  case 1: /* SamAv1TwoRounds*/
3970  case 2: /* SamAv2*/
3971  return true;
3972  default:
3973  return false;
3974  }
3975 }
3979 typedef enum {
3990 static inline bool brp_Desfire_SetFraming_CommMode_is_valid(int val) {
3991  switch (val) {
3992  case 1: /* DESFireNative*/
3993  case 2: /* ISO7816Compatible*/
3994  return true;
3995  default:
3996  return false;
3997  }
3998 }
4002 typedef struct {
4006  unsigned AppId;
4010  unsigned IsoFileId;
4020 #ifdef BALTECH_SDK_INTERNAL
4021 
4024 typedef enum {
4028  brp_DHWCtrl_EthGetCommMode_Speed_Unknown = 0,
4032  brp_DHWCtrl_EthGetCommMode_Speed_Mbit10 = 1,
4036  brp_DHWCtrl_EthGetCommMode_Speed_Mbit100 = 2,
4040  brp_DHWCtrl_EthGetCommMode_Speed_Mbit1000 = 3,
4041  brp_DHWCtrl_EthGetCommMode_Speed_undefined = -1
4042 } brp_DHWCtrl_EthGetCommMode_Speed;
4043 static inline bool brp_DHWCtrl_EthGetCommMode_Speed_is_valid(int val) {
4044  switch (val) {
4045  case 0: /* Unknown*/
4046  case 1: /* Mbit10*/
4047  case 2: /* Mbit100*/
4048  case 3: /* Mbit1000*/
4049  return true;
4050  default:
4051  return false;
4052  }
4053 }
4057 typedef enum {
4061  brp_DHWCtrl_EthGetCommMode_Duplex_Unknown = 0,
4065  brp_DHWCtrl_EthGetCommMode_Duplex_Half = 1,
4069  brp_DHWCtrl_EthGetCommMode_Duplex_Full = 2,
4070  brp_DHWCtrl_EthGetCommMode_Duplex_undefined = -1
4071 } brp_DHWCtrl_EthGetCommMode_Duplex;
4072 static inline bool brp_DHWCtrl_EthGetCommMode_Duplex_is_valid(int val) {
4073  switch (val) {
4074  case 0: /* Unknown*/
4075  case 1: /* Half*/
4076  case 2: /* Full*/
4077  return true;
4078  default:
4079  return false;
4080  }
4081 }
4085 typedef enum {
4089  brp_DHWCtrl_GpioConfigure_Mode_OutputLow = 0,
4093  brp_DHWCtrl_GpioConfigure_Mode_OutputHigh = 1,
4097  brp_DHWCtrl_GpioConfigure_Mode_InputFloating = 2,
4101  brp_DHWCtrl_GpioConfigure_Mode_InputPullUp = 3,
4105  brp_DHWCtrl_GpioConfigure_Mode_InputPullDown = 4,
4109  brp_DHWCtrl_GpioConfigure_Mode_OpenDrain = 5,
4113  brp_DHWCtrl_GpioConfigure_Mode_Disabled = 255,
4114  brp_DHWCtrl_GpioConfigure_Mode_undefined = -1
4115 } brp_DHWCtrl_GpioConfigure_Mode;
4116 static inline bool brp_DHWCtrl_GpioConfigure_Mode_is_valid(int val) {
4117  switch (val) {
4118  case 0: /* OutputLow*/
4119  case 1: /* OutputHigh*/
4120  case 2: /* InputFloating*/
4121  case 3: /* InputPullUp*/
4122  case 4: /* InputPullDown*/
4123  case 5: /* OpenDrain*/
4124  case 255: /* Disabled*/
4125  return true;
4126  default:
4127  return false;
4128  }
4129 }
4133 typedef enum {
4137  brp_DHWCtrl_UsbHostWaitPortStatus_Speed_NoDevice = 0,
4141  brp_DHWCtrl_UsbHostWaitPortStatus_Speed_Low = 1,
4145  brp_DHWCtrl_UsbHostWaitPortStatus_Speed_Full = 2,
4149  brp_DHWCtrl_UsbHostWaitPortStatus_Speed_High = 3,
4150  brp_DHWCtrl_UsbHostWaitPortStatus_Speed_undefined = -1
4151 } brp_DHWCtrl_UsbHostWaitPortStatus_Speed;
4152 static inline bool brp_DHWCtrl_UsbHostWaitPortStatus_Speed_is_valid(int val) {
4153  switch (val) {
4154  case 0: /* NoDevice*/
4155  case 1: /* Low*/
4156  case 2: /* Full*/
4157  case 3: /* High*/
4158  return true;
4159  default:
4160  return false;
4161  }
4162 }
4166 typedef enum {
4170  brp_DHWCtrl_SpiActivate_Cpol_IdleLow = 0,
4174  brp_DHWCtrl_SpiActivate_Cpol_IdleHigh = 1,
4175  brp_DHWCtrl_SpiActivate_Cpol_undefined = -1
4176 } brp_DHWCtrl_SpiActivate_Cpol;
4177 static inline bool brp_DHWCtrl_SpiActivate_Cpol_is_valid(int val) {
4178  switch (val) {
4179  case 0: /* IdleLow*/
4180  case 1: /* IdleHigh*/
4181  return true;
4182  default:
4183  return false;
4184  }
4185 }
4189 typedef enum {
4193  brp_DHWCtrl_SpiActivate_Cpha_SampleOnFirstEdge = 0,
4197  brp_DHWCtrl_SpiActivate_Cpha_SampleOnSecondEdge = 1,
4198  brp_DHWCtrl_SpiActivate_Cpha_undefined = -1
4199 } brp_DHWCtrl_SpiActivate_Cpha;
4200 static inline bool brp_DHWCtrl_SpiActivate_Cpha_is_valid(int val) {
4201  switch (val) {
4202  case 0: /* SampleOnFirstEdge*/
4203  case 1: /* SampleOnSecondEdge*/
4204  return true;
4205  default:
4206  return false;
4207  }
4208 }
4212 typedef enum {
4216  brp_EM_DecodeCfg_RxMod_Unknown = 0,
4220  brp_EM_DecodeCfg_RxMod_Manchester = 16,
4224  brp_EM_DecodeCfg_RxMod_Biphase = 32,
4228  brp_EM_DecodeCfg_RxMod_NRZ = 48,
4229  brp_EM_DecodeCfg_RxMod_undefined = -1
4230 } brp_EM_DecodeCfg_RxMod;
4231 static inline bool brp_EM_DecodeCfg_RxMod_is_valid(int val) {
4232  switch (val) {
4233  case 0: /* Unknown*/
4234  case 16: /* Manchester*/
4235  case 32: /* Biphase*/
4236  case 48: /* NRZ*/
4237  return true;
4238  default:
4239  return false;
4240  }
4241 }
4245 typedef enum {
4249  brp_Eth_GetTcpConnectionStatus_Status_NotConnected = 0,
4253  brp_Eth_GetTcpConnectionStatus_Status_ConnectionTrialRunning = 1,
4257  brp_Eth_GetTcpConnectionStatus_Status_Connected = 2,
4258  brp_Eth_GetTcpConnectionStatus_Status_undefined = -1
4259 } brp_Eth_GetTcpConnectionStatus_Status;
4260 static inline bool brp_Eth_GetTcpConnectionStatus_Status_is_valid(int val) {
4261  switch (val) {
4262  case 0: /* NotConnected*/
4263  case 1: /* ConnectionTrialRunning*/
4264  case 2: /* Connected*/
4265  return true;
4266  default:
4267  return false;
4268  }
4269 }
4273 typedef enum {
4277  brp_Eth_OpenTcpConnection_ConnectionReason_Powerup = 1,
4281  brp_Eth_OpenTcpConnection_ConnectionReason_LinkChange = 2,
4285  brp_Eth_OpenTcpConnection_ConnectionReason_SessionkeyTimeout = 4,
4289  brp_Eth_OpenTcpConnection_ConnectionReason_Message = 8,
4293  brp_Eth_OpenTcpConnection_ConnectionReason_UdpIntrospection = 16,
4297  brp_Eth_OpenTcpConnection_ConnectionReason_Reset = 32,
4301  brp_Eth_OpenTcpConnection_ConnectionReason_FailedConnectionTrials = 32768,
4302  brp_Eth_OpenTcpConnection_ConnectionReason_undefined = -1
4303 } brp_Eth_OpenTcpConnection_ConnectionReason;
4304 static inline bool brp_Eth_OpenTcpConnection_ConnectionReason_is_valid(int val) {
4305  switch (val) {
4306  case 1: /* Powerup*/
4307  case 2: /* LinkChange*/
4308  case 4: /* SessionkeyTimeout*/
4309  case 8: /* Message*/
4310  case 16: /* UdpIntrospection*/
4311  case 32: /* Reset*/
4312  case 32768: /* FailedConnectionTrials*/
4313  return true;
4314  default:
4315  return false;
4316  }
4317 }
4318 #endif // BALTECH_SDK_INTERNAL
4319 
4322 typedef enum {
4333 static inline bool brp_Felica_GenericCmd_FastBaud_is_valid(int val) {
4334  switch (val) {
4335  case 0: /* Kbps212*/
4336  case 1: /* Kbps424*/
4337  return true;
4338  default:
4339  return false;
4340  }
4341 }
4345 typedef enum {
4356 static inline bool brp_Felica_Request_FastBaud_is_valid(int val) {
4357  switch (val) {
4358  case 0: /* Kbps212*/
4359  case 1: /* Kbps424*/
4360  return true;
4361  default:
4362  return false;
4363  }
4364 }
4368 typedef struct {
4376  size_t NFCID_len;
4378 #ifdef BALTECH_SDK_INTERNAL
4379 
4382 typedef enum {
4386  brp_Hitag_Request_TagType_HitagS = 0,
4390  brp_Hitag_Request_TagType_Hitag1 = 1,
4394  brp_Hitag_Request_TagType_Hitag2Manchester = 2,
4398  brp_Hitag_Request_TagType_Hitag2Biphase = 3,
4399  brp_Hitag_Request_TagType_undefined = -1
4400 } brp_Hitag_Request_TagType;
4401 static inline bool brp_Hitag_Request_TagType_is_valid(int val) {
4402  switch (val) {
4403  case 0: /* HitagS*/
4404  case 1: /* Hitag1*/
4405  case 2: /* Hitag2Manchester*/
4406  case 3: /* Hitag2Biphase*/
4407  return true;
4408  default:
4409  return false;
4410  }
4411 }
4415 typedef enum {
4419  brp_Hitag_Request_Mode_StdHtg12S = 0,
4423  brp_Hitag_Request_Mode_AdvHtg1S = 1,
4427  brp_Hitag_Request_Mode_FAdvHS = 2,
4428  brp_Hitag_Request_Mode_undefined = -1
4429 } brp_Hitag_Request_Mode;
4430 static inline bool brp_Hitag_Request_Mode_is_valid(int val) {
4431  switch (val) {
4432  case 0: /* StdHtg12S*/
4433  case 1: /* AdvHtg1S*/
4434  case 2: /* FAdvHS*/
4435  return true;
4436  default:
4437  return false;
4438  }
4439 }
4443 typedef enum {
4447  brp_Hitag_Select_SelMode_Select = 0,
4451  brp_Hitag_Select_SelMode_Quiet = 1,
4455  brp_Hitag_Select_SelMode_AuthPwd = 2,
4459  brp_Hitag_Select_SelMode_H2AuthOnlyPwd = 3,
4460  brp_Hitag_Select_SelMode_undefined = -1
4461 } brp_Hitag_Select_SelMode;
4462 static inline bool brp_Hitag_Select_SelMode_is_valid(int val) {
4463  switch (val) {
4464  case 0: /* Select*/
4465  case 1: /* Quiet*/
4466  case 2: /* AuthPwd*/
4467  case 3: /* H2AuthOnlyPwd*/
4468  return true;
4469  default:
4470  return false;
4471  }
4472 }
4476 typedef enum {
4480  brp_Iso14a_RequestLegacy_UIDSize_SingleSize = 0,
4484  brp_Iso14a_RequestLegacy_UIDSize_DoubleSize = 1,
4488  brp_Iso14a_RequestLegacy_UIDSize_TripleSize = 2,
4489  brp_Iso14a_RequestLegacy_UIDSize_undefined = -1
4490 } brp_Iso14a_RequestLegacy_UIDSize;
4491 static inline bool brp_Iso14a_RequestLegacy_UIDSize_is_valid(int val) {
4492  switch (val) {
4493  case 0: /* SingleSize*/
4494  case 1: /* DoubleSize*/
4495  case 2: /* TripleSize*/
4496  return true;
4497  default:
4498  return false;
4499  }
4500 }
4501 #endif // BALTECH_SDK_INTERNAL
4502 
4507 typedef enum {
4546 static inline bool brp_Iso14a_RequestATS_FSDI_is_valid(int val) {
4547  switch (val) {
4548  case 0: /* Bytes16*/
4549  case 1: /* Bytes24*/
4550  case 2: /* Bytes32*/
4551  case 3: /* Bytes40*/
4552  case 4: /* Bytes48*/
4553  case 5: /* Bytes64*/
4554  case 6: /* Bytes96*/
4555  case 7: /* Bytes128*/
4556  case 8: /* Bytes256*/
4557  return true;
4558  default:
4559  return false;
4560  }
4561 }
4565 typedef enum {
4588 static inline bool brp_Iso14b_Request_TimeSlots_is_valid(int val) {
4589  switch (val) {
4590  case 0: /* TimeSlots1*/
4591  case 1: /* TimeSlots2*/
4592  case 2: /* TimeSlots4*/
4593  case 3: /* TimeSlots8*/
4594  case 4: /* TimeSlots16*/
4595  return true;
4596  default:
4597  return false;
4598  }
4599 }
4603 typedef enum {
4642 static inline bool brp_Iso14b_Request_FSCI_is_valid(int val) {
4643  switch (val) {
4644  case 0: /* Bytes16*/
4645  case 1: /* Bytes24*/
4646  case 2: /* Bytes32*/
4647  case 3: /* Bytes40*/
4648  case 4: /* Bytes48*/
4649  case 5: /* Bytes64*/
4650  case 6: /* Bytes96*/
4651  case 7: /* Bytes128*/
4652  case 8: /* Bytes256*/
4653  return true;
4654  default:
4655  return false;
4656  }
4657 }
4661 typedef enum {
4672 static inline bool brp_Iso14b_Request_ProtType_is_valid(int val) {
4673  switch (val) {
4674  case 0: /* NoISO14443L4Support*/
4675  case 1: /* ISO14443L4Support*/
4676  return true;
4677  default:
4678  return false;
4679  }
4680 }
4688 typedef enum {
4751 static inline bool brp_Iso14b_Request_FWI_is_valid(int val) {
4752  switch (val) {
4753  case 0: /* Us302*/
4754  case 1: /* Us604*/
4755  case 2: /* Us1208*/
4756  case 3: /* Us2416*/
4757  case 4: /* Us4832*/
4758  case 5: /* Us9664*/
4759  case 6: /* Ms19*/
4760  case 7: /* Ms39*/
4761  case 8: /* Ms77*/
4762  case 9: /* Ms155*/
4763  case 10: /* Ms309*/
4764  case 11: /* Ms618*/
4765  case 12: /* Ms1237*/
4766  case 13: /* Ms2474*/
4767  case 14: /* Ms4948*/
4768  return true;
4769  default:
4770  return false;
4771  }
4772 }
4780 typedef enum {
4843 static inline bool brp_Iso14b_Request_SFGI_is_valid(int val) {
4844  switch (val) {
4845  case 0: /* Us302*/
4846  case 1: /* Us604*/
4847  case 2: /* Us1208*/
4848  case 3: /* Us2416*/
4849  case 4: /* Us4832*/
4850  case 5: /* Us9664*/
4851  case 6: /* Ms19*/
4852  case 7: /* Ms39*/
4853  case 8: /* Ms77*/
4854  case 9: /* Ms155*/
4855  case 10: /* Ms309*/
4856  case 11: /* Ms618*/
4857  case 12: /* Ms1237*/
4858  case 13: /* Ms2474*/
4859  case 14: /* Ms4948*/
4860  return true;
4861  default:
4862  return false;
4863  }
4864 }
4868 typedef struct {
4882  bool Synced;
4886  bool Send848;
4890  bool Send424;
4894  bool Send212;
4898  bool Recv848;
4902  bool Recv424;
4906  bool Recv212;
4929  unsigned ADC;
4933  bool NAD;
4937  bool CID;
4950 typedef enum {
4965 static inline bool brp_Iso14b_Attrib_TR0_is_valid(int val) {
4966  switch (val) {
4967  case 0: /* Numerator64*/
4968  case 1: /* Numerator48*/
4969  case 2: /* Numerator16*/
4970  return true;
4971  default:
4972  return false;
4973  }
4974 }
4978 typedef enum {
4993 static inline bool brp_Iso14b_Attrib_TR1_is_valid(int val) {
4994  switch (val) {
4995  case 0: /* Numerator80*/
4996  case 1: /* Numerator64*/
4997  case 2: /* Numerator16*/
4998  return true;
4999  default:
5000  return false;
5001  }
5002 }
5006 typedef enum {
5017 static inline bool brp_Iso14b_Attrib_EOF__is_valid(int val) {
5018  switch (val) {
5019  case 0: /* EOFrequired*/
5020  case 1: /* EOFoptional*/
5021  return true;
5022  default:
5023  return false;
5024  }
5025 }
5029 typedef enum {
5040 static inline bool brp_Iso14b_Attrib_SOF_is_valid(int val) {
5041  switch (val) {
5042  case 0: /* SOFrequired*/
5043  case 1: /* SOFoptional*/
5044  return true;
5045  default:
5046  return false;
5047  }
5048 }
5054 typedef enum {
5093 static inline bool brp_Iso14b_Attrib_FSDI_is_valid(int val) {
5094  switch (val) {
5095  case 0: /* Bytes16*/
5096  case 1: /* Bytes24*/
5097  case 2: /* Bytes32*/
5098  case 3: /* Bytes40*/
5099  case 4: /* Bytes48*/
5100  case 5: /* Bytes64*/
5101  case 6: /* Bytes96*/
5102  case 7: /* Bytes128*/
5103  case 8: /* Bytes256*/
5104  return true;
5105  default:
5106  return false;
5107  }
5108 }
5112 typedef enum {
5151 static inline bool brp_Iso14L4_SetupAPDU_FSCI_is_valid(int val) {
5152  switch (val) {
5153  case 0: /* Bytes16*/
5154  case 1: /* Bytes24*/
5155  case 2: /* Bytes32*/
5156  case 3: /* Bytes40*/
5157  case 4: /* Bytes48*/
5158  case 5: /* Bytes64*/
5159  case 6: /* Bytes96*/
5160  case 7: /* Bytes128*/
5161  case 8: /* Bytes256*/
5162  return true;
5163  default:
5164  return false;
5165  }
5166 }
5174 typedef enum {
5237 static inline bool brp_Iso14L4_SetupAPDU_FWI_is_valid(int val) {
5238  switch (val) {
5239  case 0: /* Us302*/
5240  case 1: /* Us604*/
5241  case 2: /* Us1208*/
5242  case 3: /* Us2416*/
5243  case 4: /* Us4832*/
5244  case 5: /* Us9664*/
5245  case 6: /* Ms19*/
5246  case 7: /* Ms39*/
5247  case 8: /* Ms77*/
5248  case 9: /* Ms155*/
5249  case 10: /* Ms309*/
5250  case 11: /* Ms618*/
5251  case 12: /* Ms1237*/
5252  case 13: /* Ms2474*/
5253  case 14: /* Ms4948*/
5254  return true;
5255  default:
5256  return false;
5257  }
5258 }
5262 typedef struct {
5270  unsigned DSFID;
5275 typedef enum {
5290 static inline bool brp_Iso15_SetMode_Mode_is_valid(int val) {
5291  switch (val) {
5292  case 0: /* Unaddressed*/
5293  case 1: /* Addressed*/
5294  case 2: /* Selected*/
5295  return true;
5296  default:
5297  return false;
5298  }
5299 }
5300 #ifdef BALTECH_SDK_INTERNAL
5301 
5304 typedef struct {
5310  brp_buf BlockData;
5314  unsigned BlockSecData;
5315 } brp_Iso15_ReadBlock_Data_Entry;
5316 #endif // BALTECH_SDK_INTERNAL
5317 
5320 typedef struct {
5333 typedef struct {
5346 typedef enum {
5368 static inline bool brp_Iso78_OpenSam_LID_is_valid(int val) {
5369  switch (val) {
5370  case 0: /* AV2*/
5371  case 1: /* HID*/
5372  case 16: /* Gen1*/
5373  case 17: /* Gen2*/
5374  return true;
5375  default:
5376  return false;
5377  }
5378 }
5379 #ifdef BALTECH_SDK_INTERNAL
5380 
5383 typedef enum {
5387  brp_Main_Bf2Upload_ResultCode_Success = 0,
5391  brp_Main_Bf2Upload_ResultCode_InvalidChecksum = 1,
5395  brp_Main_Bf2Upload_ResultCode_ProgrammingTimeout = 2,
5399  brp_Main_Bf2Upload_ResultCode_VerifyTimeout = 3,
5403  brp_Main_Bf2Upload_ResultCode_UnsupportedCodeType = 4,
5407  brp_Main_Bf2Upload_ResultCode_ProtocolError = 5,
5411  brp_Main_Bf2Upload_ResultCode_SecuredByConfigSecurityCode = 6,
5412  brp_Main_Bf2Upload_ResultCode_undefined = -1
5413 } brp_Main_Bf2Upload_ResultCode;
5414 static inline bool brp_Main_Bf2Upload_ResultCode_is_valid(int val) {
5415  switch (val) {
5416  case 0: /* Success*/
5417  case 1: /* InvalidChecksum*/
5418  case 2: /* ProgrammingTimeout*/
5419  case 3: /* VerifyTimeout*/
5420  case 4: /* UnsupportedCodeType*/
5421  case 5: /* ProtocolError*/
5422  case 6: /* SecuredByConfigSecurityCode*/
5423  return true;
5424  default:
5425  return false;
5426  }
5427 }
5431 typedef enum {
5435  brp_Mce_Enable_Mode_Disable = 0,
5439  brp_Mce_Enable_Mode_Enable = 1,
5440  brp_Mce_Enable_Mode_undefined = -1
5441 } brp_Mce_Enable_Mode;
5442 static inline bool brp_Mce_Enable_Mode_is_valid(int val) {
5443  switch (val) {
5444  case 0: /* Disable*/
5445  case 1: /* Enable*/
5446  return true;
5447  default:
5448  return false;
5449  }
5450 }
5451 #endif // BALTECH_SDK_INTERNAL
5452 
5455 typedef enum {
5466 static inline bool brp_Mif_AuthE2_AuthMode_is_valid(int val) {
5467  switch (val) {
5468  case 96: /* KeyA*/
5469  case 97: /* KeyB*/
5470  return true;
5471  default:
5472  return false;
5473  }
5474 }
5478 typedef enum {
5489 static inline bool brp_Mif_AuthUser_AuthMode_is_valid(int val) {
5490  switch (val) {
5491  case 96: /* KeyA*/
5492  case 97: /* KeyB*/
5493  return true;
5494  default:
5495  return false;
5496  }
5497 }
5501 typedef enum {
5516 static inline bool brp_Mif_ChangeValue_Mode_is_valid(int val) {
5517  switch (val) {
5518  case 0: /* Decrement*/
5519  case 1: /* Increment*/
5520  case 2: /* Restore*/
5521  return true;
5522  default:
5523  return false;
5524  }
5525 }
5529 typedef enum {
5544 static inline bool brp_Mif_ChangeValueBackup_Mode_is_valid(int val) {
5545  switch (val) {
5546  case 0: /* Decrement*/
5547  case 1: /* Increment*/
5548  case 2: /* Restore*/
5549  return true;
5550  default:
5551  return false;
5552  }
5553 }
5557 typedef enum {
5572 static inline bool brp_Mif_AuthE2Extended_AuthLevel_is_valid(int val) {
5573  switch (val) {
5574  case 0: /* AesSl1*/
5575  case 2: /* AesSl3*/
5576  case 3: /* Mifare*/
5577  return true;
5578  default:
5579  return false;
5580  }
5581 }
5585 typedef enum {
5600 static inline bool brp_Mif_AuthUserExtended_AuthLevel_is_valid(int val) {
5601  switch (val) {
5602  case 0: /* AesSl1*/
5603  case 2: /* AesSl3*/
5604  case 3: /* Mifare*/
5605  return true;
5606  default:
5607  return false;
5608  }
5609 }
5613 typedef enum {
5640 static inline bool brp_Mif_ValueSL3_Cmd_is_valid(int val) {
5641  switch (val) {
5642  case 0: /* Increment*/
5643  case 1: /* Decrement*/
5644  case 2: /* Transfer*/
5645  case 3: /* IncrementTransfer*/
5646  case 4: /* DecrementTransfer*/
5647  case 5: /* Restore*/
5648  return true;
5649  default:
5650  return false;
5651  }
5652 }
5656 typedef enum {
5671 static inline bool brp_Mif_VirtualCardSelect_FciType_is_valid(int val) {
5672  switch (val) {
5673  case 0: /* RawData*/
5674  case 1: /* UidAndCardType*/
5675  case 2: /* UidCardTypeAndMemSize*/
5676  return true;
5677  default:
5678  return false;
5679  }
5680 }
5684 typedef struct {
5688  unsigned BlockAddress;
5695  unsigned SectorKeyIdx;
5700 typedef enum {
5711 static inline bool brp_Mif_SetFraming_CommMode_is_valid(int val) {
5712  switch (val) {
5713  case 1: /* MifareNative*/
5714  case 2: /* MifareISO*/
5715  return true;
5716  default:
5717  return false;
5718  }
5719 }
5723 typedef enum {
5734 static inline bool brp_MobileId_Enable_Mode_is_valid(int val) {
5735  switch (val) {
5736  case 0: /* Disable*/
5737  case 1: /* Enable*/
5738  return true;
5739  default:
5740  return false;
5741  }
5742 }
5746 typedef struct {
5787  bool WiFi;
5793  bool Tamper;
5805  bool Keyboard;
5817  bool Display;
5829  bool Ethernet;
5841  bool Rf125kHz;
5847  bool Rf13MHz;
5873  bool RTC;
5896 #ifdef BALTECH_SDK_INTERNAL
5897 
5900 typedef struct {
5904  unsigned ID;
5908  unsigned Value;
5909 } brp_Sys_SetRegister_RegisterAssignments_Entry;
5910 #endif // BALTECH_SDK_INTERNAL
5911 
5914 typedef struct {
5918  unsigned ID;
5922  unsigned Value;
5927 typedef enum {
5946 static inline bool brp_Sys_CfgLoadFinish_FinalizeAction_is_valid(int val) {
5947  switch (val) {
5948  case 0: /* CancelCfgLoad*/
5949  case 1: /* FinalizeCfgLoadWithoutReboot*/
5950  case 2: /* FinalizeCfgLoadWithReboot*/
5951  return true;
5952  default:
5953  return false;
5954  }
5955 }
5956 #ifdef BALTECH_SDK_INTERNAL
5957 
5960 typedef enum {
5964  brp_TTF_ReadByteStream_RxMod_Manchester = 16,
5968  brp_TTF_ReadByteStream_RxMod_Biphase = 32,
5972  brp_TTF_ReadByteStream_RxMod_Ind = 48,
5976  brp_TTF_ReadByteStream_RxMod_HIDP = 80,
5980  brp_TTF_ReadByteStream_RxMod_PSK = 96,
5984  brp_TTF_ReadByteStream_RxMod_SMPL = 112,
5985  brp_TTF_ReadByteStream_RxMod_undefined = -1
5986 } brp_TTF_ReadByteStream_RxMod;
5987 static inline bool brp_TTF_ReadByteStream_RxMod_is_valid(int val) {
5988  switch (val) {
5989  case 16: /* Manchester*/
5990  case 32: /* Biphase*/
5991  case 48: /* Ind*/
5992  case 80: /* HIDP*/
5993  case 96: /* PSK*/
5994  case 112: /* SMPL*/
5995  return true;
5996  default:
5997  return false;
5998  }
5999 }
6000 #endif // BALTECH_SDK_INTERNAL
6001 
6004 typedef enum {
6023 static inline bool brp_Ultralight_AuthE2_DivMode_is_valid(int val) {
6024  switch (val) {
6025  case 0: /* NoDiv*/
6026  case 1: /* SamAv1OneRound*/
6027  case 2: /* SamAv1TwoRounds*/
6028  case 3: /* SamAv2*/
6029  return true;
6030  default:
6031  return false;
6032  }
6033 }
6037 typedef enum {
6048 static inline bool brp_Ultralight_AuthUser_CryptoMode_is_valid(int val) {
6049  switch (val) {
6050  case 0: /* TripleDES*/
6051  case 1: /* AES*/
6052  return true;
6053  default:
6054  return false;
6055  }
6056 }
6057 #ifdef BALTECH_SDK_INTERNAL
6058 
6061 typedef enum {
6065  brp_UsbHost_SetupPipes_Type_Control = 0,
6069  brp_UsbHost_SetupPipes_Type_Interrupt = 1,
6073  brp_UsbHost_SetupPipes_Type_Bulk = 2,
6077  brp_UsbHost_SetupPipes_Type_Isochronous = 3,
6078  brp_UsbHost_SetupPipes_Type_undefined = -1
6079 } brp_UsbHost_SetupPipes_Type;
6080 static inline bool brp_UsbHost_SetupPipes_Type_is_valid(int val) {
6081  switch (val) {
6082  case 0: /* Control*/
6083  case 1: /* Interrupt*/
6084  case 2: /* Bulk*/
6085  case 3: /* Isochronous*/
6086  return true;
6087  default:
6088  return false;
6089  }
6090 }
6094 typedef struct {
6098  unsigned No;
6102  brp_UsbHost_SetupPipes_Type Type;
6106  unsigned FrameSize;
6107 } brp_UsbHost_SetupPipes_Pipes_Entry;
6108 #endif // BALTECH_SDK_INTERNAL
6109 
6112 typedef enum {
6123 static inline bool brp_UI_Toggle_Polarity_is_valid(int val) {
6124  switch (val) {
6125  case 0: /* Normal*/
6126  case 1: /* Inverted*/
6127  return true;
6128  default:
6129  return false;
6130  }
6131 }
6135 typedef enum {
6146 static inline bool brp_UI_Sense_PortState_is_valid(int val) {
6147  switch (val) {
6148  case 0: /* Disabled*/
6149  case 1: /* Enabled*/
6150  return true;
6151  default:
6152  return false;
6153  }
6154 }
6158 typedef enum {
6169 static inline bool brp_VHL_Setup_HasMifareKey_is_valid(int val) {
6170  switch (val) {
6171  case 0: /* Disabled*/
6172  case 6: /* Enabled*/
6173  return true;
6174  default:
6175  return false;
6176  }
6177 }
6181 typedef enum {
6192 static inline bool brp_VHL_Setup_MifareHasAsKeyA_is_valid(int val) {
6193  switch (val) {
6194  case 0: /* Disabled*/
6195  case 1: /* Enabled*/
6196  return true;
6197  default:
6198  return false;
6199  }
6200 }
6204 typedef enum {
6215 static inline bool brp_VHL_Setup_MifareHasMadId_is_valid(int val) {
6216  switch (val) {
6217  case 0: /* Disabled*/
6218  case 2: /* Enabled*/
6219  return true;
6220  default:
6221  return false;
6222  }
6223 }
6227 typedef enum {
6238 static inline bool brp_VHL_Setup_DesfireHasAppId_is_valid(int val) {
6239  switch (val) {
6240  case 0: /* Disabled*/
6241  case 4: /* Enabled*/
6242  return true;
6243  default:
6244  return false;
6245  }
6246 }
6250 typedef enum {
6261 static inline bool brp_VHL_Setup_HasDesfireFileDesc_is_valid(int val) {
6262  switch (val) {
6263  case 0: /* Disabled*/
6264  case 16: /* Enabled*/
6265  return true;
6266  default:
6267  return false;
6268  }
6269 }
6273 typedef enum {
6284 static inline bool brp_VHL_Setup_LegicHasEnStamp_is_valid(int val) {
6285  switch (val) {
6286  case 0: /* Disabled*/
6287  case 1: /* Enabled*/
6288  return true;
6289  default:
6290  return false;
6291  }
6292 }
6296 typedef enum {
6307 static inline bool brp_VHL_Setup_LegicHasAdrMode_is_valid(int val) {
6308  switch (val) {
6309  case 0: /* Disabled*/
6310  case 1: /* Enabled*/
6311  return true;
6312  default:
6313  return false;
6314  }
6315 }
6321 typedef enum {
6354 static inline bool brp_VHL_Setup_LegicAdrMode_is_valid(int val) {
6355  switch (val) {
6356  case 0: /* ProtocolHeader*/
6357  case 1: /* Advant*/
6358  return true;
6359  default:
6360  return false;
6361  }
6362 }
6366 typedef enum {
6377 static inline bool brp_VHL_Setup_Iso15HasFirstBlock_is_valid(int val) {
6378  switch (val) {
6379  case 0: /* Disabled*/
6380  case 1: /* Enabled*/
6381  return true;
6382  default:
6383  return false;
6384  }
6385 }
6389 typedef enum {
6400 static inline bool brp_VHL_Setup_Iso15HasBlockCount_is_valid(int val) {
6401  switch (val) {
6402  case 0: /* Disabled*/
6403  case 1: /* Enabled*/
6404  return true;
6405  default:
6406  return false;
6407  }
6408 }
6412 typedef enum {
6423 static inline bool brp_VHL_Setup_Iso15HasOptionFlag_is_valid(int val) {
6424  switch (val) {
6425  case 0: /* Disabled*/
6426  case 1: /* Enabled*/
6427  return true;
6428  default:
6429  return false;
6430  }
6431 }
6435 typedef enum {
6450 static inline bool brp_VHL_Setup_Iso15OptionFlag_is_valid(int val) {
6451  switch (val) {
6452  case 0: /* OptFlagZero*/
6453  case 1: /* OptFlagOne*/
6454  case 2: /* OptFlagAuto*/
6455  return true;
6456  default:
6457  return false;
6458  }
6459 }
6463 typedef enum {
6474 static inline bool brp_VHL_Setup_Iso15HasBlockSize_is_valid(int val) {
6475  switch (val) {
6476  case 0: /* Disabled*/
6477  case 1: /* Enabled*/
6478  return true;
6479  default:
6480  return false;
6481  }
6482 }
6486 typedef enum {
6503 static inline bool brp_VHL_Setup_FileSpecifier_is_valid(int val) {
6504  switch (val) {
6505  case 0: /* SelectByName*/
6506  case 1: /* SelectByPath*/
6507  case 2: /* SelectByAPDU*/
6508  return true;
6509  default:
6510  return false;
6511  }
6512 }
6516 typedef struct {
6528  size_t Name_len;
6536  size_t Path_len;
6549 typedef enum {
6560 static inline bool brp_VHL_Setup_Iso14HasFileLen_is_valid(int val) {
6561  switch (val) {
6562  case 0: /* Disabled*/
6563  case 4: /* Enabled*/
6564  return true;
6565  default:
6566  return false;
6567  }
6568 }
6572 typedef enum {
6583 static inline bool brp_VHL_Setup_Iso14HasApduTimeout_is_valid(int val) {
6584  switch (val) {
6585  case 0: /* Disabled*/
6586  case 2: /* Enabled*/
6587  return true;
6588  default:
6589  return false;
6590  }
6591 }
6592 #ifdef BALTECH_SDK_INTERNAL
6593 
6596 typedef enum {
6600  brp_DHWCtrlLegacy_PortConfig_Mode_OutputLow = 0,
6604  brp_DHWCtrlLegacy_PortConfig_Mode_OutputHigh = 1,
6608  brp_DHWCtrlLegacy_PortConfig_Mode_InputTristate = 2,
6612  brp_DHWCtrlLegacy_PortConfig_Mode_InputPullup = 3,
6613  brp_DHWCtrlLegacy_PortConfig_Mode_undefined = -1
6614 } brp_DHWCtrlLegacy_PortConfig_Mode;
6615 static inline bool brp_DHWCtrlLegacy_PortConfig_Mode_is_valid(int val) {
6616  switch (val) {
6617  case 0: /* OutputLow*/
6618  case 1: /* OutputHigh*/
6619  case 2: /* InputTristate*/
6620  case 3: /* InputPullup*/
6621  return true;
6622  default:
6623  return false;
6624  }
6625 }
6629 typedef enum {
6633  brp_DHWCtrlLegacy_DispColor_Color_White = 0,
6637  brp_DHWCtrlLegacy_DispColor_Color_Black = 255,
6638  brp_DHWCtrlLegacy_DispColor_Color_undefined = -1
6639 } brp_DHWCtrlLegacy_DispColor_Color;
6640 static inline bool brp_DHWCtrlLegacy_DispColor_Color_is_valid(int val) {
6641  switch (val) {
6642  case 0: /* White*/
6643  case 255: /* Black*/
6644  return true;
6645  default:
6646  return false;
6647  }
6648 }
6652 typedef enum {
6656  brp_DHWCtrlLegacy_GetReaderChipType_ChipType_RC500 = 1,
6660  brp_DHWCtrlLegacy_GetReaderChipType_ChipType_RC632 = 4,
6664  brp_DHWCtrlLegacy_GetReaderChipType_ChipType_RC663 = 5,
6668  brp_DHWCtrlLegacy_GetReaderChipType_ChipType_PN512 = 33,
6669  brp_DHWCtrlLegacy_GetReaderChipType_ChipType_undefined = -1
6670 } brp_DHWCtrlLegacy_GetReaderChipType_ChipType;
6671 static inline bool brp_DHWCtrlLegacy_GetReaderChipType_ChipType_is_valid(int val) {
6672  switch (val) {
6673  case 1: /* RC500*/
6674  case 4: /* RC632*/
6675  case 5: /* RC663*/
6676  case 33: /* PN512*/
6677  return true;
6678  default:
6679  return false;
6680  }
6681 }
6685 typedef enum {
6689  brp_DHWCtrlLegacy_GetSamType_ChipType_TDA8007C2 = 1,
6693  brp_DHWCtrlLegacy_GetSamType_ChipType_TDA8007C3 = 2,
6694  brp_DHWCtrlLegacy_GetSamType_ChipType_undefined = -1
6695 } brp_DHWCtrlLegacy_GetSamType_ChipType;
6696 static inline bool brp_DHWCtrlLegacy_GetSamType_ChipType_is_valid(int val) {
6697  switch (val) {
6698  case 1: /* TDA8007C2*/
6699  case 2: /* TDA8007C3*/
6700  return true;
6701  default:
6702  return false;
6703  }
6704 }
6708 typedef enum {
6712  brp_DHWCtrlLegacy_HfAcquire_ModuleId_No = 0,
6716  brp_DHWCtrlLegacy_HfAcquire_ModuleId_RC = 1,
6720  brp_DHWCtrlLegacy_HfAcquire_ModuleId_Legic = 3,
6724  brp_DHWCtrlLegacy_HfAcquire_ModuleId_PN = 17,
6728  brp_DHWCtrlLegacy_HfAcquire_ModuleId_LegicAdvant = 19,
6732  brp_DHWCtrlLegacy_HfAcquire_ModuleId_RC125 = 24,
6736  brp_DHWCtrlLegacy_HfAcquire_ModuleId_PN2 = 26,
6740  brp_DHWCtrlLegacy_HfAcquire_ModuleId_RC663 = 34,
6744  brp_DHWCtrlLegacy_HfAcquire_ModuleId_HTRC110 = 36,
6745  brp_DHWCtrlLegacy_HfAcquire_ModuleId_undefined = -1
6746 } brp_DHWCtrlLegacy_HfAcquire_ModuleId;
6747 static inline bool brp_DHWCtrlLegacy_HfAcquire_ModuleId_is_valid(int val) {
6748  switch (val) {
6749  case 0: /* No*/
6750  case 1: /* RC*/
6751  case 3: /* Legic*/
6752  case 17: /* PN*/
6753  case 19: /* LegicAdvant*/
6754  case 24: /* RC125*/
6755  case 26: /* PN2*/
6756  case 34: /* RC663*/
6757  case 36: /* HTRC110*/
6758  return true;
6759  default:
6760  return false;
6761  }
6762 }
6766 typedef enum {
6770  brp_DHWCtrlLegacy_AesWrapKey_WrappedKeyNr_WrapNone = 0,
6774  brp_DHWCtrlLegacy_AesWrapKey_WrappedKeyNr_WrapDHUK = 1,
6775  brp_DHWCtrlLegacy_AesWrapKey_WrappedKeyNr_undefined = -1
6776 } brp_DHWCtrlLegacy_AesWrapKey_WrappedKeyNr;
6777 static inline bool brp_DHWCtrlLegacy_AesWrapKey_WrappedKeyNr_is_valid(int val) {
6778  switch (val) {
6779  case 0: /* WrapNone*/
6780  case 1: /* WrapDHUK*/
6781  return true;
6782  default:
6783  return false;
6784  }
6785 }
6789 typedef enum {
6793  brp_DHWCtrlLegacy_AesEncrypt_WrappedKeyNr_WrapNone = 0,
6797  brp_DHWCtrlLegacy_AesEncrypt_WrappedKeyNr_WrapDHUK = 1,
6798  brp_DHWCtrlLegacy_AesEncrypt_WrappedKeyNr_undefined = -1
6799 } brp_DHWCtrlLegacy_AesEncrypt_WrappedKeyNr;
6800 static inline bool brp_DHWCtrlLegacy_AesEncrypt_WrappedKeyNr_is_valid(int val) {
6801  switch (val) {
6802  case 0: /* WrapNone*/
6803  case 1: /* WrapDHUK*/
6804  return true;
6805  default:
6806  return false;
6807  }
6808 }
6812 typedef enum {
6816  brp_DHWCtrlLegacy_AesDecrypt_WrappedKeyNr_WrapNone = 0,
6820  brp_DHWCtrlLegacy_AesDecrypt_WrappedKeyNr_WrapDHUK = 1,
6821  brp_DHWCtrlLegacy_AesDecrypt_WrappedKeyNr_undefined = -1
6822 } brp_DHWCtrlLegacy_AesDecrypt_WrappedKeyNr;
6823 static inline bool brp_DHWCtrlLegacy_AesDecrypt_WrappedKeyNr_is_valid(int val) {
6824  switch (val) {
6825  case 0: /* WrapNone*/
6826  case 1: /* WrapDHUK*/
6827  return true;
6828  default:
6829  return false;
6830  }
6831 }
6832 #endif // BALTECH_SDK_INTERNAL
6833 #endif
6834 
The reader supports ISO 15693 cards as documented here.
Definition: typedefs.h:1559
Custom Virtual LED (VLED) port.
Definition: typedefs.h:2128
bool VhlWrite
Has to be cleared to deny writing cards via VHL.
Definition: typedefs.h:3375
Refers to a general purpose I/O.
Definition: typedefs.h:2088
unsigned ReadKeyNo
ReadKeyNo , i.e.
Definition: typedefs.h:3184
Keylength: 16 byte.
Definition: typedefs.h:776
ISO 14443-4 Type A; this card type is capable of transferring application protocol data units (APDU) ...
Definition: typedefs.h:2827
bool Hitag1S
HITAG 1 or S.
Definition: typedefs.h:34
bool SupportsNotify
Definition: typedefs.h:3629
brp_Desfire_WriteData_Mode
Communication settings linked to the file.
Definition: typedefs.h:3867
brp_Iso78_OpenSam_LID
Logical SAM-ID (LID)
Definition: typedefs.h:5346
Custom Virtual LED (VLED) port.
Definition: typedefs.h:2176
brp_VHL_Setup_MifareHasMadId
Definition: typedefs.h:6204
The reader supports Keri Systems cards as documented here.
Definition: typedefs.h:1663
Use this value to select an NXP MIFARE SAM AV2 or AV3.
Definition: typedefs.h:5350
References keys which are defined in respective VHL files: AES keys in MifarePlusAesKeyList Mifare ke...
Definition: typedefs.h:227
brp_CardType
Definition: typedefs.h:2795
SAM AV1 mode (1 encryption round for Tripple DES keys).
Definition: typedefs.h:6012
The reader supports Mobile Card Emulation (MCE).
Definition: typedefs.h:1813
bool SupportsWrite
Definition: typedefs.h:3633
brp_IoPort SwitchIoPort
I/O pins of the reader that can be controlled by the user.
Definition: typedefs.h:2757
The reader supports the emulation of ISO14443-4 compatible cards.
Definition: typedefs.h:1769
EM 4100/EM 4102.
Definition: typedefs.h:2887
License bit mask.
Definition: typedefs.h:3577
AES SL1 authentication.
Definition: typedefs.h:5561
bool CorruptFirmware
The reader firmware is corrupted.
Definition: typedefs.h:5889
size_t ApduCommand_len
Length of ApduCommand (in bytes).
Definition: typedefs.h:6544
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:2152
Accept only BEC/BEC2/BF3 files or ConfigCards that are encrypted with a matching customer key...
Definition: typedefs.h:3260
brp_MessageType
Event that triggered the message.
Definition: typedefs.h:523
More accurate info: The reader supports reading the PCN of HID iCLASS SR cards as documented here...
Definition: typedefs.h:1757
unsigned RgbColor2
This field is only available in case of a pulse signal.
Definition: typedefs.h:3568
bool IncompleteFirmware
Due to an aborted upload, the firmware on the reader is incomplete and not fully functional.
Definition: typedefs.h:5894
File is specified by DF name.
Definition: typedefs.h:119
iCLASS via ISO 15693
Definition: typedefs.h:2875
The reader supports MIFARE Plus EV0 cards in Security Level 3 using AES authentication as documented ...
Definition: typedefs.h:1603
brp_VHL_Setup_FileSpecifier
The method to select the file.
Definition: typedefs.h:6486
bool AdvantAddressMode
Use Advant address mode.
Definition: typedefs.h:161
DESFire native mode (default communication mode).
Definition: typedefs.h:3983
brp_KeyAccessRights_DiversificationMode DiversificationMode
Definition: typedefs.h:736
brp_Iso14b_Attrib_EOF_
End Of Frame (EOF) flag for sending data to reader.
Definition: typedefs.h:5006
The reader supports ISO 14443 Type A cards as documented here.
Definition: typedefs.h:1539
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:2279
brp_UI_Sense_PortState
Definition: typedefs.h:6135
brp_Iso14b_Request_FWI
Frame Waiting time Integer (FWI).
Definition: typedefs.h:4688
Keylength: 8 byte.
Definition: typedefs.h:764
Custom Virtual LED (VLED) port.
Definition: typedefs.h:2160
brp_Mif_ChangeValueBackup_Mode
Access mode.
Definition: typedefs.h:5529
bool Khz125Part1
Scans for the following 125kHz cards: EM4205, EM4305, EM4100, EM4102, EM4450, Farpointe Pyramid...
Definition: typedefs.h:3073
unsigned GreatestBlockedFwVersionMajor
Binary that specifies the major number of the greatest non-blocked fw version.
Definition: typedefs.h:3493
bool Iso15693
Scans for ISO-15693-compatible cards, e.g.
Definition: typedefs.h:3097
Refers to a general purpose I/O.
Definition: typedefs.h:2112
unsigned GreatestBlockedFwVersionBuild
Binary that specifies the build number of the greatest non-blocked fw version.
Definition: typedefs.h:3501
brp_VHL_Setup_Iso15HasBlockSize
Definition: typedefs.h:6463
unsigned SmallestBlockedFwVersionMajor
Binary that specifies the major number of the smallest blocked fw version.
Definition: typedefs.h:3481
bool Hitag2M
HITAG 2 Manchester.
Definition: typedefs.h:30
brp_Mif_AuthUser_AuthMode
Authentication Mode.
Definition: typedefs.h:5478
Custom Virtual LED (VLED) port.
Definition: typedefs.h:2156
brp_Desfire_Authenticate_KeyDivMode
Specifies diversification algorithm.
Definition: typedefs.h:3745
The reader has an RGB LED that is fully customizable.
Definition: typedefs.h:1793
The reader supports MIFARE DESFire EV3 cards as documented here.
Definition: typedefs.h:1805
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:1671
References keys within the CryptoKey memory.
Definition: typedefs.h:210
Access rights and key info.
Definition: typedefs.h:670
See description above.
Definition: typedefs.h:2799
The reader supports EM 4205 cards as documented here.
Definition: typedefs.h:1627
unsigned IsoFileId
ISO file ID.
Definition: typedefs.h:4010
The reader will boot in Autoread mode and scan for cards, no matter if its configuration contains an ...
Definition: typedefs.h:3306
LBus protocol.
Definition: typedefs.h:465
brp_DivisorInteger
Divisor Send/Receive Integer (DSI/DRI)
Definition: typedefs.h:1403
Custom Virtual LED (VLED) port.
Definition: typedefs.h:2136
unsigned Version
Key version.
Definition: typedefs.h:732
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:5337
brp_ProtocolID
A list of all protocols.
Definition: typedefs.h:399
unsigned AppId
Application ID - range from 0x00000000 to 0x00FFFFFF.
Definition: typedefs.h:4006
Complete the BEC transfer, but don&#39;t reboot.
Definition: typedefs.h:5937
Refers to a general purpose I/O.
Definition: typedefs.h:2096
Custom Virtual LED (VLED) port.
Definition: typedefs.h:2124
ISO-15693-compliant label.
Definition: typedefs.h:2851
The reader supports ST SRIX cards as documented here.
Definition: typedefs.h:1611
The reader supports firmware/configuration upload via BEC2 files.
Definition: typedefs.h:1801
brp_VirtualLedDefinition_Mode Mode
This byte is required to enable additional fields for the characterization of the desired LED behavio...
Definition: typedefs.h:3556
Abstract card type for reading MIFARE DESFire cards using a special VHL implementation for LEGIC read...
Definition: typedefs.h:2987
size_t WriteBlock_len
Length of WriteBlock (in bytes).
Definition: typedefs.h:5328
bool IoPortWrite
Has to be cleared to deny write access to io ports.
Definition: typedefs.h:3399
Resolvable private random address.
Definition: typedefs.h:3668
iCLASS via proprietary ISO 14443 Type B protocol derivate (Level 2 compatible)
Definition: typedefs.h:2871
The reader supports EM 4100 cards as documented here.
Definition: typedefs.h:1631
The reader supports OSDP specification version 2.17.
Definition: typedefs.h:1785
Custom Virtual LED (VLED) port.
Definition: typedefs.h:2148
brp_AutoReadMode
Definition: typedefs.h:3291
unsigned SmallestBlockedFwVersionMinor
Binary that specifies the minor number of the smallest blocked fw version.
Definition: typedefs.h:3485
SAM AV1 mode (2 encryption rounds for Tripple DES keys).
Definition: typedefs.h:6016
SAM AV1 mode only for DES keys - two encryption rounds.
Definition: typedefs.h:3931
The reader supports EM 4450 cards as documented here.
Definition: typedefs.h:1635
bool CRC16bit
Use 16-bit CRC.
Definition: typedefs.h:187
Custom Virtual LED (VLED) port.
Definition: typedefs.h:2144
brp_VHL_Setup_LegicAdrMode
Specifies the addressing mode.
Definition: typedefs.h:6321
bool IsPulse
If true , this virtual LED definition describes a pulse signal that continuously fades between 2 RGB ...
Definition: typedefs.h:3514
SAM AV1 compatible mode (AES, 3K3DES, 3DES: 2 encryption rounds).
Definition: typedefs.h:3757
brp_MobileId_Enable_Mode
Definition: typedefs.h:5723
The reader supports Farpointe Pyramid cards as documented here.
Definition: typedefs.h:1639
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:4882
brp_buf WriteBlock
Content that shall be written to blocks starting at BlockId
Definition: typedefs.h:5324
Due to an aborted upload, the firmware on the reader is incomplete and not fully functional.
Definition: typedefs.h:1737
brp_Mif_AuthE2_AuthMode
Authentication Mode.
Definition: typedefs.h:5455
Parity is used.
Definition: typedefs.h:1938
bool HidIoprox
ioProx
Definition: typedefs.h:38
brp_buf PUPI
Pseudo-Unique PICC Identifier (PUPI).
Definition: typedefs.h:4872
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:1731
This is a Shortcut for RepeatLoop 1 which is actually a dummy operation, as the repeat block is was a...
Definition: typedefs.h:2319
The reader has a red LED.
Definition: typedefs.h:1519
The hardware limits the HF baud rate to 106 kbps.
Definition: typedefs.h:1719
bool Hitag2B
HITAG 2 Biphase.
Definition: typedefs.h:26
bool FirmwareVersionBlockedLegacy
The loaded firmware version is blacklisted.
Definition: typedefs.h:5811
The reader can read the UID of a PicoPass card.
Definition: typedefs.h:1705
brp_VHL_Setup_HasMifareKey
Definition: typedefs.h:6158
Jumps back to the corresponding StartLoop a specified number of repetitions.
Definition: typedefs.h:2233
Fire the corresponding "OnSetXxxx" event if the corresponding input port&#39;s state is set...
Definition: typedefs.h:2774
brp_RunSequenceCmd_CmdCode CmdCode
Definition: typedefs.h:2745
SAM AV1 mode only for DES keys - two encryption rounds).
Definition: typedefs.h:3959
The reader supports Mifare Ultralight cards as documented The reader supports Mifare Ultralight cards...
Definition: typedefs.h:1765
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:3979
The reader can read the UID of an ISO 14443 Type A card.
Definition: typedefs.h:1545
Enable/disable/toggle the blue LED (if available).
Definition: typedefs.h:2076
bool SupportsWriteNoResponse
Definition: typedefs.h:3637
Authenticate with Key B.
Definition: typedefs.h:5463
brp_buf AppData
Application data field.
Definition: typedefs.h:4878
MIFARE Plus L3.
Definition: typedefs.h:2839
bool HWoptions
A hardware options error occurred, device out of order.
Definition: typedefs.h:5867
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:6143
Do never fire the corresponding event (no matter what the corresponding input port&#39;s state is) ...
Definition: typedefs.h:2766
brp_UI_Toggle_Polarity
Definition: typedefs.h:6112
SAM AV2 mode (AES according NXP: AN 10922).
Definition: typedefs.h:3761
bool VariableSize
Definition: typedefs.h:3645
brp_buf UID
Unique ID of label.
Definition: typedefs.h:5266
bool HidProx32
HID Prox32.
Definition: typedefs.h:62
brp_Iso15_SetMode_Mode
Communication mode for label addressing.
Definition: typedefs.h:5275
bool SysReset
Has to be cleared to deny allow reboot/powerdown of system.
Definition: typedefs.h:3419
bool ConfigurationInconsistent
The reader configuration is corrupted.
Definition: typedefs.h:5771
brp_Iso14b_Attrib_SOF
Start Of Frame (SOF) flag for sending data to reader.
Definition: typedefs.h:5029
Increment the value.
Definition: typedefs.h:5509
brp_Iso14L4_SetupAPDU_FSCI
Frame Size proximity Card Integer (FSCI).
Definition: typedefs.h:5112
Definition: typedefs.h:4002
Refers to a general purpose I/O.
Definition: typedefs.h:2100
bool Bluetooth
The Bluetooth chip of the reader is defective, device out of order.
Definition: typedefs.h:5781
brp_VHL_Setup_Iso14HasApduTimeout
Definition: typedefs.h:6572
unsigned Value
Value of counter (Baltech internal use)
Definition: typedefs.h:5922
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:4565
brp_Sys_CfgLoadFinish_FinalizeAction
Defines the reader&#39;s behaviour on error/success.
Definition: typedefs.h:5927
unsigned WriteKeyIdx
Index of the write key on the reader If omitted and WriteKeyNo is equal to ReadKeyNo ...
Definition: typedefs.h:3215
bool Rf13MHzLegacy
The 13.56 MHz RFID interface of the reader is defective, device out of order.
Definition: typedefs.h:5861
The customer key and the Config Security Code have to match for this BEC/BEC2/BF3 file or ConfigCard ...
Definition: typedefs.h:3268
SAM AV1 mode (3DES: 1 encryption round).
Definition: typedefs.h:3753
Bluetooth MCE; Mobile Card Emulation over Bluetooth.
Definition: typedefs.h:2967
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:2770
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:4902
brp_Mif_ChangeValue_Mode
Access mode.
Definition: typedefs.h:5501
bool VhlFormat
Has to be cleared to deny formattings cards via VHL.
Definition: typedefs.h:3371
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:6490
Decrements a value block by the given value and stores the result in the Transfer Buffer...
Definition: typedefs.h:5621
Key diversification according to NXP AN10922.
Definition: typedefs.h:707
brp_Ultralight_AuthE2_DivMode
Specifies diversification algorithm.
Definition: typedefs.h:6004
brp_buf IsoDfName
ISO DF filename (optional, 0..16 bytes)
Definition: typedefs.h:4014
No Parity is used.
Definition: typedefs.h:1934
The reader supports Jewel cards as documented here.
Definition: typedefs.h:1615
bool BatteryManagement
The battery management system of the reader is defective, device out of order.
Definition: typedefs.h:5799
Combined Decrement and Transfer.
Definition: typedefs.h:5633
bool FactorySettings
An error occurred during a factory reset, leaving the reader without any settings instead of restorin...
Definition: typedefs.h:5764
Useful if a lot of operations need to be performed with the same label since the UID is not transferr...
Definition: typedefs.h:5287
unsigned BlockAddress
Block address of the sector that is switched to the targeted security level.
Definition: typedefs.h:5688
Enable/disable/toggle the beeper (if available).
Definition: typedefs.h:2060
The reader has a green LED.
Definition: typedefs.h:1515
unsigned DivIdx
Index for data converter rule: Possible values:
Definition: typedefs.h:742
bool NewerReaderChipFirmware
The reader chip has not accepted the reader chip firmware included in the latest firmware update...
Definition: typedefs.h:5754
Accept any kind of BEC/BEC2/BF3 files or ConfigCards, even unencrypted ones.
Definition: typedefs.h:3256
size_t NFCID_len
Length of NFCID (in bytes).
Definition: typedefs.h:4376
brp_VHL_Setup_Iso15HasFirstBlock
Definition: typedefs.h:6366
brp_Iso14b_Request_FSCI FSCI
Frame Size proximity Card Integer (FSCI).
Definition: typedefs.h:4910
bool ConfigRead
Has to be cleared to deny read access to configuration keys/values.
Definition: typedefs.h:3415
unsigned ADC
Application Data Coding supported by the PICC.
Definition: typedefs.h:4929
brp_Mif_ValueSL3_Cmd
Selects a value operation.
Definition: typedefs.h:5613
brp_Desfire_AuthExtKey_CryptoMode
Sets the encryption algorithm.
Definition: typedefs.h:3806
The reader supports 125 kHz cards.
Definition: typedefs.h:1535
If execution of the sequence was aborted, jump to this label and run the following commands until End...
Definition: typedefs.h:2255
Custom Virtual LED (VLED) port.
Definition: typedefs.h:2164
BRP protocol over RS485 connection.
Definition: typedefs.h:411
bool GuiAccess
Has to be cleared to deny access to keypad/lcd.
Definition: typedefs.h:3395
bool ExtendedAccess
Has to be cleared to deny allow access to the extended reader partition.
Definition: typedefs.h:3351
Fire the corresponding event always (no matter what the corresponding input port&#39;s state is) ...
Definition: typedefs.h:2778
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:5914
Align to the right.
Definition: typedefs.h:271
Custom Virtual LED (VLED) port.
Definition: typedefs.h:2168
brp_KeyAccessRights_KeySettings KeySettings
Access rights and key info.
Definition: typedefs.h:728
The initial and final port state is disabled/inactive/low.
Definition: typedefs.h:6116
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:3656
brp_VHL_Setup_LegicHasEnStamp
Definition: typedefs.h:6273
bool WiFi
The WiFi chip of the reader is defective, device out of order.
Definition: typedefs.h:5787
bool Ble
BLE license.
Definition: typedefs.h:3585
Restore/load the value.
Definition: typedefs.h:5513
Mobile ID is enabled.
Definition: typedefs.h:5727
The hardware limits the HF baud rate to 212 kbps.
Definition: typedefs.h:1725
Decrement the value.
Definition: typedefs.h:5505
The customer key and the Config Security Code have to match for this BEC/BEC2/BF3 file or ConfigCard ...
Definition: typedefs.h:3272
Restore/load the value.
Definition: typedefs.h:5541
bool Rf13MHz
The 13.56 MHz RFID interface for ISO 14443/ISO 15693 card systems is defective, device out of order...
Definition: typedefs.h:5847
brp_Desfire_ChangeExtKey_MasterKeyType
These bits must only be set if the card&#39;s Master Key is changed.
Definition: typedefs.h:3895
A SAM AV3 card is inserted.
Definition: typedefs.h:1781
brp_Desfire_ChangeKey_NewKeyDivMode
Specifies diversification algorithm.
Definition: typedefs.h:3923
unsigned Param
This field represents a time (either in milliseconds or seconds).
Definition: typedefs.h:2753
bool VhlRead
Has to be cleared to deny reading cards via VHL.
Definition: typedefs.h:3379
MIFARE Classic (1k and 4k variants)
Definition: typedefs.h:2803
iCLASS via standard-compliant ISO 14443 Type B protocol (Level 3 compatible)
Definition: typedefs.h:2867
bool Ethernet
The Ethernet interface of the reader is defective, device out of order.
Definition: typedefs.h:5829
unsigned FileSize
**Only needed to run VHL.Format .
Definition: typedefs.h:3237
brp_Felica_GenericCmd_FastBaud
Baudrate PCD-PICC.
Definition: typedefs.h:4322
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:5341
A bitmask containing the physical LEDs you want to switch.
Definition: typedefs.h:1907
bool Keyboard
The keyboard of the reader is defective, device out of order.
Definition: typedefs.h:5805
Custom Virtual LED (VLED) port.
Definition: typedefs.h:2172
Low-level card type/programmable decoder.
Definition: typedefs.h:2939
brp_AutoRunCommand_RunMode
Definition: typedefs.h:348
brp_RunSequenceCmd_CmdCode
Definition: typedefs.h:2221
bool RequireContinuousIv
Initialvector of CBC encryption is not reset between commands.
Definition: typedefs.h:3456
bool FlashFileSystemWrite
Has to be cleared to deny write access to flash file system.
Definition: typedefs.h:3355
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:2935
bool IClassIso14B
Can be used instead of iCLASS to increase scanning speed.
Definition: typedefs.h:3089
unsigned GreatestBlockedFwVersionMinor
Binary that specifies the minor number of the greatest non-blocked fw version.
Definition: typedefs.h:3497
LEGIC neon file.
Definition: typedefs.h:2991
bool HfLowlevelAccess
Has to be cleared to deny allow to access HF via low level commands.
Definition: typedefs.h:3391
The reader supports SecuraKey cards as documented here.
Definition: typedefs.h:1675
bool IsDivInfo
The value for diversification data can be found in Project/DiversificationData.
Definition: typedefs.h:678
The reader returned a log message.
Definition: typedefs.h:555
unsigned Page
Project crypto memory page (range 0..0x0F)
Definition: typedefs.h:751
The reader supports Hitag 2 Manchester cards as documented here.
Definition: typedefs.h:1687
size_t IsoDfName_len
Length of IsoDfName (in bytes).
Definition: typedefs.h:4018
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:3339
Use this value to select a SAM different from those named above.
Definition: typedefs.h:5358
The firmware can be updated via a serial interface (RS-232/UART or virtual COM port).
Definition: typedefs.h:1741
Infineon my-d proximity (SLE55); this is a legacy value that is no longer returned since firmware ver...
Definition: typedefs.h:2823
The reader supports PKI-encrypted communication with the host.
Definition: typedefs.h:1749
unsigned Size
Specifies the size of the characteristic in bytes.
Definition: typedefs.h:3651
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:4898
The reader supports 13.56 MHz cards.
Definition: typedefs.h:1531
Custom Virtual LED (VLED) port.
Definition: typedefs.h:2140
The port is enabled/active/high.
Definition: typedefs.h:6139
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:3198
MIFARE native mode (default communication mode).
Definition: typedefs.h:5704
brp_buf ApduCommand
APDU command by which to select the file.
Definition: typedefs.h:6540
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:4950
unsigned ChangeKeyIdx
**Only needed to run VHL.Format .
Definition: typedefs.h:3231
Non-resolvable private random address.
Definition: typedefs.h:3672
An HID SAM card is inserted.
Definition: typedefs.h:1591
brp_Mif_VirtualCardSelect_FciType
Type of File Control Information returned.
Definition: typedefs.h:5656
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:4906
bool SetAccessConditionMask2
Has to be cleared to deny set ac 2.
Definition: typedefs.h:3423
bool SecuraKey
SecuraKey.
Definition: typedefs.h:103
Retrieve the state of the custom input 1.
Definition: typedefs.h:2072
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:3560
unsigned ID
ID of statistics counter (Baltech internal use)
Definition: typedefs.h:5918
LEGIC advant ISO 15693.
Definition: typedefs.h:2855
bool HidIndalaSecure
Indala ASP+.
Definition: typedefs.h:95
Keylength: 16 byte.
Definition: typedefs.h:768
unsigned SectorKeyIdx
Crypto Memory Index (SAM or CryptoMemory) of the sector key.
Definition: typedefs.h:5695
Copies the value block content to the TransferBuffer.
Definition: typedefs.h:5637
Use this value to select an HID SE Processor (also known as iClass SAM).
Definition: typedefs.h:5354
Transfers the content of the Transfer Buffer to the specified address.
Definition: typedefs.h:5625
bool VhlExchangeapdu
Has to be cleared to deny running VHL APDU Exchange.
Definition: typedefs.h:3367
Authenticate with Key B.
Definition: typedefs.h:5486
HITAG 1 or S.
Definition: typedefs.h:2927
A card or a phone with an active Mobile ID app was presented to the reader.
Definition: typedefs.h:527
HID Indala ASP+.
Definition: typedefs.h:2955
FIPS201 Personal Identity Verification (PIV)
Definition: typedefs.h:2983
The tamper alarm was activated.
Definition: typedefs.h:531
brp_VHL_Setup_LegicHasAdrMode
Definition: typedefs.h:6296
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:1821
bool FactoryReset
Has to be cleared to deny resetting system to factory settings.
Definition: typedefs.h:3447
bool Bf2Upload
Has to be cleared to deny allow to upload firmware.
Definition: typedefs.h:3347
Custom Virtual LED (VLED) port.
Definition: typedefs.h:2120
bool EM4450
EM4450.
Definition: typedefs.h:70
brp_Desfire_ReadData_Mode
Communication settings linked to the file.
Definition: typedefs.h:3839
bool IClass
Scans for iCLASS and iCLASS SR cards.
Definition: typedefs.h:3083
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:760
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:1549
Selects all available protocols.
Definition: typedefs.h:403
Definition: typedefs.h:5262
unsigned DeviceCode
Definition: typedefs.h:384
A SAM AV2 card is inserted.
Definition: typedefs.h:1587
The reader supports Hitag 1 and Hitag S cards as documented here.
Definition: typedefs.h:1683
Generic ISO 14443-3 Type A without ISO 7816-4 support.
Definition: typedefs.h:2807
The reader supports AES-encrypted communication with the host.
Definition: typedefs.h:1745
brp_Parity
Specifies the Parity-bit mode which is used for RS-232/UART protocols.
Definition: typedefs.h:1930
brp_VHL_Setup_FileSpecifier FileSpecifier
The method to select the file.
Definition: typedefs.h:6520
To only read the application data of the segment, use this mode.
Definition: typedefs.h:6351
Specifies a minimum of security requirements, when working in this security level.
Definition: typedefs.h:3452
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:5760
bool EM4205
EM4205/EM4305.
Definition: typedefs.h:78
HID Indala ASP.
Definition: typedefs.h:2911
The reader supports ISO 14443-4 cards as documented here.
Definition: typedefs.h:1619
size_t Path_len
Length of Path (in bytes).
Definition: typedefs.h:6536
The reader supports Indala FlexSecur cards as documented here.
Definition: typedefs.h:1667
Parity is used.
Definition: typedefs.h:1942
Select the file using an APDU command.
Definition: typedefs.h:6500
The reader supports FeliCa cards as documented here.
Definition: typedefs.h:1569
The reader can read the UID of an ISO 15693 card.
Definition: typedefs.h:1565
The reader has a SAM slot.
Definition: typedefs.h:1583
brp_Ultralight_AuthUser_CryptoMode
Sets the encryption algorithm.
Definition: typedefs.h:6037
Complete the BEC transfer and do an implicit reboot.
Definition: typedefs.h:5943
brp_Iso14b_Attrib_TR1
Minimum delay between subcarrier modulation start and beginning of data transmission.
Definition: typedefs.h:4978
brp_VHL_Setup_HasDesfireFileDesc
Definition: typedefs.h:6250
Commit will be performed when writing to address 0xFFFF.
Definition: typedefs.h:3148
LEGIC advant ISO 14443 Type A.
Definition: typedefs.h:2835
brp_Mif_SetFraming_CommMode
Defines 14443-4 communication mode for MIFARE Plus EV1 cards.
Definition: typedefs.h:5700
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:3310
bool RTC
The real-time clock is defective, device out of order.
Definition: typedefs.h:5873
bool HostToHostAccess
Has to be cleared to deny access to commands that allow host-to-host communication.
Definition: typedefs.h:3335
The reader will boot in Autoread mode only if its configuration contains at least 1 Autoread RFID int...
Definition: typedefs.h:3314
brp_buf NFCID
ID of label.
Definition: typedefs.h:4372
bool SingleLed
Single LED of the reader.
Definition: typedefs.h:1925
bool CryptoAccess
Has to be cleared to deny allow access to the encryption unit.
Definition: typedefs.h:3343
unsigned IsoFid
**Only needed to run VHL.Format .
Definition: typedefs.h:3243
bool Quadrakey
QuadraKey.
Definition: typedefs.h:54
HID Proximity.
Definition: typedefs.h:2919
brp_Iso14b_Attrib_FSDI
Frame Size proximity coupling Device Integer (FSDI) value.
Definition: typedefs.h:5054
To read the segment stamp , use this mode.
Definition: typedefs.h:6327
bool RtcWrite
Has to be cleared to deny write access to RTC.
Definition: typedefs.h:3363
brp_Iso14b_Request_SFGI
Start-up Frame Guard time Integer (SFGI).
Definition: typedefs.h:4780
brp_VHL_Setup_Iso15HasBlockCount
Definition: typedefs.h:6389
Enable/disable/toggle the green LED (if available).
Definition: typedefs.h:2052
The reader supports Mobile ID as documented here.
Definition: typedefs.h:1809
Combined Increment and Transfer.
Definition: typedefs.h:5629
bool ConfCardPresented
You&#39;ve run a VHL.Select command with AcceptConfCard set to true after presenting a ConfigCard to the ...
Definition: typedefs.h:5823
brp_FeatureID
Definition: typedefs.h:1511
brp_IoPort
I/O pins of the reader that can be controlled by the user.
Definition: typedefs.h:2048
The reader has a blue LED.
Definition: typedefs.h:1695
brp_Felica_Request_FastBaud
Baudrate PCD-PICC.
Definition: typedefs.h:4345
Open Supervised Standard Protocol.
Definition: typedefs.h:477
brp_Iso14b_Request_SFGI SFGI
Start-up Frame Guard time Integer (SFGI).
Definition: typedefs.h:4945
The reader supports MIFARE DESFire EV2 cards as documented here.
Definition: typedefs.h:1773
brp_KeyAccessRights_DiversificationMode
Definition: typedefs.h:699
SAM AV1 mode for all key types / one encryption round for DES keys.
Definition: typedefs.h:3955
Enable the port ID stored in the Field Param.
Definition: typedefs.h:2225
configures the pins which are usually used by the Wiegand / RawSerial /...
Definition: typedefs.h:445
HITAG 2 Manchester.
Definition: typedefs.h:2931
bool Hid
Standard Prox license:
Definition: typedefs.h:3608
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:575
Increments a value block by the given value and stores the result in the Transfer Buffer...
Definition: typedefs.h:5617
Do not run Autoread at all.
Definition: typedefs.h:3295
Enable/disable/toggle the relay (if available).
Definition: typedefs.h:2064
bool HidOnlyForSE
SE Prox license:
Definition: typedefs.h:3600
unsigned brp_DesfireKeyIdx
Definition: typedefs.h:111
Commit will be performed automatically.
Definition: typedefs.h:3144
bool Display
The display of the reader is defective, device out of order.
Definition: typedefs.h:5817
brp_buf Name
The name of the DF to be selected (1..16 bytes)
Definition: typedefs.h:6524
Definition: typedefs.h:5684
Align to the left.
Definition: typedefs.h:275
Refers to a general purpose I/O.
Definition: typedefs.h:2104
For Ultralight-C authentication, a Tripple DES key has to be specified.
Definition: typedefs.h:6041
Wait exactly the amount of seconds specified in Param before going on.
Definition: typedefs.h:2241
brp_VHL_Setup_Iso15OptionFlag
Option flag value for read/write operations.
Definition: typedefs.h:6435
bool EM4100
EM4100/EM4102.
Definition: typedefs.h:74
Cancel the BEC transfer and undo all configuration changes since Sys.CfgLoadPrepare.
Definition: typedefs.h:5931
The following label commands are sent without an UID (broadcast).
Definition: typedefs.h:5279
This is a ShortCut for RepeatLoop 2.
Definition: typedefs.h:2323
ISO 14443-4 Type A compliant with ISO7816-4; this is a legacy value that is no longer returned since ...
Definition: typedefs.h:2811
brp_Desfire_AuthExtKey_SecureMessaging
Sets the secure messaging mode.
Definition: typedefs.h:3778
bool ConfigReset
Has to be cleared to deny reset configuration keys/while configuration.
Definition: typedefs.h:3407
The reader supports G-Prox cards as documented here.
Definition: typedefs.h:1679
Retrieve the state of the custom input 0.
Definition: typedefs.h:2068
The reader can read the UID of a FeliCa card.
Definition: typedefs.h:1575
LEGIC advant (ISO 14443 Type A/ISO 15693); this is a legacy value - it has been replaced by LEGICAdva...
Definition: typedefs.h:2847
bool ContainsTransitionTime
If true , this virtual LED definition contains an individual transition time, which is applied to thi...
Definition: typedefs.h:3510
Enable/disable/toggle the red LED (if available).
Definition: typedefs.h:2056
bool EnableCRC
CRC check is enabled for this fragment.
Definition: typedefs.h:176
Fido 2.1.
Definition: typedefs.h:2979
General info: The reader supports reading the PCN of HID iCLASS cards as documented here...
Definition: typedefs.h:1753
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:4886
SAM AV1 mode for all key types / one encryption round for DES keys.
Definition: typedefs.h:3927
The user has pressed a certain function key, e.g.
Definition: typedefs.h:549
unsigned DSFID
DSFID of label, only available, if DSFID bit in Mode has been set.
Definition: typedefs.h:5270
For Ultralight-EV1 password diversification (NXP AN12694), an AES key has to be specified.
Definition: typedefs.h:6045
Use this value only if the reader has 2 SAM slots, and both SAMs are different from those named above...
Definition: typedefs.h:5365
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:4894
Definition: typedefs.h:5320
Chip Card Interface Device (CCID).
Definition: typedefs.h:469
Abstract card type for reading SIO Elements.
Definition: typedefs.h:2975
Wait exactly the amount of ms specified in the field Param before going on.
Definition: typedefs.h:2237
brp_VHL_Setup_Iso15HasOptionFlag
Definition: typedefs.h:6412
LEGIC prime; this is a legacy value - it has been replaced by LEGICPrime.
Definition: typedefs.h:2843
This is a Shortcut for WaitMs 100.
Definition: typedefs.h:2379
bool ExtSamAccess
Has to be cleared to deny access to SAM over 7816-3 commands ( Iso78 command group) ...
Definition: typedefs.h:3387
bool IsDivInfoVhl
The value for diversification data can be found in VhlCfg/File/DesfireDiversificationData.
Definition: typedefs.h:682
brp_buf Path
A list of one or more 16-bit file IDs.
Definition: typedefs.h:6532
The customer key and the Config Security Code have to match for this BEC/BEC2/BF3 file or ConfigCard ...
Definition: typedefs.h:3264
Activates only the LEDs on the left side.
Definition: typedefs.h:3532
ISO 7816 compatible framing (only MIFARE Plus EV1)
Definition: typedefs.h:5708
bool SupportsRead
Definition: typedefs.h:3641
uid_len(1), card type(1) and memory size(1).
Definition: typedefs.h:5668
brp_FireEventAtPowerup
In Autoread mode this values are specifing the states that shall be assumed for input ports before re...
Definition: typedefs.h:2762
Disable the port ID of the Field Param.
Definition: typedefs.h:2229
Retrieve the state of the tamper alarm.
Definition: typedefs.h:2080
The reader supports inter-industry ISO 14443-4 cards as documented here.
Definition: typedefs.h:1623
ISO 14443-3 Type B without ISO 7816-4 support.
Definition: typedefs.h:2859
brp_Mif_AuthE2Extended_AuthLevel
Desired authentication level.
Definition: typedefs.h:5557
bool Configuration
The reader configuration is corrupted.
Definition: typedefs.h:5884
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:1527
Definition: typedefs.h:3613
brp_Mif_AuthUserExtended_AuthLevel
Desired authentication level.
Definition: typedefs.h:5585
unsigned Idx
Project crypto memory index within page (range 0x80..0xBF)
Definition: typedefs.h:755
Default settings (Actual behavior is usage-dependent).
Definition: typedefs.h:3252
bool ConfigWrite
Has to be cleared to deny write access to configuration keys/values.
Definition: typedefs.h:3411
bool SetKey3
Has to be cleared to deny set security key 3.
Definition: typedefs.h:3435
Farpointe Pyramid.
Definition: typedefs.h:2895
Indicates that the reader is connected to a BALTECH IF Converter (or the IF Converter middleware) tha...
Definition: typedefs.h:489
EM 4205/EM 4305.
Definition: typedefs.h:2883
brp_Alignment
This is the desired data alignment.
Definition: typedefs.h:267
A previously presented card has been removed.
Definition: typedefs.h:545
bool SetAccessConditionMask0
Has to be cleared to deny set ac 0.
Definition: typedefs.h:3431
bool SetAccessConditionMask1
Has to be cleared to deny set ac 1.
Definition: typedefs.h:3427
brp_VHL_Setup_Iso14HasFileLen
Definition: typedefs.h:6549
unsigned FileNo
The DESFire file number to access.
Definition: typedefs.h:3168
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:4890
Authenticate with Key A.
Definition: typedefs.h:5459
Authenticate with Key A.
Definition: typedefs.h:5482
unsigned TransitionTime
This field defines the transition time which is applied whenever this virtual LED is enabled...
Definition: typedefs.h:3572
The reader supports Hitag 2 Biphase cards as documented here.
Definition: typedefs.h:1691
Select the file by path, i.e.
Definition: typedefs.h:6496
bool RequireEncrypted
Commands are transferred encrypted.
Definition: typedefs.h:3460
brp_Iso14b_Request_ProtType ProtType
When this bit is set, the PICC supports ISO14443-4.
Definition: typedefs.h:4914
Definition: typedefs.h:5333
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:5841
bool ContainsPhysicalLedSelection
If true , this virtual LED definition contains the field PhysicalLedSelection.
Definition: typedefs.h:3519
brp_AuthReqUpload
Specifies the authentication level the BEC/BEC2/BF3 file or ConfigCard has to fulfill to be accepted...
Definition: typedefs.h:3248
brp_TemplateBitorder
This is the bit order for the CutNibbles command.
Definition: typedefs.h:244
The reader has a beeper.
Definition: typedefs.h:1523
brp_VHL_Setup_DesfireHasAppId
Definition: typedefs.h:6227
bool Khz125Part2
Scans for the following 125kHz cards: SecuraKey, G-Prox, Indala ASP+, Cotag, Idteck.
Definition: typedefs.h:3065
Refers to a general purpose I/O.
Definition: typedefs.h:2092
MIFARE Ultralight.
Definition: typedefs.h:2815
unsigned ReadKeyIdx
Index of the read key on the reader.
Definition: typedefs.h:3206
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:3101
bool CID
If this flag is set, the PPIC supports CID.
Definition: typedefs.h:4937
BLE HCI Protocol.
Definition: typedefs.h:481
brp_Iso14b_Request_FSCI
Frame Size proximity Card Integer (FSCI).
Definition: typedefs.h:4603
bool Rf13MHzLegic
The 13.56 Mhz RFID interface for LEGIC cards is defective, device out of order.
Definition: typedefs.h:5853
bool RightLed
LED(s) on the right side of the reader.
Definition: typedefs.h:1919
brp_Iso14b_Request_ProtType
When this bit is set, the PICC supports ISO14443-4.
Definition: typedefs.h:4661
bool RequireMac
A Cryptographic Signature is attached to every command.
Definition: typedefs.h:3464
This is a ShortCut for EnablePort GreenLed , if GreenLed is enabled otherwise DisablePort GreenLed...
Definition: typedefs.h:2299
Refers to a general purpose I/O.
Definition: typedefs.h:2108
bool SupportsIndicate
Definition: typedefs.h:3625
The initial and final port state is enabled/active/high.
Definition: typedefs.h:6120
brp_Desfire_ChangeKey_CurKeyDivMode
Specifies diversification algorithm.
Definition: typedefs.h:3951
The reader supports MIFARE Plus EV1 cards in Security Level 3 using AES authentication as documented ...
Definition: typedefs.h:1777
This is a ShortCut for EnablePort GreenLed (requires only one byte intead of 2).
Definition: typedefs.h:2259
brp_VirtualLedDefinition_PhysicalLedSelection PhysicalLedSelection
This field defines which physical LEDs are to be activated when the corresponding VLED port is enable...
Definition: typedefs.h:3564
SAM AV2 mode (AES according to NXP: AN 10922).
Definition: typedefs.h:6020
The reader supports Cotag cards as documented here.
Definition: typedefs.h:1699
The reader supports HID ioProx tags as documented here.
Definition: typedefs.h:1655
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:3172
AES SL3 authentication.
Definition: typedefs.h:5565
bool ExtendedLED
The RGB LED features of the reader are defective.
Definition: typedefs.h:5835
This byte is required to enable additional fields for the characterization of the desired LED behavio...
Definition: typedefs.h:3506
The reader supports Bluetooth Low Energy (BLE).
Definition: typedefs.h:1789
bool RequireSessionKey
3-pass authentication and sessionkey generation
Definition: typedefs.h:3468
brp_Baudrate
The Baudrate specifies the performance of an RS-232/UART based interface in bits per second...
Definition: typedefs.h:1960
The reader supports MIFARE DESFire EV1 cards as documented here.
Definition: typedefs.h:1607
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:1555
brp_Iso14a_RequestATS_FSDI
Frame Size proximity coupling Device Integer (FSDI) value.
Definition: typedefs.h:4507
brp_Desfire_ExecCommand_CryptoMode
Type of encryption.
Definition: typedefs.h:3689
More accurate info: The reader supports reading the PCN of HID iCLASS SE and Seos cards as documented...
Definition: typedefs.h:1761
bool Dataflash
The data flash chip is defective, device out of order.
Definition: typedefs.h:5879
bool Pyramid
Farpointe Pyramid.
Definition: typedefs.h:66
The reader supports Indala cards as documented here.
Definition: typedefs.h:1659
The reader supports MIFARE Classic cards and MIFARE Plus cards in Security Level 1 using MIFARE CRYPT...
Definition: typedefs.h:1599
The reader supports HID AWID tags as documented here.
Definition: typedefs.h:1647
bool NAD
If this flag is set, the PPIC supports NAD.
Definition: typedefs.h:4933
bool GProx
G-Prox.
Definition: typedefs.h:99
The reader supports IDTECK cards as documented here.
Definition: typedefs.h:1709
brp_Iso14b_Request_FWI FWI
Frame Waiting time Integer (FWI).
Definition: typedefs.h:4922
size_t Name_len
Length of Name (in bytes).
Definition: typedefs.h:6528
Refers to a general purpose I/O.
Definition: typedefs.h:2084
Definition: typedefs.h:6516
Custom Virtual LED (VLED) port.
Definition: typedefs.h:2132
bool IoPortRead
Has to be cleared to deny read access to io ports.
Definition: typedefs.h:3403
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:2749
Definition: typedefs.h:4868
brp_AutoRunCommand_RunMode RunMode
Definition: typedefs.h:380
Definition: typedefs.h:4368
bool SetKey2
Has to be cleared to deny set security key 2.
Definition: typedefs.h:3439
bool FirmwareVersionBlocked
The loaded firmware version is blacklisted.
Definition: typedefs.h:5775
bool LeftLed
LED(s) on the left side of the reader.
Definition: typedefs.h:1913
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:2831
The reader supports LEGIC cards as documented here.
Definition: typedefs.h:1579
bool VhlSelect
Has to be cleared to deny detection of cards via VHL.
Definition: typedefs.h:3383
brp_buf CharacteristicUUID
Specifies the UUID (16 or 128 bits) of the BLE characteristic.
Definition: typedefs.h:3617
bool FlashFileSystemRead
Has to be cleared to deny read access to flash file system.
Definition: typedefs.h:3359
unsigned FirmwareID
BCD number that specifies a firmware ID.
Definition: typedefs.h:3477
Every Feature in this list can be disabled by not setting the corresponding bit.
Definition: typedefs.h:3331
brp_VHL_Setup_MifareHasAsKeyA
Definition: typedefs.h:6181
bool SetKey1
Has to be cleared to deny set security key 1.
Definition: typedefs.h:3443
The reader supports PicoPass cards as documented here.
Definition: typedefs.h:1595
bool BleLicRequired
BLE license required.
Definition: typedefs.h:3591
brp_Desfire_Authenticate_SecureMessaging
Sets the secure messaging mode.
Definition: typedefs.h:3717
Mobile ID is disabled.
Definition: typedefs.h:5731
A PIN was entered via the reader&#39;s keyboard.
Definition: typedefs.h:539
The tamper alarm was deactivated.
Definition: typedefs.h:535
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:3106
The following label commands are sent including the UID given in UID.
Definition: typedefs.h:5283
unsigned WriteKeyNo
WriteKeyNo , i.e.
Definition: typedefs.h:3190
unsigned SmallestBlockedFwVersionBuild
Binary that specifies the build number of the smallest blocked fw version.
Definition: typedefs.h:3489
Activates only the LEDs on the right side.
Definition: typedefs.h:3528
The reader supports HID Prox32 tags as documented here.
Definition: typedefs.h:1643
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:3178
Custom Virtual LED (VLED) port.
Definition: typedefs.h:2116
The reader supports HID Prox tags as documented here.
Definition: typedefs.h:1651
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:1797
ISO 14443-4 Type B with ISO 7816-4 support.
Definition: typedefs.h:2863
unsigned Offset
Number of the first byte in the DESFire file to map into the VHL file.
Definition: typedefs.h:3194
brp_VirtualLedDefinition_PhysicalLedSelection
This field defines which physical LEDs are to be activated when the corresponding VLED port is enable...
Definition: typedefs.h:3524
bool Tamper
The tamper alarm is defective.
Definition: typedefs.h:5793
MIFARE DESFire (2k, 4k, and 8k variants)
Definition: typedefs.h:2819
size_t CharacteristicUUID_len
Length of CharacteristicUUID (in bytes).
Definition: typedefs.h:3621
The reader has a tamper alarm.
Definition: typedefs.h:1713
brp_DesfireFileDescription_FileType
Type of file to read.
Definition: typedefs.h:3136
BRP protocol over TCP/IP.
Definition: typedefs.h:419
unsigned AccessRightsLowByte
**Only needed to run VHL.Format .
Definition: typedefs.h:3221
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:1817
brp_Iso14L4_SetupAPDU_FWI
Frame Waiting time Integer (FWI).
Definition: typedefs.h:5174