Keyple Card Calypso C++ Library 2.1.0
Reference Terminal Reader API for C++
CalypsoCardConstant.cpp
Go to the documentation of this file.
1/**************************************************************************************************
2 * Copyright (c) 2022 Calypso Networks Association https://calypsonet.org/ *
3 * *
4 * See the NOTICE file(s) distributed with this work for additional information regarding *
5 * copyright ownership. *
6 * *
7 * This program and the accompanying materials are made available under the terms of the Eclipse *
8 * Public License 2.0 which is available at http://www.eclipse.org/legal/epl-2.0 *
9 * *
10 * SPDX-License-Identifier: EPL-2.0 *
11 **************************************************************************************************/
12
13#include "CalypsoCardConstant.h"
14
15namespace keyple {
16namespace card {
17namespace calypso {
18
19const int CalypsoCardConstant::MASK_15_BITS = 0x7FFF; /* 32 767 */
20const int CalypsoCardConstant::MASK_3_BYTES = 0xFFFFFF; /* 16 777 215 */
21
22/* SFI */
24const int CalypsoCardConstant::SFI_MAX = 30; /* 1Eh */
25
26/* Record number */
29
30/* Counter number */
32const int CalypsoCardConstant::NB_CNT_MAX = 83; /* Equal to "250 / 3" */
33
34/* Counter value */
36const int CalypsoCardConstant::CNT_VALUE_MAX = MASK_3_BYTES;
37
38/* Offset */
41const int CalypsoCardConstant::OFFSET_BINARY_MAX = MASK_15_BITS;
42
43/* Data */
46
47/* File Type Values */
51
52/* EF Type Values */
59
60/* Field offsets in select file response (tag/length excluded) */
75
76/* PIN Code */
78
79/* Stored Value */
86
87/* Payload capacity */
89
90CalypsoCardConstant::CalypsoCardConstant() {}
91
92}
93}
94}