AusweisApp2
BluetoothIDs.h
gehe zur Dokumentation dieser Datei
1 
7 #pragma once
8 
9 #include "EnumHelper.h"
10 
11 namespace governikus
12 {
13 
14 defineTypedEnumType(BluetoothMsgId, char,
15  ConnectRequest = 0x00,
16  ConnectResponse = 0x01,
17  DisconnectRequest = 0x02,
18  DisconnectResponse = 0x03,
19  DisconnectInd = 0x04,
20  TransferApduRequest = 0x05,
21  TransferApduResponse = 0x06,
22  TransferAtrRequest = 0x07,
23  TransferAtrResponse = 0x08,
24  PowerSimOffRequest = 0x0A,
25  PowerSimOffResponse = 0x0A,
26  PowerSimOnRequest = 0x0B,
27  PowerSimOnResponse = 0x0C,
28  ResetSimRequest = 0x0D,
29  ResetSimResponse = 0x0E,
30  TransferCardReaderStatusRequest = 0x0F,
31  TransferCardReaderStatusResponse = 0x10,
32  StatusInd = 0x11,
33  ErrorResponse = 0x12,
34  SetTransportProtocolRequest = 0x13,
35  SetTransportProtocolResponse = 0x14)
36 
37 defineTypedEnumType(BluetoothParamId, char,
38  MaxMsgSize = 0x00,
40  ResultCode = 0x02,
42  CommandAPDU = 0x04,
43  ResponseAPDU = 0x05,
44  ATR = 0x06,
46  StatusChange = 0x08,
48  CommandAPDU7816 = 0x10)
49 
50 defineEnumType(BluetoothConnectionStatus,
51  OkServerCanFulfillRequirements = 0x00,
52  ErrorServerUnableToEstablishConnection = 0x01,
53  ErrorServerDoesNotSupportMaximumMessageSize = 0x02,
54  ErrorMaximumMessageSizeByClientIsTooSmall = 0x03,
55  OkOngoingCall = 0x04)
56 
57 defineEnumType(BluetoothDisconnectionType, Graceful = 0x00, Immediate = 0x01)
58 
59 defineTypedEnumType(BluetoothResultCode, char,
60  Ok = 0x00,
61  ErrorNoReasonDefined = 0x01,
62  ErrorCardNotAccessible = 0x02,
63  ErrorCardAlreadyPoweredOff = 0x03,
64  ErrorCardRemoved = 0x04,
65  ErrorCardAlreadyPoweredOn = 0x05,
66  ErrorDataNotAvailabe = 0x06,
67  ErrorNotSupport = 0x07)
68 
69 defineTypedEnumType(BluetoothStatusChange, char,
70  Unknown = 0x00,
71  CardReset = 0x01,
72  CardNotAccessible = 0x02,
73  CardRemoved = 0x03,
74  CardInserted = 0x04,
75  CardRecovered = 0x05)
76 
77 defineTypedEnumType(BluetoothTransportProtocol, char, T0 = 0x00, T1 = 0x01)
78 
79 defineEnumType(BluetoothCardReaderStatus, Unknown = 0x00, CardInserted = 0x78, CardRemoved = 0x38)
80 
81 } // namespace governikus
governikus::DisconnectResponse
Definition: DisconnectResponse.h:18
governikus::ConnectRequest
Definition: RemoteConnectorImpl.cpp:33
governikus::MaxMsgSize
MaxMsgSize
Definition: BluetoothIDs.h:38
governikus::CommandAPDU
CommandAPDU
Definition: BluetoothIDs.h:42
governikus::DisconnectionType
DisconnectionType
Definition: BluetoothIDs.h:41
BluetoothIDs.h
governikus::defineTypedEnumType
defineTypedEnumType(AccessRight, uint, WRITE_DG17=37, WRITE_DG18=36, WRITE_DG19=35, WRITE_DG20=34, WRITE_DG21=33, RFU_32=32, RFU_31=31, RFU_30=30, RFU_29=29, READ_DG21=28, READ_DG20=27, READ_DG19=26, READ_DG18=25, READ_DG17=24, READ_DG16=23, READ_DG15=22, READ_DG14=21, READ_DG13=20, READ_DG12=19, READ_DG11=18, READ_DG10=17, READ_DG09=16, READ_DG08=15, READ_DG07=14, READ_DG06=13, READ_DG05=12, READ_DG04=11, READ_DG03=10, READ_DG02=9, READ_DG01=8, INSTALL_QUAL_CERT=7, INSTALL_CERT=6, PIN_MANAGEMENT=5, CAN_ALLOWED=4, PRIVILEGED_TERMINAL=3, RESTRICTED_IDENTIFICATION=2, COMMUNITY_ID_VERIFICATION=1, AGE_VERIFICATION=0) defineTypedEnumType(AccessRightNames
governikus::TransportProtocol
TransportProtocol
Definition: BluetoothIDs.h:47
governikus::ResultCode
ResultCode
Definition: BluetoothIDs.h:40
governikus::ConnectionStatus
ConnectionStatus
Definition: BluetoothIDs.h:39
governikus
Implementation of ActivationContext for Intent based activation on Android systems.
Definition: ActivationContext.h:15
governikus::defineEnumType
defineEnumType(KeyAgreementType, DH, ECDH) defineEnumType(MappingType
Method used for key agreement:
governikus::ATR
ATR
Definition: BluetoothIDs.h:44
EnumHelper.h
governikus::StatusChange
StatusChange
Definition: BluetoothIDs.h:46
governikus::ResponseAPDU
ResponseAPDU
Definition: BluetoothIDs.h:43
governikus::CardReaderStatus
CardReaderStatus
Definition: BluetoothIDs.h:45