Keyple Card Calypso C++ Library 2.1.0
Reference Terminal Reader API for C++
src
main
SamUtilAdapter.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 "
SamUtilAdapter.h
"
14
15
namespace
keyple
{
16
namespace
card {
17
namespace
calypso {
18
19
SamUtilAdapter::SamUtilAdapter() {}
20
21
uint8_t
SamUtilAdapter::getClassByte
(
const
ProductType
productType)
22
{
23
if
(productType == ProductType::SAM_S1DX) {
24
return
0x94;
25
}
26
return
0x80;
27
}
28
29
}
30
}
31
}
SamUtilAdapter.h
keyple::card::calypso::SamUtilAdapter::getClassByte
static uint8_t getClassByte(const ProductType productType)
Definition:
SamUtilAdapter.cpp:21
keyple::card::calypso::ProductType
CalypsoSam::ProductType ProductType
Definition:
CardSecuritySettingAdapter.cpp:26
keyple
Definition:
AbstractApduCommand.cpp:20
Generated by
1.9.2